@prismatic-io/components-bill 0.0.1 → 0.1.1
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/dist/index.js +1 -1
- package/npm-dist/index.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -218,4 +218,4 @@ e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=
|
|
|
218
218
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
219
219
|
* @license MIT
|
|
220
220
|
*/
|
|
221
|
-
let t=sh(),n=ch(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(he(e,ArrayBuffer)||e&&he(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(he(e,SharedArrayBuffer)||e&&he(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(he(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ge(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),he(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(he(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||he(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return de(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return me(e).length;default:if(i)return r?-1:de(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return P(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return ee(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ge(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(ge(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return H(de(t,e.length-n),e,n,r)}function E(e,t,n,r){return H(fe(t),e,n,r)}function D(e,t,n,r){return H(me(t),e,n,r)}function O(e,t,n,r){return H(pe(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}let j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function ee(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=_e[e[r]];return i}function F(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i){oe(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){oe(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=ve(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=ve(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=ve(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=ve(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function B(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)};function V(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let ne={};function re(e,t,n){ne[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}re(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),re(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),re(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ie(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ie(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ae(e,t,n){se(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ce(t,e.length-(n+1))}function oe(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new ne.ERR_OUT_OF_RANGE(`value`,i,e)}ae(r,i,a)}function se(e,t){if(typeof e!=`number`)throw new ne.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ce(e,t,n){throw Math.floor(e)===e?t<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(se(e,n),new ne.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let le=/[^+/0-9A-Za-z-_]/g;function ue(e){if(e=e.split(`=`)[0],e=e.trim().replace(le,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function de(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function fe(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function pe(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function me(e){return t.toByteArray(ue(e))}function H(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function he(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ge(e){return e!==e}let _e=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function ve(e){return typeof BigInt>`u`?ye:e}function ye(){throw Error(`BigInt not supported`)}})),uh=a(((e,t)=>{let n=oh(),r=typeof window<`u`?lh().Buffer:global.Buffer;function i(e){return 12+4*Math.ceil(e.length/4)}function a(){return!(typeof window<`u`&&typeof document<`u`)}function o(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function s(e){let t=0;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),ArrayBuffer.isView(e))return o(e);let i=JSON.stringify(n,(e,t)=>typeof t==`bigint`||typeof t==`function`?t.toString():t===void 0?`undefined`:typeof t==`symbol`||t instanceof RegExp?t.toString():t);t=r.byteLength(i,`utf8`)}catch{return Error(-1)}return t}function c(e){let t=[],o=[e],s=0;for(;o.length;){let c=o.pop();if(typeof c==`boolean`)s+=n.BYTES;else if(typeof c==`string`)a()?s+=i(c):s+=c.length*n.STRING;else if(typeof c==`number`)s+=n.NUMBER;else if(typeof c==`symbol`)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if(typeof c==`bigint`)s+=r.from(c.toString()).byteLength;else if(typeof c==`function`)s+=c.toString().length;else if(typeof c==`object`&&t.indexOf(c)===-1){t.push(c);for(let e in c)o.push(c[e])}}return s}t.exports=function(e){let t=0;return t=typeof e==`object`&&e?s(e):c(e),t}})),dh=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.debugRequest=e.fileDataFileNames=e.fileData=e.formData=e.retryAllErrors=e.useExponentialBackoff=e.retryDelayMS=e.maxRetries=e.queryParams=e.headers=e.responseType=e.method=e.timeout=e.data=e.url=void 0;let t=Mm();e.url=(0,t.input)({label:`URL`,placeholder:`URL to call`,type:`string`,required:!0,comments:`This is the URL to call.`,example:`/sobjects/Account`,clean:e=>t.util.types.toString(e)}),e.data=(0,t.input)({label:`Data`,placeholder:`Data to send`,type:`string`,required:!1,comments:`The HTTP body payload to send to the URL.`,example:`{"exampleKey": "Example Data"}`}),e.timeout=(0,t.input)({label:`Timeout`,type:`string`,required:!1,comments:`The maximum time that a client will await a response to its request`,example:`2000`,clean:e=>t.util.types.toNumber(e)}),e.method=(0,t.input)({label:`Method`,type:`string`,required:!0,model:[`DELETE`,`GET`,`HEAD`,`LINK`,`OPTIONS`,`PATCH`,`POST`,`PURGE`,`PUT`,`UNLINK`].map(e=>({label:e,value:e})),comments:`The HTTP method to use.`,clean:e=>t.util.types.toString(e)}),e.responseType=(0,t.input)({label:`Response Type`,placeholder:`Response Type`,type:`string`,default:`json`,required:!0,comments:`The type of data you expect in the response. You can request json, text, or binary data.`,model:[`arraybuffer`,`document`,`json`,`text`].map(e=>({label:e,value:e})),clean:e=>t.util.types.toString(e)}),e.headers=(0,t.input)({label:`Header`,placeholder:`Header`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of headers to send with the request.`,example:`User-Agent: curl/7.64.1`}),e.queryParams=(0,t.input)({label:`Query Parameter`,placeholder:`Query Parameter`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.`}),e.maxRetries=(0,t.input)({label:`Max Retry Count`,placeholder:`Max Retries`,type:`string`,required:!1,comments:`The maximum number of retries to attempt. Specify 0 for no retries.`,default:`0`,clean:e=>t.util.types.toNumber(e)}),e.retryDelayMS=(0,t.input)({label:`Retry Delay (ms)`,placeholder:`Retry Delay`,type:`string`,required:!1,comments:`The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.`,default:`0`,clean:e=>t.util.types.toNumber(e,0)}),e.useExponentialBackoff=(0,t.input)({label:`Use Exponential Backoff`,type:`boolean`,default:`false`,required:!1,comments:`Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.`,clean:e=>t.util.types.toBool(e)}),e.retryAllErrors=(0,t.input)({label:`Retry On All Errors`,type:`boolean`,default:`false`,required:!1,comments:`If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.`,clean:e=>t.util.types.toBool(e)}),e.formData=(0,t.input)({label:`Form Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`The Form Data to be sent as a multipart form upload.`,example:`[{"key": "Example Key", "value": new Buffer("Hello World")}]`}),e.fileData=(0,t.input)({label:`File Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File Data to be sent as a multipart form upload.`,example:`[{key: "example.txt", value: "My File Contents"}]`}),e.fileDataFileNames=(0,t.input)({label:`File Data File Names`,placeholder:`The file name to apply to a file`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File names to apply to the file data inputs. Keys must match the file data keys above.`,clean:e=>e?t.util.types.keyValPairListToObject(e):void 0}),e.debugRequest=(0,t.input)({label:`Debug Request`,type:`boolean`,required:!1,comments:`Enabling this flag will log out the current request.`,clean:e=>t.util.types.toBool(e)}),e.inputs={url:e.url,method:e.method,data:e.data,formData:e.formData,fileData:e.fileData,fileDataFileNames:e.fileDataFileNames,queryParams:e.queryParams,headers:e.headers,responseType:e.responseType,timeout:e.timeout,debugRequest:e.debugRequest,retryDelayMS:e.retryDelayMS,retryAllErrors:e.retryAllErrors,maxRetries:e.maxRetries,useExponentialBackoff:e.useExponentialBackoff}})),fh=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.buildRawRequestAction=e.sendRawRequest=e.handleErrors=e.createClient=e.toAxiosRetryConfig=void 0;let s=o(Lu()),c=r(ih()),l=o(wu()),u=o(ah()),d=o(uh()),f=Mm(),p=o(hl()),m=dh();Object.defineProperty(e,"inputs",{enumerable:!0,get:function(){return m.inputs}});let h=/^(cookie|set-cookie)$|auth|token|secret|password|api[-_]?key/i,g=e=>typeof e==`object`&&!!e&&typeof e.toJSON==`function`,_=e=>{let t=g(e)?e.toJSON():Object.assign({},e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,h.test(e)?`[REDACTED]`:t]))},v=e=>{let t=p.default.types.toString(e.token?.access_token);if(t)return{Authorization:`Bearer ${t}`};let n=p.default.types.toString(e.fields?.apiKey);if(n)return{Authorization:`Bearer ${n}`};let r=p.default.types.toString(e.fields?.username),i=p.default.types.toString(e.fields?.password);if(r&&i)return{Authorization:`Basic ${Buffer.from(`${r}:${i}`).toString(`base64`)}`};throw Error(`Failed to guess at authorization parameters for Connection: ${e.key}`)},y=(e,t,n={})=>{let r=new l.default;return(e||[]).map(({key:e,value:t})=>r.append(e,t)),(t||[]).map(({key:e,value:t})=>r.append(e,p.default.types.toBufferDataPayload(t).data,{filename:n?.[e]||e})),r},b=(e,t)=>t?typeof e==`number`?t=>2**(t-1)*e:c.exponentialDelay:typeof e==`number`?()=>e:e;e.toAxiosRetryConfig=e=>{var{retryDelay:t,retryAllErrors:n,retryCondition:r,useExponentialBackoff:i}=e,o=a(e,[`retryDelay`,`retryAllErrors`,`retryCondition`,`useExponentialBackoff`]);return Object.assign(Object.assign({},o),{retryDelay:b(t,i),retryCondition:n?()=>!0:typeof r==`function`?r:c.isNetworkOrIdempotentRequestError})},e.createClient=({baseUrl:t,responseType:n,headers:r,timeout:i,params:a,debug:o=!1,retryConfig:l})=>{let u=s.default.create({baseURL:t,responseType:n,headers:r,timeout:i,params:a,maxContentLength:1/0,maxBodyLength:1/0});return o&&(u.interceptors.request.use(e=>{let{baseURL:t,headers:n,method:r,timeout:i,url:a,data:o,params:s}=e,c=(0,d.default)(o);return console.log(p.default.types.toJSON({type:`request`,baseURL:t,params:s,url:a,headers:_(n),method:r,timeout:i,data:c>1024*10||Buffer.isBuffer(o)?`<data (${c} bytes)>`:o},!0,!0)),e}),u.interceptors.response.use(e=>{let{headers:t,status:n,statusText:r,data:i}=e,a=(0,d.default)(i);return console.log(p.default.types.toJSON({type:`response`,headers:_(t),status:n,statusText:r,data:a>1024*10||Buffer.isBuffer(i)?`<data (${a} bytes)>`:i},!0,!0)),e})),l&&(0,c.default)(u,(0,e.toAxiosRetryConfig)(l)),u},e.handleErrors=e=>{if(s.default.isAxiosError(e)){let{message:t,response:n}=e;return{message:t,data:n?.data,status:n?.status,headers:n?.headers}}return e},e.sendRawRequest=(t,n,...r)=>i(void 0,[t,n,...r],void 0,function*(t,n,r={}){if(n.data&&(!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)))throw Error(`Cannot specify both Data and File/Form Data.`);let i=!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)?y(n.formData,n.fileData,n.fileDataFileNames):n.data;return yield(0,e.createClient)({baseUrl:t,debug:n.debugRequest,responseType:n.responseType,timeout:n.timeout,retryConfig:{retries:n.maxRetries,retryDelay:n.retryDelayMS,retryAllErrors:n.retryAllErrors,useExponentialBackoff:n.useExponentialBackoff}}).request({method:n.method,url:n.url,headers:Object.assign(Object.assign(Object.assign({},p.default.types.keyValPairListToObject(n.headers)),i instanceof l.default?i.getHeaders():{}),r),params:p.default.types.keyValPairListToObject(n.queryParams),data:i||void 0})}),e.buildRawRequestAction=(t,n=`Raw Request`,r=`Issue a raw HTTP request`)=>(0,f.action)({display:{label:n,description:r},inputs:Object.assign({connection:{label:`Connection`,type:`connection`,required:!0}},m.inputs),perform:(n,r)=>i(void 0,void 0,void 0,function*(){var{connection:n}=r,i=a(r,[`connection`]);let{data:o}=yield(0,e.sendRawRequest)(t,i,v(n));return{data:o}})})}))();const ph=async(e,t,n)=>{let r=e.fields.developerKey,i=(0,X.stringify)({userName:e.fields.username,password:e.fields.password,orgId:e.fields.organizationId,devKey:r,...n||{}}),{data:a}=await(0,fh.createClient)({baseUrl:$m(e),headers:{"content-type":`application/x-www-form-urlencoded`},debug:t}).post(`/Login.json`,i);if(a.response_status!==0)throw Error(JSON.stringify(a));return{...a.response_data,devKey:r}},Q=async(e,t,n)=>{Xm(e);let r=await ph(e,t,n);return{client:(0,fh.createClient)({baseUrl:$m(e),debug:t,headers:{"content-type":`application/x-www-form-urlencoded`,accept:`application/json`}}),loginData:r}},$=(0,Y.input)({label:`Connection`,type:`connection`,required:!0,comments:`The Bill.com connection to use.`}),mh=(0,Y.input)({label:`Filters`,type:`code`,language:`json`,comments:`An array of filters to apply.`,required:!1,placeholder:`Enter filter criteria`,example:JSON.stringify([{field:`field1`,op:`=`,value:`something`}],null,2),clean:e=>Ym(e,`Filters`)}),hh=(0,Y.input)({label:`Sort`,type:`code`,language:`json`,comments:`An array of sort objects.`,required:!1,placeholder:`Enter sort criteria`,example:JSON.stringify([{field:`field1`,asc:!0}],null,2),clean:e=>Ym(e,`Sort`)}),gh=(0,Y.input)({label:`Start`,type:`string`,comments:`Index of the first result.`,required:!0,placeholder:`Enter start index`,example:`0`,default:`0`,clean:Y.util.types.toNumber}),_h=(0,Y.input)({label:`Max`,type:`string`,comments:`Maximum number of results to return.`,required:!0,placeholder:`Enter maximum results`,example:`999`,default:`999`,clean:Y.util.types.toNumber}),vh=(0,Y.input)({label:`Nested`,type:`boolean`,comments:`When true, includes additional nested data in the response.`,required:!1,default:`false`,clean:Y.util.types.toBool}),yh=(0,Y.input)({label:`Additional Fields`,type:`code`,language:`json`,comments:`Additional fields that might not be covered by the standard inputs.`,required:!1,placeholder:`Enter additional fields`,example:JSON.stringify({customField:`value`},null,2),clean:e=>Jm(e,`Additional Fields`)}),bh=(0,Y.input)({label:`Customer ID`,type:`string`,example:`0cu...`,placeholder:`Enter customer ID`,required:!0,comments:`The unique identifier for the customer.`,clean:Y.util.types.toString,dataSource:`selectCustomer`}),xh=(0,Y.input)({label:`Vendor ID`,type:`string`,example:`009...`,placeholder:`Enter vendor ID`,required:!0,comments:`The unique identifier for the vendor.`,clean:Y.util.types.toString,dataSource:`selectVendor`}),Sh=(0,Y.input)({label:`Account Number`,type:`string`,example:`0112345678`,placeholder:`Enter account number`,required:!0,comments:`The bank account number.`,clean:Y.util.types.toString}),Ch=(0,Y.input)({label:`Routing Number`,type:`string`,example:`012345678`,placeholder:`Enter routing number`,required:!0,comments:`The bank routing number.`,clean:Y.util.types.toString}),wh=(0,Y.input)({label:`MFA ID`,type:`string`,example:`!b_EJCd_jPIsZYT...`,placeholder:`Enter MFA ID`,required:!0,comments:`The unique identifier for the MFA session. Retrieved from the 'Authenticate MFA session' action.`,clean:Y.util.types.toString}),Th=(0,Y.input)({label:`Device ID`,type:`string`,example:`Acme-...`,placeholder:`Enter device ID`,required:!0,comments:`The unique identifier for the device. Retrieved from the 'Authenticate MFA session' action.`,clean:Y.util.types.toString}),Eh=` See [Bill.com API documentation](https://developer.bill.com/reference/listbills) for more information.`,Dh=(0,Y.input)({label:`Invoice Number`,type:`string`,example:`01`,placeholder:`Enter invoice number`,required:!0,comments:`User-generated invoice number. This value can be a chosen number scheme or the bill due date.`,clean:Y.util.types.toString}),Oh=(0,Y.input)({label:`Invoice Date`,type:`string`,example:`2021-01-01`,placeholder:`Enter invoice date`,required:!0,comments:`Date when the bill is sent. This value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),kh=(0,Y.input)({label:`Due Date`,type:`string`,example:`2021-01-01`,placeholder:`Enter due date`,required:!0,comments:`Date when the bill is due. The value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),Ah=(0,Y.input)({label:`Bill Line Items`,type:`code`,language:`json`,comments:`An array of bill line items. See [Bill.com API documentation](https://developer.bill.com/reference/createbill) for more information.`,required:!0,example:JSON.stringify([{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}],null,2),clean:e=>Ym(e,`Bill Line Items`)}),jh=(0,Y.input)({label:`Allow Duplicate Invoice Number`,type:`boolean`,comments:`When true, allows duplicate invoice numbers.`,default:`false`,clean:Y.util.types.toBool}),Mh={entity:`Bill`,isActive:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`},Nh={connection:$,vendorId:xh,invoiceNumber:Dh,invoiceDate:Oh,dueDate:kh,billLineItems:Ah,allowDuplicateInvNum:jh,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Mh,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createbill) for more information.`})},Ph={connection:$,billsCreateBulk:(0,Y.input)({label:`Bills to Create`,type:`code`,language:`json`,comments:`An array of bill objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendortransactions-bulkcreatebill) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Bill`,isActive:`string`,vendorId:`string`,invoiceNumber:`string`,invoiceDate:`string`,dueDate:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`,billLineItems:[{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}]},allowDuplicateInvNum:!0}],null,2),clean:e=>Ym(e,`Bills to Create`)})},Fh=(0,Y.input)({label:`Bill ID`,type:`string`,example:`00n...`,placeholder:`Enter bill ID`,required:!0,comments:`The unique identifier for the bill.`,clean:Y.util.types.toString}),Ih={connection:$,billId:Fh},Lh={connection:$,start:gh,max:_h,filters:(0,Y.input)({...mh,comments:`${mh.comments}${Eh}`}),sort:(0,Y.input)({...hh,comments:`${hh.comments}${Eh}`}),nested:vh},Rh=(0,Y.input)({label:`Allow Duplicate Invoice Number`,type:`string`,comments:`Allow duplicate invoice numbers.`,required:!1,default:void 0,placeholder:`Select option`,model:[`True`,`False`].map(e=>({label:e,value:e.toLowerCase()})),clean:Zm}),zh={connection:$,billId:Fh,vendorId:xh,invoiceNumber:Dh,invoiceDate:Oh,dueDate:kh,billLineItems:(0,Y.input)({...Ah,comments:`An array of bill line items. See [Bill.com API documentation](https://developer.bill.com/reference/updatebill) for more information.`}),allowDuplicateInvNum:Rh,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Mh,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatebill) for more information.`})},Bh={connection:$,billsUpdateBulk:(0,Y.input)({label:`Bills to Update`,type:`code`,language:`json`,comments:`An array of bill objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendortransactions-bulkupdatebill) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`00n...`,entity:`Bill`,isActive:`string`,vendorId:`string`,invoiceNumber:`string`,invoiceDate:`string`,dueDate:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`,billLineItems:[{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}]},allowDuplicateInvNum:!0}],null,2),clean:e=>Ym(e,`Bills to Update`)})},Vh={connection:$,billId:Fh},Hh={data:{entity:`Customer`,id:`0cu02EAQUAPCBNTDsmzc`,isActive:`1`,createdTime:`2024-07-29T20:30:30.000+0000`,updatedTime:`2024-07-30T19:14:48.000+0000`,name:`John`,shortName:null,parentCustomerId:`00000000000000000000`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`,accNumber:null,billAddress1:null,billAddress2:null,billAddress3:null,billAddress4:null,billAddressCity:null,billAddressState:null,billAddressCountry:null,billAddressZip:null,shipAddress1:null,shipAddress2:null,shipAddress3:null,shipAddress4:null,shipAddressCity:null,shipAddressState:null,shipAddressCountry:null,shipAddressZip:null,email:null,phone:null,altPhone:null,fax:null,description:null,invoiceCurrency:null,printAs:null,mergedIntoId:`00000000000000000000`,hasAuthorizedToCharge:!1,accountType:`0`,paymentTermId:`00000000000000000000`,balance:0,availCredit:0,taxId:null,hasBankAccount:!1,hasNetBankAccount:!1,hasBankAccountAutoPay:!1,hasCreditCard:!1,hasCreditCardAutoPay:!1,defaultDeliveryMethod:null,isAutoChargeDismissed:!1,isTaxLiable:!1,creationSource:`0`,enabledInvoiceFinancing:!1,hasCustomerCard:!1,enabledAutoInvoiceFinancing:!1}},Uh={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Hh.data}]}},Wh=Uh,Gh={data:{entity:`Vendor`,id:`00902YSABCAKZHY25m0r`,isActive:`1`,name:`Acme Vendor`,shortName:null,nameOnCheck:`Acme Vendor`,companyName:`Acme`,accNumber:null,taxId:null,taxIdType:null,track1099:!1,address1:null,address2:null,address3:null,address4:null,addressCity:null,addressState:null,addressZip:null,addressCountry:null,email:`example@email.com`,fax:null,phone:null,payBy:`0`,paymentEmail:null,paymentPhone:null,description:null,createdTime:`2024-07-30T19:31:00.000+0000`,updatedTime:`2024-07-30T19:31:00.000+0000`,contactFirstName:null,contactLastName:null,mergedIntoId:`00000000000000000000`,accountType:`0`,paymentTermId:`00000000000000000000`,sendNotifications:!0,balance:0,availCredit:0,lastBalanceUpdate:null,externalBillPayIn12m:null,since:null,payDaysBefore:null,enabledCombinePayments:!0,hasBankAccountAutoPay:!1,hasRecurringPayments:!1,billCurrency:`USD`,billSyncPref:`0`,paymentCurrency:null,prefPmtMethod:`1`,paymentPurpose:null,bankCountry:null,vendorBankAccountStatus:-1,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:null,vendorVCardStatus:`-1`,orgVCardStatus:`1`,prefRemitEmail:`0`,remitEmail:null,processorVCardStatus:null,vStatusUpdateSource:null,allowConnectedVendorEditAddress:!1,informConnectedVendorAddressSyncModified:!1,intlPaymentType:`0`,vcardEnrollDate:null,vcardDeclineDate:null,isAccountNumberRequired:!1,largeBillerId:`00000000000000000000`,orgVCardOptOutCustReason:null,enableFundedInvite:!1,lastPaymentDate:null,numberOfInvitesSent:0,eligibleForEbills:!1,acknowledgedEbillBanner:!1,acknowledgedEbillError:!1,eBillEnablementFailed:!1,PaymentusMerchantId:null,unmodifiedBillsCount:0,setupAutoPayPrompt:!1,autoPayConflict:!1,nameOnCheckRemediation:!1,autoSave:null,autoSaveStatus:null,creationSource:`0`,PaymentusPmtType:null,PaymentusAcctToken:null,PaymentusAcctToken2:null,PaymentusAcctToken3:null,stpProcessor:`0`,eBillEnabledStatus:`0`,orgVCardOptOutCustOther:null,networkStatus:null,vcardProcessor:`1`,isAddressValidated:!1,isSyncVendorCountryMapped:!1,optedOutOfVCardByOrg:!1,invalidCountryCurrencyAtNewVendorSync:!1,acctBalance:0,lastAcctBalanceUpdate:null,paymentEmails:null,eBillEligible:!1,required:[]}},Kh=Gh,qh=Gh,Jh=Gh,Yh={data:[Gh.data]},Xh={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Gh.data}]}},Zh=Xh,Qh={data:{entity:`VendorBankAccount`,id:`vba02BSNHVJVZPN17kxr`,isActive:`1`,createdTime:`2024-07-30T20:33:28.000+0000`,updatedTime:`2024-07-30T20:33:28.000+0000`,vendorId:`00902JIJYMCGEGI25m2l`,nameOnAcct:`John Doe`,accountNumber:`******7890`,routingNumber:`021000021`,usersId:`00602ZGNAZQYJBKLdrql`,status:`1`,isSavings:!1,isPersonalAcct:!1,intlEPaymentAcct:!1,intlPaymentType:`0`,paymentCurrency:null,bankCountry:null,vendorBankData:null,bankAddSource:`2`,intlTemplateKey:null,regulatory1:null,regulatory2:null,regulatory3:null,regulatory4:null,regulatory5:null,regulatory6:null,regulatory7:null}},$h={data:[Qh.data]},eg={data:{entity:`Bill`,id:`00n02XNWHOPPXWV9ewx0`,isActive:`1`,vendorId:`00902YSHZXAKZHY25m0r`,invoiceNumber:`01`,approvalStatus:`0`,invoiceDate:`2024-07-01`,dueDate:`2024-08-01`,glPostingDate:`2024-07-01`,amount:1,localAmount:null,exchangeRate:null,scheduledAmount:0,paidAmount:null,dueAmount:1,creditAmount:0,paymentStatus:`1`,uiPaymentStatus:`1`,description:null,poNumber:null,createdTime:`2024-07-30T23:00:32.000+0000`,updatedTime:`2024-07-30T23:00:32.000+0000`,createdBy:`00602ZGNAZQYJBKLdrql`,payFromBankAccountId:`00000000000000000000`,payFromChartOfAccountId:`00000000000000000000`,paymentTermId:`00000000000000000000`,hasAutoPay:!1,eBillCreated:!1,invoiceProductId:`00000000000000000000`,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,source:`0`,numApprPolicyEx:0,useBillDesc:!1,defaultInvoiceNumber:!1,isAutoSaved:!1,billTemplateId:`00000000000000000000`,quickbooksId:null,lastPaymentDate:null,fullPaymentDate:null,hasLinkedPurchaseOrders:!1,multipleBillLineItems:!1,item:{count:0,totalAmount:0},expense:{count:1,totalAmount:1,chartOfAccountGroup:[]},billLineItems:[{entity:`BillLineItem`,id:`bli02VSXIUDVFUQd1e4s`,billId:`00n02XNWHOPPXWV9ewx0`,amount:1,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,jobId:`00000000000000000000`,customerId:`00000000000000000000`,jobBillable:!1,description:null,createdTime:`2024-07-30T23:00:32.000+0000`,updatedTime:`2024-07-30T23:00:32.000+0000`,lineType:`1`,itemId:`00000000000000000000`,quantity:null,unitPrice:null,employeeId:`00000000000000000000`,actgClassId:`00000000000000000000`,purchaseOrderBillLinkId:`00000000000000000000`,unitOfMeasureId:`00000000000000000000`,lineOrder:0}]}},tg=eg,ng=eg,rg=eg,ig={data:[eg.data]},ag={data:{bulk:[{response_status:0,response_message:`Success`,response_data:eg.data}]}},og=ag,sg=Hh,cg=Hh,lg={data:{entity:`CustomerBankAccount`,id:`cba02ILJVKOLFVLB6gqr`,isActive:`1`,createdTime:`2024-07-31T05:10:12.000+0000`,updatedTime:`2024-07-31T05:17:36.000+0000`,customerId:`0cu02BLGFCGXROGGsnpx`,nameOnAccount:`Test`,nickname:`Test`,routingNumber:`011401533`,accountNumber:`******7890`,isLockedByOrg:!1,isSavings:!1,isPersonalAcct:!1,isWrittenAuth:!1,isPrivate:!1,phone:null,cpUserId:`00000000000000000000`,status:`1`,rndDepExpireDate:`2024-08-13`}},ug={data:[lg.data]},dg={data:[Hh.data]},fg=Hh,pg={data:{entity:`Invoice`,id:`00e02DTFJUMHHRGKh6zx`,isActive:`1`,createdBy:`00602ZGNAZQYJBKLdrql`,createdTime:`2024-07-31T16:56:53.000+0000`,updatedTime:`2024-07-31T20:27:48.000+0000`,customerId:`0cu02BLGFCGXROGGsnpx`,invoiceNumber:`001`,invoiceDate:`2024-07-22`,dueDate:`2024-09-08`,glPostingDate:`2024-07-22`,amount:2199,localAmount:null,exchangeRate:null,amountDue:2199,paymentStatus:`1`,description:null,poNumber:null,isToBePrinted:!1,isToBeEmailed:!1,lastSentTime:null,itemSalesTax:`0ii02JKMRQWBGLFLadj8`,salesTaxPercentage:6,salesTaxTotal:0,terms:`Due upon receipt`,salesRep:null,FOB:null,shipDate:null,shipMethod:null,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,jobId:`00000000000000000000`,payToBankAccountId:`00000000000000000000`,payToChartOfAccountId:`00000000000000000000`,invoiceTemplateId:`itm02EJBDDIGUVGSc8w1`,hasAutoPay:!1,source:`0`,emailDeliveryOption:`1`,mailDeliveryOption:`0`,creditAmount:0,quickbooksId:null,recInvoiceTemplateId:`00000000000000000000`,financingStatus:`0`,netBillId:`00000000000000000000`,netOrgId:`00000000000000000000`,scheduledAmount:0,stylingId:null,stylingRevision:null,financingModelStatus:null,financingErrorType:`0`,invoiceLineItems:[{entity:`InvoiceLineItem`,id:`00f02QSSEGYTPEZDeik8`,createdTime:`2024-07-31T20:27:48.000+0000`,updatedTime:`2024-07-31T20:27:48.000+0000`,invoiceId:`00e02DTFJUMHHRGKh6zx`,itemId:`0ii02CTRVHZJQMRWad60`,quantity:1,amount:12,price:12,serviceDate:null,ratePercent:null,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,jobId:`00000000000000000000`,description:null,taxable:!1,taxCode:`Non`,lineOrder:0}],invoiceAdjustments:[],invoiceCustomFields:[]}},mg=pg,hg=pg,gg=pg,_g={data:[pg.data]},vg={data:{bulk:[{response_status:0,response_message:`Success`,response_data:pg.data}]}},yg=vg,bg={data:{challengeId:`!b-KXe8pBDp1vFgjczlR7mHt2wYqNaLdVe0oUZ4kJ9sCfBvXgQpImD5nWtA3rYhKu`,sessionId:`!b2XqzA2v6u5T49jY5eRcVdWfXgHnKpLmQsTuBvNwZ0aDgIjOyClErFtGuHiJkMoPy`}},xg={data:{machineName:`Acme Instance`,mfaId:`!b_EJCd_jPIsZYT5bxk9QG2oXP2TvQwGjeSzWFeZt-wy9gi03A2U8Uvj_cZDhCDBde`,deviceId:`Acme-BillMFA`}},Sg={data:{entity:`VendorBankAccount`,id:`vba02JBPYKSEAMI17lre`,isActive:`1`,createdTime:`2024-07-31T23:32:48.000+0000`,updatedTime:`2024-07-31T23:32:49.000+0000`,vendorId:`00902GLBJSUATNY25m0s`,nameOnAcct:null,accountNumber:`******7890`,routingNumber:`021000021`,usersId:`00602ZGNAZQYJBKLdrql`,status:`1`,isSavings:!1,isPersonalAcct:!1,intlEPaymentAcct:!1,intlPaymentType:`0`,paymentCurrency:null,bankCountry:null,vendorBankData:null,bankAddSource:`1`,intlTemplateKey:null,regulatory1:null,regulatory2:null,regulatory3:null,regulatory4:null,regulatory5:null,regulatory6:null,regulatory7:null}},Cg=Sg,wg={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Qh.data}]}},Tg=lg,Eg={payload:{body:{data:{created:[rg.data],updated:[rg.data]}}},polledNoChanges:!1};var Dg={bulkCreateBills:(0,Y.action)({display:{label:`Bulk Create Bills`,description:`Bulk create bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billsCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:ag.data}),inputs:Ph,examplePayload:ag}),bulkUpdateBills:(0,Y.action)({display:{label:`Bulk Update Bills`,description:`Bulk update bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billsUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:og.data}),inputs:Bh,examplePayload:og}),createBill:(0,Y.action)({display:{label:`Create Bill`,description:`Create a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,billLineItems:o,allowDuplicateInvNum:s,additionalFields:c})=>{let{client:l,loginData:u}=await Q(t,e.debug.enabled),d={obj:{entity:`Bill`,vendorId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,billLineItems:o,...c||{}},allowDuplicateInvNum:s},f=(0,X.stringify)({data:JSON.stringify(d),devKey:u.devKey,sessionId:u.sessionId}),{data:p}=await l.post(`/Crud/Create/Bill.json`,f);return{data:Z(p)}},examplePerform:async()=>({data:eg.data}),inputs:Nh,examplePayload:eg}),deleteBill:(0,Y.action)({display:{label:`Delete Bill`,description:`Delete a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:ng.data}),inputs:Vh,examplePayload:ng}),getBill:(0,Y.action)({display:{label:`Get Bill`,description:`Read a bill object.`},performSafety:`safe`,perform:async(e,{connection:t,billId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Bill.json`,a);return{data:Z(o)}},inputs:Ih,examplePayload:rg}),listBills:(0,Y.action)({display:{label:`List Bills`,description:`List bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.bills.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:ig.data}),inputs:Lh,examplePayload:ig}),updateBill:(0,Y.action)({display:{label:`Update Bill`,description:`Update a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billId:n,vendorId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,billLineItems:s,allowDuplicateInvNum:c,additionalFields:l})=>{let{client:u,loginData:d}=await Q(t,e.debug.enabled),f={obj:{id:n,entity:`Bill`,vendorId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,billLineItems:s,...l||{}},allowDuplicateInvNum:c},p=(0,X.stringify)({data:JSON.stringify(f),devKey:d.devKey,sessionId:d.sessionId}),{data:m}=await u.post(`/Crud/Update/Bill.json`,p);return{data:Z(m)}},examplePerform:async()=>({data:tg.data}),inputs:zh,examplePayload:tg})};const Og=` See [Bill.com API documentation](https://developer.bill.com/reference/listcustomers) for more information.`,kg=` See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-listcustomerbankaccount) for more information.`,Ag={isActive:`1`,shortName:`John`,parentCustomerId:`12345`,companyName:`A company`,contactFirstName:`John`,contactLastName:`Doe`},jg={isActive:`string`,nickname:`string`,isLockedByOrg:!0,isSavings:`string`,isPersonalAcct:`string`,isWrittenAuth:!0,isPrivate:!0,phone:`string`,cpUserId:`string`},Mg={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${Og}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${Og}`}),nested:vh},Ng=(0,Y.input)({label:`Customer Name`,type:`string`,example:`John`,placeholder:`Enter customer name`,required:!0,comments:`The name of the customer.`,clean:Y.util.types.toString}),Pg={connection:$,customerName:Ng,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Ag,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createcustomer) for more information.`})},Fg={connection:$,customersCreateBulk:(0,Y.input)({label:`Customers to Create`,type:`code`,language:`json`,comments:`An array of customer objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-bulkcreatecustomer) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Customer`,isActive:`1`,name:`John`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`}}],null,2),clean:e=>Ym(e,`Customers to Create`)})},Ig={connection:$,customerId:bh},Lg={connection:$,customerId:bh,customerName:(0,Y.input)({...Ng,required:!1}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Ag,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatecustomer) for more information.`})},Rg={connection:$,customersUpdateBulk:(0,Y.input)({label:`Customers to Update`,type:`code`,language:`json`,comments:`An array of customer objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-bulkupdatecustomer) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`0cu...`,entity:`Customer`,isActive:`1`,name:`John`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`}}],null,2),clean:e=>Ym(e,`Customers to Update`)})},zg={connection:$,customerId:bh},Bg={connection:$,start:gh,max:_h,filters:(0,Y.input)({...mh,comments:`${mh.comments}${kg}`}),sort:(0,Y.input)({...hh,comments:`${hh.comments}${kg}`}),nested:vh},Vg={connection:$,customerBankAccountId:(0,Y.input)({label:`Customer Bank Account ID`,type:`string`,example:`cba...`,placeholder:`Enter customer bank account ID`,required:!0,comments:`ID of the customer bank account.`,clean:Y.util.types.toString})},Hg=(0,Y.input)({label:`Name on Account`,type:`string`,example:`Account Name`,placeholder:`Enter name on account`,required:!0,comments:`Customer bank account name.`,clean:Y.util.types.toString}),Ug=(0,Y.input)({label:`Agreed with TOS`,type:`boolean`,default:`true`,comments:`When true, indicates agreement with the BILL Payment Terms Of Service.`,clean:Y.util.types.toBool}),Wg={connection:$,customerId:bh,nameOnAccount:Hg,routingNumber:(0,Y.input)({...Ch,comments:`The customer bank routing number.`}),accountNumber:(0,Y.input)({...Sh,comments:`The customer bank account number.`}),agreedWithTOS:Ug,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(jg,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createcustomerbankaccount) for more information.`})},Gg=(0,Y.action)({display:{label:`Bulk Create Customers`,description:`Bulk create customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customersCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Uh.data}),inputs:Fg,examplePayload:Uh}),Kg=(0,Y.action)({display:{label:`Bulk Update Customers`,description:`Bulk update customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customersUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Wh.data}),inputs:Rg,examplePayload:Wh}),qg=(0,Y.action)({display:{label:`Create Customer`,description:`Create a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerName:n,additionalFields:r})=>{let{client:i,loginData:a}=await Q(t,e.debug.enabled),o={obj:{entity:`Customer`,name:n,...r||{}}},s=(0,X.stringify)({data:JSON.stringify(o),devKey:a.devKey,sessionId:a.sessionId}),{data:c}=await i.post(`/Crud/Create/Customer.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:sg.data}),inputs:Pg,examplePayload:sg}),Jg=(0,Y.action)({display:{label:`Create Customer Bank Account`,description:`Create a customer bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n,nameOnAccount:r,routingNumber:i,accountNumber:a,additionalFields:o,agreedWithTOS:s})=>{let{client:c,loginData:l}=await Q(t,e.debug.enabled),u={obj:{entity:`CustomerBankAccount`,customerId:n,nameOnAccount:r,routingNumber:i,accountNumber:a,...o||{}},agreedWithTOS:s},d=(0,X.stringify)({data:JSON.stringify(u),devKey:l.devKey,sessionId:l.sessionId}),{data:f}=await c.post(`/Crud/Create/CustomerBankAccount.json`,d);return{data:Z(f)}},examplePerform:async()=>({data:Tg.data}),inputs:Wg,examplePayload:Tg});var Yg={bulkCreateCustomers:Gg,bulkUpdateCustomers:Kg,createCustomer:qg,deleteCustomer:(0,Y.action)({display:{label:`Delete Customer`,description:`Delete a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:cg.data}),inputs:zg,examplePayload:cg}),getCustomer:(0,Y.action)({display:{label:`Get Customer`,description:`Read a customer object.`},performSafety:`safe`,perform:async(e,{connection:t,customerId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Customer.json`,a);return{data:Z(o)}},inputs:Ig,examplePayload:Hh}),getCustomerBankAccount:(0,Y.action)({display:{label:`Get Customer Bank Account`,description:`Read a customer bank account object.`},performSafety:`safe`,perform:async(e,{connection:t,customerBankAccountId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/CustomerBankAccount.json`,a);return{data:Z(o)}},inputs:Vg,examplePayload:lg}),createCustomerBankAccount:Jg,listCustomer:(0,Y.action)({display:{label:`List Customers`,description:`List customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.customers.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:dg.data}),inputs:Mg,examplePayload:dg}),listCustomerBankAccount:(0,Y.action)({display:{label:`List Customer Bank Account`,description:`List customer bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Km.customerBankAccount,l);return{data:Z(u)}},examplePerform:async()=>({data:ug.data}),inputs:Bg,examplePayload:ug}),updateCustomer:(0,Y.action)({display:{label:`Update Customer`,description:`Update a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerName:n,customerId:r,additionalFields:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s={obj:{entity:`Customer`,name:n,...i||{},id:r}},c=(0,X.stringify)({data:JSON.stringify(s),devKey:o.devKey,sessionId:o.sessionId}),{data:l}=await a.post(`/Crud/Update/Customer.json`,c);return{data:Z(l)}},examplePerform:async()=>({data:fg.data}),inputs:Lg,examplePayload:fg})};const Xg=` See [Bill.com API documentation](https://developer.bill.com/reference/listinvoices) for more information.`,Zg={isActive:`1`,glPostingDate:`2024-04-10`,description:`Description`,isToBePrinted:!0},Qg=(0,Y.input)({label:`Invoice Number`,type:`string`,example:`00e02DTF...`,placeholder:`Enter invoice number`,required:!0,comments:`User-generated invoice number. This value can be a chosen number scheme or the invoice due date.`,clean:Y.util.types.toString}),$g=(0,Y.input)({label:`Invoice Date`,type:`string`,example:`2024-04-10`,placeholder:`Enter invoice date`,required:!0,comments:`Date when the invoice is issued to the customer. This value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),e_=(0,Y.input)({label:`Due Date`,type:`string`,example:`2024-04-10`,placeholder:`Enter due date`,required:!0,comments:`Date when the invoice is due. The value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),t_=(0,Y.input)({label:`Invoice Line Items`,type:`code`,language:`json`,comments:`An array of invoice line items.`,required:!0,example:JSON.stringify([{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}],null,2),clean:e=>Ym(e,`Invoice Line Items`)}),n_={connection:$,customerId:bh,invoiceNumber:Qg,invoiceDate:$g,dueDate:e_,invoiceLineItems:t_,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Zg,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createinvoice) for more information.`})},r_={connection:$,invoiceCreateBulk:(0,Y.input)({label:`Invoices to Create`,type:`code`,language:`json`,comments:`An array of invoice objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customertransactions-bulkcreateinvoice) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Invoice`,isActive:`1`,customerId:`0cu...`,invoiceNumber:`10`,invoiceDate:`2024-04-10`,dueDate:`2024-04-20`,isToBePrinted:!0,invoiceLineItems:[{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}]}}],null,2),clean:e=>Ym(e,`Invoices to Create`)})},i_=(0,Y.input)({label:`Invoice ID`,type:`string`,example:`00e...`,placeholder:`Enter invoice ID`,required:!0,comments:`The ID of the invoice.`,clean:Y.util.types.toString}),a_={connection:$,invoiceId:i_},o_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${Xg}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${Xg}`}),nested:vh},s_={connection:$,invoiceId:i_,customerId:bh,invoiceNumber:Qg,invoiceDate:$g,dueDate:e_,invoiceLineItems:t_,additionalFields:yh},c_={connection:$,invoiceUpdateBulk:(0,Y.input)({label:`Invoices to Update`,type:`code`,language:`json`,comments:`An array of invoice objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customertransactions-bulkupdateinvoice) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Invoice`,id:`00e`,isActive:`1`,customerId:`0cu...`,invoiceNumber:`10`,invoiceDate:`2024-04-10`,dueDate:`2024-04-20`,isToBePrinted:!0,invoiceLineItems:[{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}]}}],null,2),clean:e=>Ym(e,`Invoices to Update`)})},l_={connection:$,invoiceId:i_};var u_={bulkCreateInvoices:(0,Y.action)({display:{label:`Bulk Create Invoices`,description:`Bulk create invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:vg.data}),inputs:r_,examplePayload:vg}),bulkUpdateInvoices:(0,Y.action)({display:{label:`Bulk Update Invoices`,description:`Bulk update invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:yg.data}),inputs:c_,examplePayload:yg}),createInvoice:(0,Y.action)({display:{label:`Create Invoice`,description:`Create an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,invoiceLineItems:o,additionalFields:s})=>{let{client:c,loginData:l}=await Q(t,e.debug.enabled),u={obj:{entity:`Invoice`,customerId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,invoiceLineItems:o,...s||{}}},d=(0,X.stringify)({data:JSON.stringify(u),devKey:l.devKey,sessionId:l.sessionId}),{data:f}=await c.post(`/Crud/Create/Invoice.json`,d);return{data:Z(f)}},examplePerform:async()=>({data:hg.data}),inputs:n_,examplePayload:hg}),deleteInvoice:(0,Y.action)({display:{label:`Delete Invoice`,description:`Delete an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:gg.data}),inputs:l_,examplePayload:gg}),getInvoice:(0,Y.action)({display:{label:`Get Invoice`,description:`Read an invoice object.`},performSafety:`safe`,perform:async(e,{connection:t,invoiceId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Invoice.json`,a);return{data:Z(o)}},inputs:a_,examplePayload:pg}),listInvoice:(0,Y.action)({display:{label:`List Invoices`,description:`List invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.invoices.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:_g.data}),inputs:o_,examplePayload:_g}),updateInvoice:(0,Y.action)({display:{label:`Update Invoice`,description:`Update an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceId:n,customerId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,invoiceLineItems:s,additionalFields:c})=>{let{client:l,loginData:u}=await Q(t,e.debug.enabled),d={obj:{entity:`Invoice`,id:n,customerId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,invoiceLineItems:s,...c||{}}},f=(0,X.stringify)({data:JSON.stringify(d),devKey:u.devKey,sessionId:u.sessionId}),{data:p}=await l.post(`/Crud/Update/Invoice.json`,f);return{data:Z(p)}},examplePerform:async()=>({data:mg.data}),inputs:s_,examplePayload:mg})};const d_={connection:$},{debugRequest:f_,...p_}=fh.inputs,m_={connection:$,...p_,url:{...fh.inputs.url,comments:`Input the path only (/Login.json), The base URL is already included (https://api.bill.com/api/v2). For example, to connect to https://api.bill.com/api/v2/Login.json, only /Login.json is entered in this field.`,example:`/Login.json`}},h_={connection:$,challengeId:(0,Y.input)({label:`Challenge ID`,type:`string`,required:!0,example:`!b-KXe8pBDp1vFgjczlN7hRq2wYmT9sVdD4pLxZ8kGfBc3JeWa`,placeholder:`Enter challenge ID`,comments:`The challenge ID received from the 'Generate an MFA challenge ID' action.`,clean:Y.util.types.toString}),token:(0,Y.input)({label:`Code Token`,type:`string`,example:`987123`,placeholder:`Enter MFA code token`,required:!0,comments:`The MFA code token received at the user's device.`,clean:Y.util.types.toString}),sessionId:(0,Y.input)({label:`Session ID`,type:`string`,required:!0,placeholder:`Enter session ID`,comments:`The session ID received from the 'Generate an MFA challenge ID' action.`,clean:Y.util.types.toString})},g_=(0,Y.action)({display:{label:`Generate MFA Challenge ID`,description:`Create a trusted MFA session. Secondary (backup) phone MFA is no longer supported.`},performSafety:`notAllowed`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,e.debug.enabled),i=r.sessionId,a=(0,X.stringify)({data:JSON.stringify({}),devKey:r.devKey,sessionId:i}),{data:o}=await n.post(`/MFAChallenge.json`,a);return{data:{...Z(o),sessionId:i}}},examplePerform:async()=>({data:bg.data}),inputs:d_,examplePayload:bg}),__=(0,Y.action)({display:{label:`Authenticate MFA Session`,description:`Authenticate an MFA session. Sessions last only 30 days.`},performSafety:`notAllowed`,perform:async(e,{connection:t,challengeId:n,token:r,sessionId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s=`Device-${e.integration.name.replace(/\s/g,``)}`,c=(0,X.stringify)({data:JSON.stringify({rememberMe:!0,challengeId:n,machineName:`Instance`,token:r,deviceId:s}),devKey:o.devKey,sessionId:i}),{data:l}=await a.post(`/MFAAuthenticate.json`,c);return{data:{...Z(l),deviceId:s}}},examplePerform:async()=>({data:xg.data}),inputs:h_,examplePayload:xg});var v_={rawRequest:(0,Y.action)({display:{label:`Raw Request`,description:`Send raw HTTP request to Bill.`},inputs:m_,performSafety:`notAllowed`,perform:async(e,{connection:t,...n})=>{Xm(t);let{data:r}=await(0,fh.sendRawRequest)($m(t),{...n,debugRequest:e.debug.enabled});return{data:Z(r)}}}),generateMfaChallengeId:g_,mfaAuthenticate:__};const y_=` See [Bill.com API documentation](https://developer.bill.com/reference/listvendors) for more information.`,b_=` See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-listvendorbankaccount) for more information.`,x_={isActive:`string`,shortName:`string`,nameOnCheck:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`},S_={isActive:`string`,nameOnAcct:`string`,usersId:`string`,isSavings:!0,isPersonalAcct:!0,intlPaymentType:`string`,paymentCurrency:`string`,vendorBankData:`string`,bankAddSource:`string`,intlTemplateKey:`string`,regulatory1:`string`,regulatory2:`string`,regulatory3:`string`,regulatory4:`string`,regulatory5:`string`,regulatory6:`string`,regulatory7:`string`},C_=(0,Y.input)({label:`Vendor Name`,type:`string`,example:`Example Vendor`,placeholder:`Enter vendor name`,required:!0,comments:`Unique vendor name.`,clean:Y.util.types.toString}),w_={connection:$,name:C_,companyName:(0,Y.input)({label:`Company Name`,type:`string`,example:`Example Company`,placeholder:`Enter company name`,required:!0,comments:`Vendor organization full name.`,clean:Y.util.types.toString}),email:(0,Y.input)({label:`Email`,type:`string`,example:`example@email.com`,placeholder:`Enter email address`,required:!0,comments:`Vendor email address.`,clean:Y.util.types.toString}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(x_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createvendor) for more information.`})},T_={connection:$,vendorCreateBulk:(0,Y.input)({label:`Vendors to Create`,type:`code`,language:`json`,comments:`An array of vendor objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkcreatevendor) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Vendor`,isActive:`string`,name:`string`,shortName:`string`,nameOnCheck:`string`,companyName:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,email:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`}}],null,2),clean:e=>Ym(e,`Vendors to Create`)})},E_={connection:$,vendorId:xh},D_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${y_}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${y_}`}),nested:vh},O_={connection:$,vendorId:xh,name:C_,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(x_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatevendor) for more information.`})},k_={connection:$,vendorUpdateBulk:(0,Y.input)({label:`Vendors to Update`,type:`code`,language:`json`,comments:`An array of vendor objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkupdatevendor) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`009...`,entity:`Vendor`,isActive:`string`,name:`string`,shortName:`string`,nameOnCheck:`string`,companyName:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,email:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`}}],null,2),clean:e=>Ym(e,`Vendors to Update`)})},A_={connection:$,vendorId:xh},j_={connection:$,mfaId:wh,deviceId:Th,vendorId:xh,accountNumber:(0,Y.input)({...Sh,comments:`The vendor bank account number.`}),routingNumber:(0,Y.input)({...Ch,comments:`The vendor bank routing number.`}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(S_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createvendorbankaccount) for more information.`})},M_={connection:$,mfaId:wh,deviceId:Th,vendorBankAccountCreateBulk:(0,Y.input)({label:`Vendor Bank Accounts to Create`,type:`code`,language:`json`,comments:`An array of vendor bank account objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkcreatevendorbankaccount) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`VendorBankAccount`,isActive:`string`,vendorId:`string`,nameOnAcct:`string`,accountNumber:`string`,routingNumber:`string`,usersId:`string`,isSavings:!0,isPersonalAcct:!0,intlPaymentType:`string`,paymentCurrency:`string`,vendorBankData:`string`,bankAddSource:`string`,intlTemplateKey:`string`,regulatory1:`string`,regulatory2:`string`,regulatory3:`string`,regulatory4:`string`,regulatory5:`string`,regulatory6:`string`,regulatory7:`string`}}],null,2),clean:e=>Ym(e,`Vendor Bank Accounts to Create`)})},N_=(0,Y.input)({label:`Vendor Bank Account ID`,type:`string`,example:`vba...`,placeholder:`Enter vendor bank account ID`,required:!0,comments:`ID of the vendor bank account.`,clean:Y.util.types.toString}),P_={connection:$,vendorBankAccountId:N_},F_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${b_}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${b_}`}),nested:vh},I_={connection:$,mfaId:wh,deviceId:Th,vendorBankAccountId:N_};var L_={bulkCreateVendor:(0,Y.action)({display:{label:`Bulk Create Vendor`,description:`Bulk create vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Xh.data}),inputs:T_,examplePayload:Xh}),bulkCreateVendorBankAccounts:(0,Y.action)({display:{label:`Bulk Create Vendor Bank Accounts`,description:`Bulk create vendor bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorBankAccountCreateBulk:n,mfaId:r,deviceId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled,{mfaId:r,deviceId:i}),s=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:o.devKey,sessionId:o.sessionId}),{data:c}=await a.post(`/Bulk/Crud/Create/VendorBankAccount.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:wg.data}),inputs:M_,examplePayload:wg}),bulkUpdateVendors:(0,Y.action)({display:{label:`Bulk Update Vendors`,description:`Bulk update vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Zh.data}),inputs:k_,examplePayload:Zh}),createVendor:(0,Y.action)({display:{label:`Create Vendor`,description:`Create a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,name:n,companyName:r,email:i,additionalFields:a})=>{let{client:o,loginData:s}=await Q(t,e.debug.enabled),c={obj:{entity:`Vendor`,name:n,companyName:r,email:i,...a||{}}},l=(0,X.stringify)({data:JSON.stringify(c),devKey:s.devKey,sessionId:s.sessionId}),{data:u}=await o.post(`/Crud/Create/Vendor.json`,l);return{data:Z(u)}},examplePerform:async()=>({data:Gh.data}),inputs:w_,examplePayload:Gh}),createVendorBankAccount:(0,Y.action)({display:{label:`Create Vendor Bank Account`,description:`Create a vendor bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,accountNumber:r,routingNumber:i,mfaId:a,deviceId:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled,{mfaId:a,deviceId:o}),l=(0,X.stringify)({data:JSON.stringify({obj:{entity:`VendorBankAccount`,vendorId:n,accountNumber:r,routingNumber:i}}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(`/Crud/Create/VendorBankAccount.json`,l);return{data:Z(u)}},examplePerform:async()=>({data:Sg.data}),inputs:j_,examplePayload:Sg}),deleteVendor:(0,Y.action)({display:{label:`Delete Vendor`,description:`Delete a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Jh.data}),inputs:A_,examplePayload:Jh}),deleteVendorBankAccount:(0,Y.action)({display:{label:`Delete Vendor Bank Account`,description:`Delete a vendor bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorBankAccountId:n,mfaId:r,deviceId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled,{mfaId:r,deviceId:i}),s=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:o.devKey,sessionId:o.sessionId}),{data:c}=await a.post(`/Crud/Delete/VendorBankAccount.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:Cg.data}),inputs:I_,examplePayload:Cg}),getVendor:(0,Y.action)({display:{label:`Get Vendor`,description:`Read a vendor object.`},performSafety:`safe`,perform:async(e,{connection:t,vendorId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Vendor.json`,a);return{data:Z(o)}},inputs:E_,examplePayload:qh}),getVendorBankAccount:(0,Y.action)({display:{label:`Get Vendor Bank Account`,description:`Read a vendor bank account object.`},performSafety:`safe`,perform:async(e,{connection:t,vendorBankAccountId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/VendorBankAccount.json`,a);return{data:Z(o)}},inputs:P_,examplePayload:Qh}),listVendorBankAccounts:(0,Y.action)({display:{label:`List Vendor Bank Accounts`,description:`List vendor bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Km.vendorBankAccount,l);return{data:Z(u)}},examplePerform:async()=>({data:$h.data}),inputs:F_,examplePayload:$h}),listVendors:(0,Y.action)({display:{label:`List Vendors`,description:`List vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.vendors.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:Yh.data}),inputs:D_,examplePayload:Yh}),updateVendor:(0,Y.action)({display:{label:`Update Vendor`,description:`Update a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,name:r,additionalFields:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s={obj:{id:n,entity:`Vendor`,name:r,...i||{}}},c=(0,X.stringify)({data:JSON.stringify(s),devKey:o.devKey,sessionId:o.sessionId}),{data:l}=await a.post(`/Crud/Update/Vendor.json`,c);return{data:Z(l)}},examplePerform:async()=>({data:Kh.data}),inputs:O_,examplePayload:Kh})},R_={...Yg,...u_,...L_,...Dg,...v_};const z_={connection:$,pollResourceType:(0,Y.input)({label:`Resource Type`,type:`string`,required:!0,model:th,comments:`The type of resource to poll for changes.`,clean:Y.util.types.toString}),showNewRecords:(0,Y.input)({label:`Show New Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, newly created records will be included in the trigger output.`,clean:Y.util.types.toBool}),showUpdatedRecords:(0,Y.input)({label:`Show Updated Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, records that were updated after the last poll will be included in the trigger output.`,clean:Y.util.types.toBool})};var B_={pollChangesTrigger:(0,Y.pollingTrigger)({display:{label:`New and Updated Records`,description:`Checks for new and updated records in a selected Bill.com resource type on a configured schedule.`},inputs:z_,examplePayload:Eg,async perform(e,t,n){let r=Gm[n.pollResourceType];if(!r)throw Error(`Unsupported resource type: ${n.pollResourceType}`);let i=new Date().toISOString(),a=e.polling.getState()?.lastPolledAt??i;if(!n.showNewRecords&&!n.showUpdatedRecords)return e.polling.setState({lastPolledAt:i}),{payload:{...t,body:{data:{created:[],updated:[]}}},polledNoChanges:!0};let{client:o,loginData:s}=await Q(n.connection,e.debug.enabled),c=await nh(o,s,r.endpoint,[{field:`updatedTime`,op:`>`,value:a}]),{created:l,updated:u}=eh(c,a,`createdTime`,`updatedTime`,n.showNewRecords,n.showUpdatedRecords),d=l.length+u.length;return e.logger.debug(`Polled ${c.length} ${n.pollResourceType} records, ${l.length} created and ${u.length} updated since last poll.`),e.polling.setState({lastPolledAt:i}),{payload:{...t,body:{data:{created:l,updated:u}}},polledNoChanges:d===0}}})};const V_={connection:$},H_={connection:$},U_={connection:$},W_={connection:$},G_={connection:$},K_={connection:$};var q_={selectBill:(0,Y.dataSource)({display:{label:`Select Bill`,description:`Select a bill from the list of available bills.`},inputs:V_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.bills.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.invoiceNumber}))}}}),selectCustomer:(0,Y.dataSource)({display:{label:`Select Customer`,description:`Select a customer from the list of available customers.`},inputs:H_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.customers.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.name}))}}}),selectCustomerBankAccount:(0,Y.dataSource)({display:{label:`Select Customer Bank Account`,description:`Select a customer bank account from the list of available customer bank accounts.`},inputs:G_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Km.customerBankAccount,i);return{result:Z(a).map(e=>({key:e.id,label:e.nameOnAccount}))}}}),selectInvoice:(0,Y.dataSource)({display:{label:`Select Invoice`,description:`Select an invoice from the list of available invoices.`},inputs:W_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.invoices.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.invoiceNumber}))}}}),selectVendor:(0,Y.dataSource)({display:{label:`Select Vendor`,description:`Select a vendor from the list of available vendors.`},inputs:U_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.vendors.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.name}))}}}),selectVendorBankAccount:(0,Y.dataSource)({display:{label:`Select Vendor Bank Account`,description:`Select a vendor bank account from the list of available vendor bank accounts.`},inputs:K_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Km.vendorBankAccount,i);return{result:Z(a).map(e=>({key:e.id,label:e.nameOnAcct}))}}})},J_=(0,Y.component)({key:`bill`,public:!0,documentationUrl:`https://prismatic.io/docs/components/bill/`,display:{label:`Bill`,description:`Use the Bill component to manage Bank Accounts, Invoices, Bills, and more.`,iconPath:`icon.png`,category:`Application Connectors`},hooks:{error:fh.handleErrors},actions:R_,triggers:B_,dataSources:q_,connections:Nm});exports.default=J_;
|
|
221
|
+
let t=sh(),n=ch(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(he(e,ArrayBuffer)||e&&he(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(he(e,SharedArrayBuffer)||e&&he(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(he(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ge(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),he(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(he(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||he(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return de(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return me(e).length;default:if(i)return r?-1:de(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return P(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return ee(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ge(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(ge(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return H(de(t,e.length-n),e,n,r)}function E(e,t,n,r){return H(fe(t),e,n,r)}function D(e,t,n,r){return H(me(t),e,n,r)}function O(e,t,n,r){return H(pe(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}let j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function ee(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=_e[e[r]];return i}function F(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=ve(function(e){e>>>=0,se(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ce(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i){oe(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){oe(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=ve(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=ve(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=ve(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=ve(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function B(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)};function V(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let ne={};function re(e,t,n){ne[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}re(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),re(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),re(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ie(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ie(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ae(e,t,n){se(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ce(t,e.length-(n+1))}function oe(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new ne.ERR_OUT_OF_RANGE(`value`,i,e)}ae(r,i,a)}function se(e,t){if(typeof e!=`number`)throw new ne.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ce(e,t,n){throw Math.floor(e)===e?t<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(se(e,n),new ne.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let le=/[^+/0-9A-Za-z-_]/g;function ue(e){if(e=e.split(`=`)[0],e=e.trim().replace(le,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function de(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function fe(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function pe(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function me(e){return t.toByteArray(ue(e))}function H(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function he(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ge(e){return e!==e}let _e=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function ve(e){return typeof BigInt>`u`?ye:e}function ye(){throw Error(`BigInt not supported`)}})),uh=a(((e,t)=>{let n=oh(),r=typeof window<`u`?lh().Buffer:global.Buffer;function i(e){return 12+4*Math.ceil(e.length/4)}function a(){return!(typeof window<`u`&&typeof document<`u`)}function o(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function s(e){let t=0;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),ArrayBuffer.isView(e))return o(e);let i=JSON.stringify(n,(e,t)=>typeof t==`bigint`||typeof t==`function`?t.toString():t===void 0?`undefined`:typeof t==`symbol`||t instanceof RegExp?t.toString():t);t=r.byteLength(i,`utf8`)}catch{return Error(-1)}return t}function c(e){let t=[],o=[e],s=0;for(;o.length;){let c=o.pop();if(typeof c==`boolean`)s+=n.BYTES;else if(typeof c==`string`)a()?s+=i(c):s+=c.length*n.STRING;else if(typeof c==`number`)s+=n.NUMBER;else if(typeof c==`symbol`)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if(typeof c==`bigint`)s+=r.from(c.toString()).byteLength;else if(typeof c==`function`)s+=c.toString().length;else if(typeof c==`object`&&t.indexOf(c)===-1){t.push(c);for(let e in c)o.push(c[e])}}return s}t.exports=function(e){let t=0;return t=typeof e==`object`&&e?s(e):c(e),t}})),dh=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.debugRequest=e.fileDataFileNames=e.fileData=e.formData=e.retryAllErrors=e.useExponentialBackoff=e.retryDelayMS=e.maxRetries=e.queryParams=e.headers=e.responseType=e.method=e.timeout=e.data=e.url=void 0;let t=Mm();e.url=(0,t.input)({label:`URL`,placeholder:`URL to call`,type:`string`,required:!0,comments:`This is the URL to call.`,example:`/sobjects/Account`,clean:e=>t.util.types.toString(e)}),e.data=(0,t.input)({label:`Data`,placeholder:`Data to send`,type:`string`,required:!1,comments:`The HTTP body payload to send to the URL.`,example:`{"exampleKey": "Example Data"}`}),e.timeout=(0,t.input)({label:`Timeout`,type:`string`,required:!1,comments:`The maximum time that a client will await a response to its request`,example:`2000`,clean:e=>t.util.types.toNumber(e)}),e.method=(0,t.input)({label:`Method`,type:`string`,required:!0,model:[`DELETE`,`GET`,`HEAD`,`LINK`,`OPTIONS`,`PATCH`,`POST`,`PURGE`,`PUT`,`UNLINK`].map(e=>({label:e,value:e})),comments:`The HTTP method to use.`,clean:e=>t.util.types.toString(e)}),e.responseType=(0,t.input)({label:`Response Type`,placeholder:`Response Type`,type:`string`,default:`json`,required:!0,comments:`The type of data you expect in the response. You can request json, text, or binary data.`,model:[`arraybuffer`,`document`,`json`,`text`].map(e=>({label:e,value:e})),clean:e=>t.util.types.toString(e)}),e.headers=(0,t.input)({label:`Header`,placeholder:`Header`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of headers to send with the request.`,example:`User-Agent: curl/7.64.1`}),e.queryParams=(0,t.input)({label:`Query Parameter`,placeholder:`Query Parameter`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.`}),e.maxRetries=(0,t.input)({label:`Max Retry Count`,placeholder:`Max Retries`,type:`string`,required:!1,comments:`The maximum number of retries to attempt. Specify 0 for no retries.`,default:`0`,clean:e=>t.util.types.toNumber(e)}),e.retryDelayMS=(0,t.input)({label:`Retry Delay (ms)`,placeholder:`Retry Delay`,type:`string`,required:!1,comments:`The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.`,default:`0`,clean:e=>t.util.types.toNumber(e,0)}),e.useExponentialBackoff=(0,t.input)({label:`Use Exponential Backoff`,type:`boolean`,default:`false`,required:!1,comments:`Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.`,clean:e=>t.util.types.toBool(e)}),e.retryAllErrors=(0,t.input)({label:`Retry On All Errors`,type:`boolean`,default:`false`,required:!1,comments:`If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.`,clean:e=>t.util.types.toBool(e)}),e.formData=(0,t.input)({label:`Form Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`The Form Data to be sent as a multipart form upload.`,example:`[{"key": "Example Key", "value": new Buffer("Hello World")}]`}),e.fileData=(0,t.input)({label:`File Data`,placeholder:`Data to send`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File Data to be sent as a multipart form upload.`,example:`[{key: "example.txt", value: "My File Contents"}]`}),e.fileDataFileNames=(0,t.input)({label:`File Data File Names`,placeholder:`The file name to apply to a file`,type:`string`,collection:`keyvaluelist`,required:!1,comments:`File names to apply to the file data inputs. Keys must match the file data keys above.`,clean:e=>e?t.util.types.keyValPairListToObject(e):void 0}),e.debugRequest=(0,t.input)({label:`Debug Request`,type:`boolean`,required:!1,comments:`Enabling this flag will log out the current request.`,clean:e=>t.util.types.toBool(e)}),e.inputs={url:e.url,method:e.method,data:e.data,formData:e.formData,fileData:e.fileData,fileDataFileNames:e.fileDataFileNames,queryParams:e.queryParams,headers:e.headers,responseType:e.responseType,timeout:e.timeout,debugRequest:e.debugRequest,retryDelayMS:e.retryDelayMS,retryAllErrors:e.retryAllErrors,maxRetries:e.maxRetries,useExponentialBackoff:e.useExponentialBackoff}})),fh=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.inputs=e.buildRawRequestAction=e.sendRawRequest=e.handleErrors=e.createClient=e.toAxiosRetryConfig=void 0;let s=o(Lu()),c=r(ih()),l=o(wu()),u=o(ah()),d=o(uh()),f=Mm(),p=o(hl()),m=dh();Object.defineProperty(e,"inputs",{enumerable:!0,get:function(){return m.inputs}});let h=/^(cookie|set-cookie)$|auth|token|secret|password|api[-_]?key/i,g=e=>typeof e==`object`&&!!e&&typeof e.toJSON==`function`,_=e=>{let t=g(e)?e.toJSON():Object.assign({},e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,h.test(e)?`[REDACTED]`:t]))},v=e=>{let t=p.default.types.toString(e.token?.access_token);if(t)return{Authorization:`Bearer ${t}`};let n=p.default.types.toString(e.fields?.apiKey);if(n)return{Authorization:`Bearer ${n}`};let r=p.default.types.toString(e.fields?.username),i=p.default.types.toString(e.fields?.password);if(r&&i)return{Authorization:`Basic ${Buffer.from(`${r}:${i}`).toString(`base64`)}`};throw Error(`Failed to guess at authorization parameters for Connection: ${e.key}`)},y=(e,t,n={})=>{let r=new l.default;return(e||[]).map(({key:e,value:t})=>r.append(e,t)),(t||[]).map(({key:e,value:t})=>r.append(e,p.default.types.toBufferDataPayload(t).data,{filename:n?.[e]||e})),r},b=(e,t)=>t?typeof e==`number`?t=>2**(t-1)*e:c.exponentialDelay:typeof e==`number`?()=>e:e;e.toAxiosRetryConfig=e=>{var{retryDelay:t,retryAllErrors:n,retryCondition:r,useExponentialBackoff:i}=e,o=a(e,[`retryDelay`,`retryAllErrors`,`retryCondition`,`useExponentialBackoff`]);return Object.assign(Object.assign({},o),{retryDelay:b(t,i),retryCondition:n?()=>!0:typeof r==`function`?r:c.isNetworkOrIdempotentRequestError})},e.createClient=({baseUrl:t,responseType:n,headers:r,timeout:i,params:a,debug:o=!1,retryConfig:l})=>{let u=s.default.create({baseURL:t,responseType:n,headers:r,timeout:i,params:a,maxContentLength:1/0,maxBodyLength:1/0});return o&&(u.interceptors.request.use(e=>{let{baseURL:t,headers:n,method:r,timeout:i,url:a,data:o,params:s}=e,c=(0,d.default)(o);return console.log(p.default.types.toJSON({type:`request`,baseURL:t,params:s,url:a,headers:_(n),method:r,timeout:i,data:c>1024*10||Buffer.isBuffer(o)?`<data (${c} bytes)>`:o},!0,!0)),e}),u.interceptors.response.use(e=>{let{headers:t,status:n,statusText:r,data:i}=e,a=(0,d.default)(i);return console.log(p.default.types.toJSON({type:`response`,headers:_(t),status:n,statusText:r,data:a>1024*10||Buffer.isBuffer(i)?`<data (${a} bytes)>`:i},!0,!0)),e})),l&&(0,c.default)(u,(0,e.toAxiosRetryConfig)(l)),u},e.handleErrors=e=>{if(s.default.isAxiosError(e)){let{message:t,response:n}=e;return{message:t,data:n?.data,status:n?.status,headers:n?.headers}}return e},e.sendRawRequest=(t,n,...r)=>i(void 0,[t,n,...r],void 0,function*(t,n,r={}){if(n.data&&(!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)))throw Error(`Cannot specify both Data and File/Form Data.`);let i=!(0,u.default)(n.formData)||!(0,u.default)(n.fileData)?y(n.formData,n.fileData,n.fileDataFileNames):n.data;return yield(0,e.createClient)({baseUrl:t,debug:n.debugRequest,responseType:n.responseType,timeout:n.timeout,retryConfig:{retries:n.maxRetries,retryDelay:n.retryDelayMS,retryAllErrors:n.retryAllErrors,useExponentialBackoff:n.useExponentialBackoff}}).request({method:n.method,url:n.url,headers:Object.assign(Object.assign(Object.assign({},p.default.types.keyValPairListToObject(n.headers)),i instanceof l.default?i.getHeaders():{}),r),params:p.default.types.keyValPairListToObject(n.queryParams),data:i||void 0})}),e.buildRawRequestAction=(t,n=`Raw Request`,r=`Issue a raw HTTP request`)=>(0,f.action)({display:{label:n,description:r},inputs:Object.assign({connection:{label:`Connection`,type:`connection`,required:!0}},m.inputs),perform:(n,r)=>i(void 0,void 0,void 0,function*(){var{connection:n}=r,i=a(r,[`connection`]);let{data:o}=yield(0,e.sendRawRequest)(t,i,v(n));return{data:o}})})}))();const ph=async(e,t,n)=>{let r=e.fields.developerKey,i=(0,X.stringify)({userName:e.fields.username,password:e.fields.password,orgId:e.fields.organizationId,devKey:r,...n||{}}),{data:a}=await(0,fh.createClient)({baseUrl:$m(e),headers:{"content-type":`application/x-www-form-urlencoded`},debug:t}).post(`/Login.json`,i);if(a.response_status!==0)throw Error(JSON.stringify(a));return{...a.response_data,devKey:r}},Q=async(e,t,n)=>{Xm(e);let r=await ph(e,t,n);return{client:(0,fh.createClient)({baseUrl:$m(e),debug:t,headers:{"content-type":`application/x-www-form-urlencoded`,accept:`application/json`}}),loginData:r}},$=(0,Y.input)({label:`Connection`,type:`connection`,required:!0,comments:`The Bill.com connection to use.`}),mh=(0,Y.input)({label:`Filters`,type:`code`,language:`json`,comments:`An array of filters to apply.`,required:!1,placeholder:`Enter filter criteria`,example:JSON.stringify([{field:`field1`,op:`=`,value:`something`}],null,2),clean:e=>Ym(e,`Filters`)}),hh=(0,Y.input)({label:`Sort`,type:`code`,language:`json`,comments:`An array of sort objects.`,required:!1,placeholder:`Enter sort criteria`,example:JSON.stringify([{field:`field1`,asc:!0}],null,2),clean:e=>Ym(e,`Sort`)}),gh=(0,Y.input)({label:`Start`,type:`string`,comments:`Index of the first result.`,required:!0,placeholder:`Enter start index`,example:`0`,default:`0`,clean:Y.util.types.toNumber}),_h=(0,Y.input)({label:`Max`,type:`string`,comments:`Maximum number of results to return.`,required:!0,placeholder:`Enter maximum results`,example:`999`,default:`999`,clean:Y.util.types.toNumber}),vh=(0,Y.input)({label:`Nested`,type:`boolean`,comments:`When true, includes additional nested data in the response.`,required:!1,default:`false`,clean:Y.util.types.toBool}),yh=(0,Y.input)({label:`Additional Fields`,type:`code`,language:`json`,comments:`Additional fields that might not be covered by the standard inputs.`,required:!1,placeholder:`Enter additional fields`,example:JSON.stringify({customField:`value`},null,2),clean:e=>Jm(e,`Additional Fields`)}),bh=(0,Y.input)({label:`Customer ID`,type:`string`,example:`0cu...`,placeholder:`Enter customer ID`,required:!0,comments:`The unique identifier for the customer.`,clean:Y.util.types.toString,dataSource:`selectCustomer`}),xh=(0,Y.input)({label:`Vendor ID`,type:`string`,example:`009...`,placeholder:`Enter vendor ID`,required:!0,comments:`The unique identifier for the vendor.`,clean:Y.util.types.toString,dataSource:`selectVendor`}),Sh=(0,Y.input)({label:`Account Number`,type:`string`,example:`0112345678`,placeholder:`Enter account number`,required:!0,comments:`The bank account number.`,clean:Y.util.types.toString}),Ch=(0,Y.input)({label:`Routing Number`,type:`string`,example:`012345678`,placeholder:`Enter routing number`,required:!0,comments:`The bank routing number.`,clean:Y.util.types.toString}),wh=(0,Y.input)({label:`MFA ID`,type:`string`,example:`!b_EJCd_jPIsZYT...`,placeholder:`Enter MFA ID`,required:!0,comments:`The unique identifier for the MFA session. Retrieved from the 'Authenticate MFA session' action.`,clean:Y.util.types.toString}),Th=(0,Y.input)({label:`Device ID`,type:`string`,example:`Acme-...`,placeholder:`Enter device ID`,required:!0,comments:`The unique identifier for the device. Retrieved from the 'Authenticate MFA session' action.`,clean:Y.util.types.toString}),Eh=` See [Bill.com API documentation](https://developer.bill.com/reference/listbills) for more information.`,Dh=(0,Y.input)({label:`Invoice Number`,type:`string`,example:`01`,placeholder:`Enter invoice number`,required:!0,comments:`User-generated invoice number. This value can be a chosen number scheme or the bill due date.`,clean:Y.util.types.toString}),Oh=(0,Y.input)({label:`Invoice Date`,type:`string`,example:`2021-01-01`,placeholder:`Enter invoice date`,required:!0,comments:`Date when the bill is sent. This value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),kh=(0,Y.input)({label:`Due Date`,type:`string`,example:`2021-01-01`,placeholder:`Enter due date`,required:!0,comments:`Date when the bill is due. The value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),Ah=(0,Y.input)({label:`Bill Line Items`,type:`code`,language:`json`,comments:`An array of bill line items. See [Bill.com API documentation](https://developer.bill.com/reference/createbill) for more information.`,required:!0,example:JSON.stringify([{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}],null,2),clean:e=>Ym(e,`Bill Line Items`)}),jh=(0,Y.input)({label:`Allow Duplicate Invoice Number`,type:`boolean`,comments:`When true, allows duplicate invoice numbers.`,default:`false`,clean:Y.util.types.toBool}),Mh={entity:`Bill`,isActive:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`},Nh={connection:$,vendorId:xh,invoiceNumber:Dh,invoiceDate:Oh,dueDate:kh,billLineItems:Ah,allowDuplicateInvNum:jh,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Mh,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createbill) for more information.`})},Ph={connection:$,billsCreateBulk:(0,Y.input)({label:`Bills to Create`,type:`code`,language:`json`,comments:`An array of bill objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendortransactions-bulkcreatebill) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Bill`,isActive:`string`,vendorId:`string`,invoiceNumber:`string`,invoiceDate:`string`,dueDate:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`,billLineItems:[{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}]},allowDuplicateInvNum:!0}],null,2),clean:e=>Ym(e,`Bills to Create`)})},Fh=(0,Y.input)({label:`Bill ID`,type:`string`,example:`00n...`,placeholder:`Enter bill ID`,required:!0,comments:`The unique identifier for the bill.`,clean:Y.util.types.toString}),Ih={connection:$,billId:Fh},Lh={connection:$,start:gh,max:_h,filters:(0,Y.input)({...mh,comments:`${mh.comments}${Eh}`}),sort:(0,Y.input)({...hh,comments:`${hh.comments}${Eh}`}),nested:vh},Rh=(0,Y.input)({label:`Allow Duplicate Invoice Number`,type:`string`,comments:`Allow duplicate invoice numbers.`,required:!1,default:void 0,placeholder:`Select option`,model:[`True`,`False`].map(e=>({label:e,value:e.toLowerCase()})),clean:Zm}),zh={connection:$,billId:Fh,vendorId:xh,invoiceNumber:Dh,invoiceDate:Oh,dueDate:kh,billLineItems:(0,Y.input)({...Ah,comments:`An array of bill line items. See [Bill.com API documentation](https://developer.bill.com/reference/updatebill) for more information.`}),allowDuplicateInvNum:Rh,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Mh,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatebill) for more information.`})},Bh={connection:$,billsUpdateBulk:(0,Y.input)({label:`Bills to Update`,type:`code`,language:`json`,comments:`An array of bill objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendortransactions-bulkupdatebill) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`00n...`,entity:`Bill`,isActive:`string`,vendorId:`string`,invoiceNumber:`string`,invoiceDate:`string`,dueDate:`string`,glPostingDate:`string`,exchangeRate:0,description:`string`,poNumber:`string`,payFromBankAccountId:`string`,payFromChartOfAccountId:`string`,paymentTermId:`string`,hasAutoPay:!0,eBillCreated:!0,invoiceProductId:`string`,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,actgClassId:`string`,source:`string`,useBillDesc:!0,defaultInvoiceNumber:!0,isAutoSaved:!0,billTemplateId:`string`,billLineItems:[{entity:`BillLineItem`,amount:0,chartOfAccountId:`string`,departmentId:`string`,locationId:`string`,jobId:`string`,customerId:`string`,jobBillable:!0,description:`string`,lineType:`string`,itemId:`string`,quantity:0,unitPrice:0,employeeId:`string`,actgClassId:`string`,purchaseOrderBillLinkId:`string`,unitOfMeasureId:`string`,lineOrder:0,cdFieldId1:`string`,cdFieldId2:`string`,cdFieldId3:`string`,cdFieldId4:`string`,cdFieldId5:`string`,cdFieldId6:`string`,useSmartApprovers:!0}]},allowDuplicateInvNum:!0}],null,2),clean:e=>Ym(e,`Bills to Update`)})},Vh={connection:$,billId:Fh},Hh={data:{entity:`Customer`,id:`0cu02EAQUAPCBNTDsmzc`,isActive:`1`,createdTime:`2024-07-29T20:30:30.000+0000`,updatedTime:`2024-07-30T19:14:48.000+0000`,name:`John`,shortName:null,parentCustomerId:`00000000000000000000`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`,accNumber:null,billAddress1:null,billAddress2:null,billAddress3:null,billAddress4:null,billAddressCity:null,billAddressState:null,billAddressCountry:null,billAddressZip:null,shipAddress1:null,shipAddress2:null,shipAddress3:null,shipAddress4:null,shipAddressCity:null,shipAddressState:null,shipAddressCountry:null,shipAddressZip:null,email:null,phone:null,altPhone:null,fax:null,description:null,invoiceCurrency:null,printAs:null,mergedIntoId:`00000000000000000000`,hasAuthorizedToCharge:!1,accountType:`0`,paymentTermId:`00000000000000000000`,balance:0,availCredit:0,taxId:null,hasBankAccount:!1,hasNetBankAccount:!1,hasBankAccountAutoPay:!1,hasCreditCard:!1,hasCreditCardAutoPay:!1,defaultDeliveryMethod:null,isAutoChargeDismissed:!1,isTaxLiable:!1,creationSource:`0`,enabledInvoiceFinancing:!1,hasCustomerCard:!1,enabledAutoInvoiceFinancing:!1}},Uh={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Hh.data}]}},Wh=Uh,Gh={data:{entity:`Vendor`,id:`00902YSABCAKZHY25m0r`,isActive:`1`,name:`Acme Vendor`,shortName:null,nameOnCheck:`Acme Vendor`,companyName:`Acme`,accNumber:null,taxId:null,taxIdType:null,track1099:!1,address1:null,address2:null,address3:null,address4:null,addressCity:null,addressState:null,addressZip:null,addressCountry:null,email:`example@email.com`,fax:null,phone:null,payBy:`0`,paymentEmail:null,paymentPhone:null,description:null,createdTime:`2024-07-30T19:31:00.000+0000`,updatedTime:`2024-07-30T19:31:00.000+0000`,contactFirstName:null,contactLastName:null,mergedIntoId:`00000000000000000000`,accountType:`0`,paymentTermId:`00000000000000000000`,sendNotifications:!0,balance:0,availCredit:0,lastBalanceUpdate:null,externalBillPayIn12m:null,since:null,payDaysBefore:null,enabledCombinePayments:!0,hasBankAccountAutoPay:!1,hasRecurringPayments:!1,billCurrency:`USD`,billSyncPref:`0`,paymentCurrency:null,prefPmtMethod:`1`,paymentPurpose:null,bankCountry:null,vendorBankAccountStatus:-1,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:null,vendorVCardStatus:`-1`,orgVCardStatus:`1`,prefRemitEmail:`0`,remitEmail:null,processorVCardStatus:null,vStatusUpdateSource:null,allowConnectedVendorEditAddress:!1,informConnectedVendorAddressSyncModified:!1,intlPaymentType:`0`,vcardEnrollDate:null,vcardDeclineDate:null,isAccountNumberRequired:!1,largeBillerId:`00000000000000000000`,orgVCardOptOutCustReason:null,enableFundedInvite:!1,lastPaymentDate:null,numberOfInvitesSent:0,eligibleForEbills:!1,acknowledgedEbillBanner:!1,acknowledgedEbillError:!1,eBillEnablementFailed:!1,PaymentusMerchantId:null,unmodifiedBillsCount:0,setupAutoPayPrompt:!1,autoPayConflict:!1,nameOnCheckRemediation:!1,autoSave:null,autoSaveStatus:null,creationSource:`0`,PaymentusPmtType:null,PaymentusAcctToken:null,PaymentusAcctToken2:null,PaymentusAcctToken3:null,stpProcessor:`0`,eBillEnabledStatus:`0`,orgVCardOptOutCustOther:null,networkStatus:null,vcardProcessor:`1`,isAddressValidated:!1,isSyncVendorCountryMapped:!1,optedOutOfVCardByOrg:!1,invalidCountryCurrencyAtNewVendorSync:!1,acctBalance:0,lastAcctBalanceUpdate:null,paymentEmails:null,eBillEligible:!1,required:[]}},Kh=Gh,qh=Gh,Jh=Gh,Yh={data:[Gh.data]},Xh={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Gh.data}]}},Zh=Xh,Qh={data:{entity:`VendorBankAccount`,id:`vba02BSNHVJVZPN17kxr`,isActive:`1`,createdTime:`2024-07-30T20:33:28.000+0000`,updatedTime:`2024-07-30T20:33:28.000+0000`,vendorId:`00902JIJYMCGEGI25m2l`,nameOnAcct:`John Doe`,accountNumber:`******7890`,routingNumber:`021000021`,usersId:`00602ZGNAZQYJBKLdrql`,status:`1`,isSavings:!1,isPersonalAcct:!1,intlEPaymentAcct:!1,intlPaymentType:`0`,paymentCurrency:null,bankCountry:null,vendorBankData:null,bankAddSource:`2`,intlTemplateKey:null,regulatory1:null,regulatory2:null,regulatory3:null,regulatory4:null,regulatory5:null,regulatory6:null,regulatory7:null}},$h={data:[Qh.data]},eg={data:{entity:`Bill`,id:`00n02XNWHOPPXWV9ewx0`,isActive:`1`,vendorId:`00902YSHZXAKZHY25m0r`,invoiceNumber:`01`,approvalStatus:`0`,invoiceDate:`2024-07-01`,dueDate:`2024-08-01`,glPostingDate:`2024-07-01`,amount:1,localAmount:null,exchangeRate:null,scheduledAmount:0,paidAmount:null,dueAmount:1,creditAmount:0,paymentStatus:`1`,uiPaymentStatus:`1`,description:null,poNumber:null,createdTime:`2024-07-30T23:00:32.000+0000`,updatedTime:`2024-07-30T23:00:32.000+0000`,createdBy:`00602ZGNAZQYJBKLdrql`,payFromBankAccountId:`00000000000000000000`,payFromChartOfAccountId:`00000000000000000000`,paymentTermId:`00000000000000000000`,hasAutoPay:!1,eBillCreated:!1,invoiceProductId:`00000000000000000000`,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,source:`0`,numApprPolicyEx:0,useBillDesc:!1,defaultInvoiceNumber:!1,isAutoSaved:!1,billTemplateId:`00000000000000000000`,quickbooksId:null,lastPaymentDate:null,fullPaymentDate:null,hasLinkedPurchaseOrders:!1,multipleBillLineItems:!1,item:{count:0,totalAmount:0},expense:{count:1,totalAmount:1,chartOfAccountGroup:[]},billLineItems:[{entity:`BillLineItem`,id:`bli02VSXIUDVFUQd1e4s`,billId:`00n02XNWHOPPXWV9ewx0`,amount:1,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,jobId:`00000000000000000000`,customerId:`00000000000000000000`,jobBillable:!1,description:null,createdTime:`2024-07-30T23:00:32.000+0000`,updatedTime:`2024-07-30T23:00:32.000+0000`,lineType:`1`,itemId:`00000000000000000000`,quantity:null,unitPrice:null,employeeId:`00000000000000000000`,actgClassId:`00000000000000000000`,purchaseOrderBillLinkId:`00000000000000000000`,unitOfMeasureId:`00000000000000000000`,lineOrder:0}]}},tg=eg,ng=eg,rg=eg,ig={data:[eg.data]},ag={data:{bulk:[{response_status:0,response_message:`Success`,response_data:eg.data}]}},og=ag,sg=Hh,cg=Hh,lg={data:{entity:`CustomerBankAccount`,id:`cba02ILJVKOLFVLB6gqr`,isActive:`1`,createdTime:`2024-07-31T05:10:12.000+0000`,updatedTime:`2024-07-31T05:17:36.000+0000`,customerId:`0cu02BLGFCGXROGGsnpx`,nameOnAccount:`Test`,nickname:`Test`,routingNumber:`011401533`,accountNumber:`******7890`,isLockedByOrg:!1,isSavings:!1,isPersonalAcct:!1,isWrittenAuth:!1,isPrivate:!1,phone:null,cpUserId:`00000000000000000000`,status:`1`,rndDepExpireDate:`2024-08-13`}},ug={data:[lg.data]},dg={data:[Hh.data]},fg=Hh,pg={data:{entity:`Invoice`,id:`00e02DTFJUMHHRGKh6zx`,isActive:`1`,createdBy:`00602ZGNAZQYJBKLdrql`,createdTime:`2024-07-31T16:56:53.000+0000`,updatedTime:`2024-07-31T20:27:48.000+0000`,customerId:`0cu02BLGFCGXROGGsnpx`,invoiceNumber:`001`,invoiceDate:`2024-07-22`,dueDate:`2024-09-08`,glPostingDate:`2024-07-22`,amount:2199,localAmount:null,exchangeRate:null,amountDue:2199,paymentStatus:`1`,description:null,poNumber:null,isToBePrinted:!1,isToBeEmailed:!1,lastSentTime:null,itemSalesTax:`0ii02JKMRQWBGLFLadj8`,salesTaxPercentage:6,salesTaxTotal:0,terms:`Due upon receipt`,salesRep:null,FOB:null,shipDate:null,shipMethod:null,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,jobId:`00000000000000000000`,payToBankAccountId:`00000000000000000000`,payToChartOfAccountId:`00000000000000000000`,invoiceTemplateId:`itm02EJBDDIGUVGSc8w1`,hasAutoPay:!1,source:`0`,emailDeliveryOption:`1`,mailDeliveryOption:`0`,creditAmount:0,quickbooksId:null,recInvoiceTemplateId:`00000000000000000000`,financingStatus:`0`,netBillId:`00000000000000000000`,netOrgId:`00000000000000000000`,scheduledAmount:0,stylingId:null,stylingRevision:null,financingModelStatus:null,financingErrorType:`0`,invoiceLineItems:[{entity:`InvoiceLineItem`,id:`00f02QSSEGYTPEZDeik8`,createdTime:`2024-07-31T20:27:48.000+0000`,updatedTime:`2024-07-31T20:27:48.000+0000`,invoiceId:`00e02DTFJUMHHRGKh6zx`,itemId:`0ii02CTRVHZJQMRWad60`,quantity:1,amount:12,price:12,serviceDate:null,ratePercent:null,chartOfAccountId:`00000000000000000000`,departmentId:`00000000000000000000`,locationId:`00000000000000000000`,actgClassId:`00000000000000000000`,jobId:`00000000000000000000`,description:null,taxable:!1,taxCode:`Non`,lineOrder:0}],invoiceAdjustments:[],invoiceCustomFields:[]}},mg=pg,hg=pg,gg=pg,_g={data:[pg.data]},vg={data:{bulk:[{response_status:0,response_message:`Success`,response_data:pg.data}]}},yg=vg,bg={data:{challengeId:`!b-KXe8pBDp1vFgjczlR7mHt2wYqNaLdVe0oUZ4kJ9sCfBvXgQpImD5nWtA3rYhKu`,sessionId:`!b2XqzA2v6u5T49jY5eRcVdWfXgHnKpLmQsTuBvNwZ0aDgIjOyClErFtGuHiJkMoPy`}},xg={data:{machineName:`Acme Instance`,mfaId:`!b_EJCd_jPIsZYT5bxk9QG2oXP2TvQwGjeSzWFeZt-wy9gi03A2U8Uvj_cZDhCDBde`,deviceId:`Acme-BillMFA`}},Sg={data:{entity:`VendorBankAccount`,id:`vba02JBPYKSEAMI17lre`,isActive:`1`,createdTime:`2024-07-31T23:32:48.000+0000`,updatedTime:`2024-07-31T23:32:49.000+0000`,vendorId:`00902GLBJSUATNY25m0s`,nameOnAcct:null,accountNumber:`******7890`,routingNumber:`021000021`,usersId:`00602ZGNAZQYJBKLdrql`,status:`1`,isSavings:!1,isPersonalAcct:!1,intlEPaymentAcct:!1,intlPaymentType:`0`,paymentCurrency:null,bankCountry:null,vendorBankData:null,bankAddSource:`1`,intlTemplateKey:null,regulatory1:null,regulatory2:null,regulatory3:null,regulatory4:null,regulatory5:null,regulatory6:null,regulatory7:null}},Cg=Sg,wg={data:{bulk:[{response_status:0,response_message:`Success`,response_data:Qh.data}]}},Tg=lg,Eg={payload:{body:{data:{created:[rg.data],updated:[rg.data]}}},polledNoChanges:!1};var Dg={bulkCreateBills:(0,Y.action)({display:{label:`Bulk Create Bills`,description:`Bulk create bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billsCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:ag.data}),inputs:Ph,examplePayload:ag}),bulkUpdateBills:(0,Y.action)({display:{label:`Bulk Update Bills`,description:`Bulk update bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billsUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:og.data}),inputs:Bh,examplePayload:og}),createBill:(0,Y.action)({display:{label:`Create Bill`,description:`Create a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,billLineItems:o,allowDuplicateInvNum:s,additionalFields:c})=>{let{client:l,loginData:u}=await Q(t,e.debug.enabled),d={obj:{entity:`Bill`,vendorId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,billLineItems:o,...c||{}},allowDuplicateInvNum:s},f=(0,X.stringify)({data:JSON.stringify(d),devKey:u.devKey,sessionId:u.sessionId}),{data:p}=await l.post(`/Crud/Create/Bill.json`,f);return{data:Z(p)}},examplePerform:async()=>({data:eg.data}),inputs:Nh,examplePayload:eg}),deleteBill:(0,Y.action)({display:{label:`Delete Bill`,description:`Delete a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Bill.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:ng.data}),inputs:Vh,examplePayload:ng}),getBill:(0,Y.action)({display:{label:`Get Bill`,description:`Read a bill object.`},performSafety:`safe`,perform:async(e,{connection:t,billId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Bill.json`,a);return{data:Z(o)}},inputs:Ih,examplePayload:rg}),listBills:(0,Y.action)({display:{label:`List Bills`,description:`List bill objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.bills.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:ig.data}),inputs:Lh,examplePayload:ig}),updateBill:(0,Y.action)({display:{label:`Update Bill`,description:`Update a bill object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,billId:n,vendorId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,billLineItems:s,allowDuplicateInvNum:c,additionalFields:l})=>{let{client:u,loginData:d}=await Q(t,e.debug.enabled),f={obj:{id:n,entity:`Bill`,vendorId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,billLineItems:s,...l||{}},allowDuplicateInvNum:c},p=(0,X.stringify)({data:JSON.stringify(f),devKey:d.devKey,sessionId:d.sessionId}),{data:m}=await u.post(`/Crud/Update/Bill.json`,p);return{data:Z(m)}},examplePerform:async()=>({data:tg.data}),inputs:zh,examplePayload:tg})};const Og=` See [Bill.com API documentation](https://developer.bill.com/reference/listcustomers) for more information.`,kg=` See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-listcustomerbankaccount) for more information.`,Ag={isActive:`1`,shortName:`John`,parentCustomerId:`12345`,companyName:`A company`,contactFirstName:`John`,contactLastName:`Doe`},jg={isActive:`string`,nickname:`string`,isLockedByOrg:!0,isSavings:`string`,isPersonalAcct:`string`,isWrittenAuth:!0,isPrivate:!0,phone:`string`,cpUserId:`string`},Mg={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${Og}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${Og}`}),nested:vh},Ng=(0,Y.input)({label:`Customer Name`,type:`string`,example:`John`,placeholder:`Enter customer name`,required:!0,comments:`The name of the customer.`,clean:Y.util.types.toString}),Pg={connection:$,customerName:Ng,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Ag,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createcustomer) for more information.`})},Fg={connection:$,customersCreateBulk:(0,Y.input)({label:`Customers to Create`,type:`code`,language:`json`,comments:`An array of customer objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-bulkcreatecustomer) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Customer`,isActive:`1`,name:`John`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`}}],null,2),clean:e=>Ym(e,`Customers to Create`)})},Ig={connection:$,customerId:bh},Lg={connection:$,customerId:bh,customerName:(0,Y.input)({...Ng,required:!1}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Ag,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatecustomer) for more information.`})},Rg={connection:$,customersUpdateBulk:(0,Y.input)({label:`Customers to Update`,type:`code`,language:`json`,comments:`An array of customer objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customermgmt-bulkupdatecustomer) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`0cu...`,entity:`Customer`,isActive:`1`,name:`John`,companyName:`A Company`,contactFirstName:`John`,contactLastName:`Doe`}}],null,2),clean:e=>Ym(e,`Customers to Update`)})},zg={connection:$,customerId:bh},Bg={connection:$,start:gh,max:_h,filters:(0,Y.input)({...mh,comments:`${mh.comments}${kg}`}),sort:(0,Y.input)({...hh,comments:`${hh.comments}${kg}`}),nested:vh},Vg={connection:$,customerBankAccountId:(0,Y.input)({label:`Customer Bank Account ID`,type:`string`,example:`cba...`,placeholder:`Enter customer bank account ID`,required:!0,comments:`ID of the customer bank account.`,clean:Y.util.types.toString})},Hg=(0,Y.input)({label:`Name on Account`,type:`string`,example:`Account Name`,placeholder:`Enter name on account`,required:!0,comments:`Customer bank account name.`,clean:Y.util.types.toString}),Ug=(0,Y.input)({label:`Agreed with TOS`,type:`boolean`,default:`true`,comments:`When true, indicates agreement with the BILL Payment Terms Of Service.`,clean:Y.util.types.toBool}),Wg={connection:$,customerId:bh,nameOnAccount:Hg,routingNumber:(0,Y.input)({...Ch,comments:`The customer bank routing number.`}),accountNumber:(0,Y.input)({...Sh,comments:`The customer bank account number.`}),agreedWithTOS:Ug,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(jg,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createcustomerbankaccount) for more information.`})},Gg=(0,Y.action)({display:{label:`Bulk Create Customers`,description:`Bulk create customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customersCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Uh.data}),inputs:Fg,examplePayload:Uh}),Kg=(0,Y.action)({display:{label:`Bulk Update Customers`,description:`Bulk update customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customersUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Wh.data}),inputs:Rg,examplePayload:Wh}),qg=(0,Y.action)({display:{label:`Create Customer`,description:`Create a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerName:n,additionalFields:r})=>{let{client:i,loginData:a}=await Q(t,e.debug.enabled),o={obj:{entity:`Customer`,name:n,...r||{}}},s=(0,X.stringify)({data:JSON.stringify(o),devKey:a.devKey,sessionId:a.sessionId}),{data:c}=await i.post(`/Crud/Create/Customer.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:sg.data}),inputs:Pg,examplePayload:sg}),Jg=(0,Y.action)({display:{label:`Create Customer Bank Account`,description:`Create a customer bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n,nameOnAccount:r,routingNumber:i,accountNumber:a,additionalFields:o,agreedWithTOS:s})=>{let{client:c,loginData:l}=await Q(t,e.debug.enabled),u={obj:{entity:`CustomerBankAccount`,customerId:n,nameOnAccount:r,routingNumber:i,accountNumber:a,...o||{}},agreedWithTOS:s},d=(0,X.stringify)({data:JSON.stringify(u),devKey:l.devKey,sessionId:l.sessionId}),{data:f}=await c.post(`/Crud/Create/CustomerBankAccount.json`,d);return{data:Z(f)}},examplePerform:async()=>({data:Tg.data}),inputs:Wg,examplePayload:Tg});var Yg={bulkCreateCustomers:Gg,bulkUpdateCustomers:Kg,createCustomer:qg,deleteCustomer:(0,Y.action)({display:{label:`Delete Customer`,description:`Delete a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Customer.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:cg.data}),inputs:zg,examplePayload:cg}),getCustomer:(0,Y.action)({display:{label:`Get Customer`,description:`Read a customer object.`},performSafety:`safe`,perform:async(e,{connection:t,customerId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Customer.json`,a);return{data:Z(o)}},inputs:Ig,examplePayload:Hh}),getCustomerBankAccount:(0,Y.action)({display:{label:`Get Customer Bank Account`,description:`Read a customer bank account object.`},performSafety:`safe`,perform:async(e,{connection:t,customerBankAccountId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/CustomerBankAccount.json`,a);return{data:Z(o)}},inputs:Vg,examplePayload:lg}),createCustomerBankAccount:Jg,listCustomer:(0,Y.action)({display:{label:`List Customers`,description:`List customer objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.customers.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:dg.data}),inputs:Mg,examplePayload:dg}),listCustomerBankAccount:(0,Y.action)({display:{label:`List Customer Bank Account`,description:`List customer bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Km.customerBankAccount,l);return{data:Z(u)}},examplePerform:async()=>({data:ug.data}),inputs:Bg,examplePayload:ug}),updateCustomer:(0,Y.action)({display:{label:`Update Customer`,description:`Update a customer object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerName:n,customerId:r,additionalFields:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s={obj:{entity:`Customer`,name:n,...i||{},id:r}},c=(0,X.stringify)({data:JSON.stringify(s),devKey:o.devKey,sessionId:o.sessionId}),{data:l}=await a.post(`/Crud/Update/Customer.json`,c);return{data:Z(l)}},examplePerform:async()=>({data:fg.data}),inputs:Lg,examplePayload:fg})};const Xg=` See [Bill.com API documentation](https://developer.bill.com/reference/listinvoices) for more information.`,Zg={isActive:`1`,glPostingDate:`2024-04-10`,description:`Description`,isToBePrinted:!0},Qg=(0,Y.input)({label:`Invoice Number`,type:`string`,example:`00e02DTF...`,placeholder:`Enter invoice number`,required:!0,comments:`User-generated invoice number. This value can be a chosen number scheme or the invoice due date.`,clean:Y.util.types.toString}),$g=(0,Y.input)({label:`Invoice Date`,type:`string`,example:`2024-04-10`,placeholder:`Enter invoice date`,required:!0,comments:`Date when the invoice is issued to the customer. This value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),e_=(0,Y.input)({label:`Due Date`,type:`string`,example:`2024-04-10`,placeholder:`Enter due date`,required:!0,comments:`Date when the invoice is due. The value is in the YYYY-MM-DD format.`,clean:Y.util.types.toString}),t_=(0,Y.input)({label:`Invoice Line Items`,type:`code`,language:`json`,comments:`An array of invoice line items.`,required:!0,example:JSON.stringify([{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}],null,2),clean:e=>Ym(e,`Invoice Line Items`)}),n_={connection:$,customerId:bh,invoiceNumber:Qg,invoiceDate:$g,dueDate:e_,invoiceLineItems:t_,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(Zg,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createinvoice) for more information.`})},r_={connection:$,invoiceCreateBulk:(0,Y.input)({label:`Invoices to Create`,type:`code`,language:`json`,comments:`An array of invoice objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customertransactions-bulkcreateinvoice) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Invoice`,isActive:`1`,customerId:`0cu...`,invoiceNumber:`10`,invoiceDate:`2024-04-10`,dueDate:`2024-04-20`,isToBePrinted:!0,invoiceLineItems:[{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}]}}],null,2),clean:e=>Ym(e,`Invoices to Create`)})},i_=(0,Y.input)({label:`Invoice ID`,type:`string`,example:`00e...`,placeholder:`Enter invoice ID`,required:!0,comments:`The ID of the invoice.`,clean:Y.util.types.toString}),a_={connection:$,invoiceId:i_},o_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${Xg}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${Xg}`}),nested:vh},s_={connection:$,invoiceId:i_,customerId:bh,invoiceNumber:Qg,invoiceDate:$g,dueDate:e_,invoiceLineItems:t_,additionalFields:yh},c_={connection:$,invoiceUpdateBulk:(0,Y.input)({label:`Invoices to Update`,type:`code`,language:`json`,comments:`An array of invoice objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ar-customertransactions-bulkupdateinvoice) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Invoice`,id:`00e`,isActive:`1`,customerId:`0cu...`,invoiceNumber:`10`,invoiceDate:`2024-04-10`,dueDate:`2024-04-20`,isToBePrinted:!0,invoiceLineItems:[{entity:`InvoiceLineItem`,quantity:1,itemId:`0ii...`,price:100}]}}],null,2),clean:e=>Ym(e,`Invoices to Update`)})},l_={connection:$,invoiceId:i_};var u_={bulkCreateInvoices:(0,Y.action)({display:{label:`Bulk Create Invoices`,description:`Bulk create invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:vg.data}),inputs:r_,examplePayload:vg}),bulkUpdateInvoices:(0,Y.action)({display:{label:`Bulk Update Invoices`,description:`Bulk update invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:yg.data}),inputs:c_,examplePayload:yg}),createInvoice:(0,Y.action)({display:{label:`Create Invoice`,description:`Create an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,customerId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,invoiceLineItems:o,additionalFields:s})=>{let{client:c,loginData:l}=await Q(t,e.debug.enabled),u={obj:{entity:`Invoice`,customerId:n,invoiceNumber:r,invoiceDate:i,dueDate:a,invoiceLineItems:o,...s||{}}},d=(0,X.stringify)({data:JSON.stringify(u),devKey:l.devKey,sessionId:l.sessionId}),{data:f}=await c.post(`/Crud/Create/Invoice.json`,d);return{data:Z(f)}},examplePerform:async()=>({data:hg.data}),inputs:n_,examplePayload:hg}),deleteInvoice:(0,Y.action)({display:{label:`Delete Invoice`,description:`Delete an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Invoice.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:gg.data}),inputs:l_,examplePayload:gg}),getInvoice:(0,Y.action)({display:{label:`Get Invoice`,description:`Read an invoice object.`},performSafety:`safe`,perform:async(e,{connection:t,invoiceId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Invoice.json`,a);return{data:Z(o)}},inputs:a_,examplePayload:pg}),listInvoice:(0,Y.action)({display:{label:`List Invoices`,description:`List invoice objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.invoices.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:_g.data}),inputs:o_,examplePayload:_g}),updateInvoice:(0,Y.action)({display:{label:`Update Invoice`,description:`Update an invoice object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,invoiceId:n,customerId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,invoiceLineItems:s,additionalFields:c})=>{let{client:l,loginData:u}=await Q(t,e.debug.enabled),d={obj:{entity:`Invoice`,id:n,customerId:r,invoiceNumber:i,invoiceDate:a,dueDate:o,invoiceLineItems:s,...c||{}}},f=(0,X.stringify)({data:JSON.stringify(d),devKey:u.devKey,sessionId:u.sessionId}),{data:p}=await l.post(`/Crud/Update/Invoice.json`,f);return{data:Z(p)}},examplePerform:async()=>({data:mg.data}),inputs:s_,examplePayload:mg})};const d_={connection:$},{debugRequest:f_,...p_}=fh.inputs,m_={connection:$,...p_,url:{...fh.inputs.url,comments:`Input the path only (/Login.json), The base URL is already included (https://api.bill.com/api/v2). For example, to connect to https://api.bill.com/api/v2/Login.json, only /Login.json is entered in this field.`,example:`/Login.json`}},h_={connection:$,challengeId:(0,Y.input)({label:`Challenge ID`,type:`string`,required:!0,example:`!b-KXe8pBDp1vFgjczlN7hRq2wYmT9sVdD4pLxZ8kGfBc3JeWa`,placeholder:`Enter challenge ID`,comments:`The challenge ID received from the 'Generate an MFA challenge ID' action.`,clean:Y.util.types.toString}),token:(0,Y.input)({label:`Code Token`,type:`string`,example:`987123`,placeholder:`Enter MFA code token`,required:!0,comments:`The MFA code token received at the user's device.`,clean:Y.util.types.toString}),sessionId:(0,Y.input)({label:`Session ID`,type:`string`,required:!0,placeholder:`Enter session ID`,comments:`The session ID received from the 'Generate an MFA challenge ID' action.`,clean:Y.util.types.toString})},g_=(0,Y.action)({display:{label:`Generate MFA Challenge ID`,description:`Create a trusted MFA session. Secondary (backup) phone MFA is no longer supported.`},performSafety:`notAllowed`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,e.debug.enabled),i=r.sessionId,a=(0,X.stringify)({data:JSON.stringify({}),devKey:r.devKey,sessionId:i}),{data:o}=await n.post(`/MFAChallenge.json`,a);return{data:{...Z(o),sessionId:i}}},examplePerform:async()=>({data:bg.data}),inputs:d_,examplePayload:bg}),__=(0,Y.action)({display:{label:`Authenticate MFA Session`,description:`Authenticate an MFA session. Sessions last only 30 days.`},performSafety:`notAllowed`,perform:async(e,{connection:t,challengeId:n,token:r,sessionId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s=`Device-${e.integration.name.replace(/\s/g,``)}`,c=(0,X.stringify)({data:JSON.stringify({rememberMe:!0,challengeId:n,machineName:`Instance`,token:r,deviceId:s}),devKey:o.devKey,sessionId:i}),{data:l}=await a.post(`/MFAAuthenticate.json`,c);return{data:{...Z(l),deviceId:s}}},examplePerform:async()=>({data:xg.data}),inputs:h_,examplePayload:xg});var v_={rawRequest:(0,Y.action)({display:{label:`Raw Request`,description:`Send raw HTTP request to Bill.`},inputs:m_,performSafety:`notAllowed`,perform:async(e,{connection:t,...n})=>{Xm(t);let{data:r}=await(0,fh.sendRawRequest)($m(t),{...n,debugRequest:e.debug.enabled});return{data:Z(r)}}}),generateMfaChallengeId:g_,mfaAuthenticate:__};const y_=` See [Bill.com API documentation](https://developer.bill.com/reference/listvendors) for more information.`,b_=` See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-listvendorbankaccount) for more information.`,x_={isActive:`string`,shortName:`string`,nameOnCheck:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`},S_={isActive:`string`,nameOnAcct:`string`,usersId:`string`,isSavings:!0,isPersonalAcct:!0,intlPaymentType:`string`,paymentCurrency:`string`,vendorBankData:`string`,bankAddSource:`string`,intlTemplateKey:`string`,regulatory1:`string`,regulatory2:`string`,regulatory3:`string`,regulatory4:`string`,regulatory5:`string`,regulatory6:`string`,regulatory7:`string`},C_=(0,Y.input)({label:`Vendor Name`,type:`string`,example:`Example Vendor`,placeholder:`Enter vendor name`,required:!0,comments:`Unique vendor name.`,clean:Y.util.types.toString}),w_={connection:$,name:C_,companyName:(0,Y.input)({label:`Company Name`,type:`string`,example:`Example Company`,placeholder:`Enter company name`,required:!0,comments:`Vendor organization full name.`,clean:Y.util.types.toString}),email:(0,Y.input)({label:`Email`,type:`string`,example:`example@email.com`,placeholder:`Enter email address`,required:!0,comments:`Vendor email address.`,clean:Y.util.types.toString}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(x_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createvendor) for more information.`})},T_={connection:$,vendorCreateBulk:(0,Y.input)({label:`Vendors to Create`,type:`code`,language:`json`,comments:`An array of vendor objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkcreatevendor) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`Vendor`,isActive:`string`,name:`string`,shortName:`string`,nameOnCheck:`string`,companyName:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,email:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`}}],null,2),clean:e=>Ym(e,`Vendors to Create`)})},E_={connection:$,vendorId:xh},D_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${y_}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${y_}`}),nested:vh},O_={connection:$,vendorId:xh,name:C_,additionalFields:(0,Y.input)({...yh,example:JSON.stringify(x_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/updatevendor) for more information.`})},k_={connection:$,vendorUpdateBulk:(0,Y.input)({label:`Vendors to Update`,type:`code`,language:`json`,comments:`An array of vendor objects to update. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkupdatevendor) for more information.`,required:!0,example:JSON.stringify([{obj:{id:`009...`,entity:`Vendor`,isActive:`string`,name:`string`,shortName:`string`,nameOnCheck:`string`,companyName:`string`,accNumber:`string`,taxId:`string`,taxIdType:`string`,track1099:!0,address1:`string`,address2:`string`,address3:`string`,address4:`string`,addressCity:`string`,addressState:`string`,addressZip:`string`,addressCountry:`string`,email:`string`,fax:`string`,phone:`string`,paymentEmail:`string`,paymentPhone:`string`,description:`string`,contactFirstName:`string`,contactLastName:`string`,accountType:`string`,paymentTermId:`string`,sendNotifications:!0,externalBillPayIn12m:0,since:0,payDaysBefore:0,enabledCombinePayments:!0,billCurrency:`string`,billSyncPref:`string`,prefPmtMethod:`string`,paymentPurpose:`string`,bankCountry:`string`,sendInviteForPrivateVendor:!0,vendorVCardRemitEmail:`string`,vendorVCardStatus:`string`,orgVCardStatus:`string`,prefRemitEmail:`string`,remitEmail:`string`,processorVCardStatus:`string`,vStatusUpdateSource:`string`,orgVCardOptOutCustReason:`string`,enableFundedInvite:!0,lastPaymentDate:`string`,numberOfInvitesSent:0,eligibleForEbills:!0,acknowledgedEbillBanner:!0,acknowledgedEbillError:!0,eBillEnablementFailed:!0,PaymentusMerchantId:`string`,unmodifiedBillsCount:`string`,setupAutoPayPrompt:!0,autoSave:`string`,creationSource:`string`,PaymentusPmtType:`string`,PaymentusAcctToken:`string`,PaymentusAcctToken2:`string`,PaymentusAcctToken3:`string`,stpProcessor:`string`,eBillEnabledStatus:`string`}}],null,2),clean:e=>Ym(e,`Vendors to Update`)})},A_={connection:$,vendorId:xh},j_={connection:$,mfaId:wh,deviceId:Th,vendorId:xh,accountNumber:(0,Y.input)({...Sh,comments:`The vendor bank account number.`}),routingNumber:(0,Y.input)({...Ch,comments:`The vendor bank routing number.`}),additionalFields:(0,Y.input)({...yh,example:JSON.stringify(S_,null,2),comments:`${yh.comments} See the [Bill.com API documentation](https://developer.bill.com/reference/createvendorbankaccount) for more information.`})},M_={connection:$,mfaId:wh,deviceId:Th,vendorBankAccountCreateBulk:(0,Y.input)({label:`Vendor Bank Accounts to Create`,type:`code`,language:`json`,comments:`An array of vendor bank account objects to create. See [Bill.com API documentation](https://developer.bill.com/v2/reference/ap-vendormgmt-bulkcreatevendorbankaccount) for more information.`,required:!0,example:JSON.stringify([{obj:{entity:`VendorBankAccount`,isActive:`string`,vendorId:`string`,nameOnAcct:`string`,accountNumber:`string`,routingNumber:`string`,usersId:`string`,isSavings:!0,isPersonalAcct:!0,intlPaymentType:`string`,paymentCurrency:`string`,vendorBankData:`string`,bankAddSource:`string`,intlTemplateKey:`string`,regulatory1:`string`,regulatory2:`string`,regulatory3:`string`,regulatory4:`string`,regulatory5:`string`,regulatory6:`string`,regulatory7:`string`}}],null,2),clean:e=>Ym(e,`Vendor Bank Accounts to Create`)})},N_=(0,Y.input)({label:`Vendor Bank Account ID`,type:`string`,example:`vba...`,placeholder:`Enter vendor bank account ID`,required:!0,comments:`ID of the vendor bank account.`,clean:Y.util.types.toString}),P_={connection:$,vendorBankAccountId:N_},F_={connection:$,start:gh,max:_h,sort:(0,Y.input)({...hh,comments:`${hh.comments}${b_}`}),filters:(0,Y.input)({...mh,comments:`${mh.comments}${b_}`}),nested:vh},I_={connection:$,mfaId:wh,deviceId:Th,vendorBankAccountId:N_};var L_={bulkCreateVendor:(0,Y.action)({display:{label:`Bulk Create Vendor`,description:`Bulk create vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorCreateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Create/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Xh.data}),inputs:T_,examplePayload:Xh}),bulkCreateVendorBankAccounts:(0,Y.action)({display:{label:`Bulk Create Vendor Bank Accounts`,description:`Bulk create vendor bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorBankAccountCreateBulk:n,mfaId:r,deviceId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled,{mfaId:r,deviceId:i}),s=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:o.devKey,sessionId:o.sessionId}),{data:c}=await a.post(`/Bulk/Crud/Create/VendorBankAccount.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:wg.data}),inputs:M_,examplePayload:wg}),bulkUpdateVendors:(0,Y.action)({display:{label:`Bulk Update Vendors`,description:`Bulk update vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorUpdateBulk:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({bulk:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Bulk/Crud/Update/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Zh.data}),inputs:k_,examplePayload:Zh}),createVendor:(0,Y.action)({display:{label:`Create Vendor`,description:`Create a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,name:n,companyName:r,email:i,additionalFields:a})=>{let{client:o,loginData:s}=await Q(t,e.debug.enabled),c={obj:{entity:`Vendor`,name:n,companyName:r,email:i,...a||{}}},l=(0,X.stringify)({data:JSON.stringify(c),devKey:s.devKey,sessionId:s.sessionId}),{data:u}=await o.post(`/Crud/Create/Vendor.json`,l);return{data:Z(u)}},examplePerform:async()=>({data:Gh.data}),inputs:w_,examplePayload:Gh}),createVendorBankAccount:(0,Y.action)({display:{label:`Create Vendor Bank Account`,description:`Create a vendor bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,accountNumber:r,routingNumber:i,mfaId:a,deviceId:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled,{mfaId:a,deviceId:o}),l=(0,X.stringify)({data:JSON.stringify({obj:{entity:`VendorBankAccount`,vendorId:n,accountNumber:r,routingNumber:i}}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(`/Crud/Create/VendorBankAccount.json`,l);return{data:Z(u)}},examplePerform:async()=>({data:Sg.data}),inputs:j_,examplePayload:Sg}),deleteVendor:(0,Y.action)({display:{label:`Delete Vendor`,description:`Delete a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Delete/Vendor.json`,a);return{data:Z(o)}},examplePerform:async()=>({data:Jh.data}),inputs:A_,examplePayload:Jh}),deleteVendorBankAccount:(0,Y.action)({display:{label:`Delete Vendor Bank Account`,description:`Delete a vendor bank account object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorBankAccountId:n,mfaId:r,deviceId:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled,{mfaId:r,deviceId:i}),s=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:o.devKey,sessionId:o.sessionId}),{data:c}=await a.post(`/Crud/Delete/VendorBankAccount.json`,s);return{data:Z(c)}},examplePerform:async()=>({data:Cg.data}),inputs:I_,examplePayload:Cg}),getVendor:(0,Y.action)({display:{label:`Get Vendor`,description:`Read a vendor object.`},performSafety:`safe`,perform:async(e,{connection:t,vendorId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/Vendor.json`,a);return{data:Z(o)}},inputs:E_,examplePayload:qh}),getVendorBankAccount:(0,Y.action)({display:{label:`Get Vendor Bank Account`,description:`Read a vendor bank account object.`},performSafety:`safe`,perform:async(e,{connection:t,vendorBankAccountId:n})=>{let{client:r,loginData:i}=await Q(t,e.debug.enabled),a=(0,X.stringify)({data:JSON.stringify({id:n}),devKey:i.devKey,sessionId:i.sessionId}),{data:o}=await r.post(`/Crud/Read/VendorBankAccount.json`,a);return{data:Z(o)}},inputs:P_,examplePayload:Qh}),listVendorBankAccounts:(0,Y.action)({display:{label:`List Vendor Bank Accounts`,description:`List vendor bank account objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Km.vendorBankAccount,l);return{data:Z(u)}},examplePerform:async()=>({data:$h.data}),inputs:F_,examplePayload:$h}),listVendors:(0,Y.action)({display:{label:`List Vendors`,description:`List vendor objects.`},performSafety:`notAllowed`,perform:async(e,{connection:t,filters:n,sort:r,start:i,max:a,nested:o})=>{let{client:s,loginData:c}=await Q(t,e.debug.enabled),l=(0,X.stringify)({data:JSON.stringify({start:i,max:a,filters:n,sort:r,nested:o}),devKey:c.devKey,sessionId:c.sessionId}),{data:u}=await s.post(Gm.vendors.endpoint,l);return{data:Z(u)}},examplePerform:async()=>({data:Yh.data}),inputs:D_,examplePayload:Yh}),updateVendor:(0,Y.action)({display:{label:`Update Vendor`,description:`Update a vendor object.`},performSafety:`notAllowed`,perform:async(e,{connection:t,vendorId:n,name:r,additionalFields:i})=>{let{client:a,loginData:o}=await Q(t,e.debug.enabled),s={obj:{id:n,entity:`Vendor`,name:r,...i||{}}},c=(0,X.stringify)({data:JSON.stringify(s),devKey:o.devKey,sessionId:o.sessionId}),{data:l}=await a.post(`/Crud/Update/Vendor.json`,c);return{data:Z(l)}},examplePerform:async()=>({data:Kh.data}),inputs:O_,examplePayload:Kh})},R_={...Yg,...u_,...L_,...Dg,...v_};const z_={connection:$,pollResourceType:(0,Y.input)({label:`Resource Type`,type:`string`,required:!0,model:th,comments:`The type of resource to poll for changes.`,clean:Y.util.types.toString}),showNewRecords:(0,Y.input)({label:`Show New Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, newly created records will be included in the trigger output.`,clean:Y.util.types.toBool}),showUpdatedRecords:(0,Y.input)({label:`Show Updated Records`,type:`boolean`,required:!1,default:`true`,comments:`When true, records that were updated after the last poll will be included in the trigger output.`,clean:Y.util.types.toBool})};var B_={pollChangesTrigger:(0,Y.pollingTrigger)({display:{label:`New and Updated Records`,description:`Checks for new and updated records in a selected Bill.com resource type on a configured schedule.`},inputs:z_,examplePayload:Eg,async perform(e,t,n){let r=Gm[n.pollResourceType];if(!r)throw Error(`Unsupported resource type: ${n.pollResourceType}`);let i=new Date().toISOString(),a=e.polling.getState()?.lastPolledAt??i;if(!n.showNewRecords&&!n.showUpdatedRecords)return e.polling.setState({lastPolledAt:i}),{payload:{...t,body:{data:{created:[],updated:[]}}},polledNoChanges:!0};let{client:o,loginData:s}=await Q(n.connection,e.debug.enabled),c=await nh(o,s,r.endpoint,[{field:`updatedTime`,op:`>`,value:a}]),{created:l,updated:u}=eh(c,a,`createdTime`,`updatedTime`,n.showNewRecords,n.showUpdatedRecords),d=l.length+u.length;return e.logger.debug(`Polled ${c.length} ${n.pollResourceType} records, ${l.length} created and ${u.length} updated since last poll.`),e.polling.setState({lastPolledAt:i}),{payload:{...t,body:{data:{created:l,updated:u}}},polledNoChanges:d===0}}})};const V_={connection:$},H_={connection:$},U_={connection:$},W_={connection:$},G_={connection:$},K_={connection:$};var q_={selectBill:(0,Y.dataSource)({display:{label:`Select Bill`,description:`Select a bill from the list of available bills.`},inputs:V_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.bills.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.invoiceNumber}))}}}),selectCustomer:(0,Y.dataSource)({display:{label:`Select Customer`,description:`Select a customer from the list of available customers.`},inputs:H_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.customers.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.name}))}}}),selectCustomerBankAccount:(0,Y.dataSource)({display:{label:`Select Customer Bank Account`,description:`Select a customer bank account from the list of available customer bank accounts.`},inputs:G_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Km.customerBankAccount,i);return{result:Z(a).map(e=>({key:e.id,label:e.nameOnAccount}))}}}),selectInvoice:(0,Y.dataSource)({display:{label:`Select Invoice`,description:`Select an invoice from the list of available invoices.`},inputs:W_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.invoices.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.invoiceNumber}))}}}),selectVendor:(0,Y.dataSource)({display:{label:`Select Vendor`,description:`Select a vendor from the list of available vendors.`},inputs:U_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Gm.vendors.endpoint,i);return{result:Z(a).map(e=>({key:e.id,label:e.name}))}}}),selectVendorBankAccount:(0,Y.dataSource)({display:{label:`Select Vendor Bank Account`,description:`Select a vendor bank account from the list of available vendor bank accounts.`},inputs:K_,dataSourceType:`picklist`,perform:async(e,{connection:t})=>{let{client:n,loginData:r}=await Q(t,!1),i=(0,X.stringify)({data:JSON.stringify({start:0,max:999}),devKey:r.devKey,sessionId:r.sessionId}),{data:a}=await n.post(Km.vendorBankAccount,i);return{result:Z(a).map(e=>({key:e.id,label:e.nameOnAcct}))}}})},J_=(0,Y.component)({key:`bill`,public:!0,documentationUrl:`https://prismatic.io/docs/components/bill/`,display:{label:`Bill`,description:`Manage bills, invoices, customers, vendors, and bank accounts in Bill, and detect new and updated records.`,iconPath:`icon.png`,category:`Application Connectors`},hooks:{error:fh.handleErrors},actions:R_,triggers:B_,dataSources:q_,connections:Nm});exports.default=J_;
|
package/npm-dist/index.cjs
CHANGED
|
@@ -3050,7 +3050,7 @@ var src_default = (0, _prismatic_io_spectral.component)({
|
|
|
3050
3050
|
documentationUrl: "https://prismatic.io/docs/components/bill/",
|
|
3051
3051
|
display: {
|
|
3052
3052
|
label: "Bill",
|
|
3053
|
-
description: "
|
|
3053
|
+
description: "Manage bills, invoices, customers, vendors, and bank accounts in Bill, and detect new and updated records.",
|
|
3054
3054
|
iconPath: "icon.png",
|
|
3055
3055
|
category: "Application Connectors"
|
|
3056
3056
|
},
|