diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c3a7e30d..84ceec68a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,95 @@
+# CHANGE LOG (1.6.0) - 2.1.0
+
+## Application Client
+
+
+
+### Logistic
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] query
parameter phoneCode
(type: string
)
+
+
+
+## Partner Client
+
+
+
+### FileStorage
+
+
+
+#### signUrls
+
+- ##### What's New
+ - [Added] method signUrls
+
+
+
+### Webhook
+
+
+
+#### fetchSubscribers
+
+- ##### What's New
+ - [Breaking] [Added] Type object
to property items[].association
of schema Association
in response with status code 200
+ - [Breaking] [Added] Type object
to property items[].auth_meta
of schema AuthMeta
in response with status code 200
+
+
+## Platform Client
+
+
+
+### AuditTrail
+
+
+
+#### createAuditLog
+
+- ##### What's New
+ - [Breaking] [Added] Type object
to property
of schema CreateLogResp
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Required status to Request body content
+
+
+### Content
+
+
+
+#### createPagePreview
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createPagePreview
+
+
+
+### Payment
+
+
+
+#### validateCustomerAndCreditSummary
+
+- ##### What's New
+ - [Added] method validateCustomerAndCreditSummary
+
+
+
+### User
+
+
+
+#### createUser
+
+- ##### What's Changed
+ - [Changed] username
made optional in request body
+
+
# CHANGE LOG (1.5.2) - 2.0.0
## Application Client
diff --git a/README.md b/README.md
index fb248a9c8..f2a952db8 100644
--- a/README.md
+++ b/README.md
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
The above code will log the curl command in the console
```bash
-curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.5.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
+curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.6.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
Active Theme: Emerge
```
diff --git a/dist/application.js b/dist/application.js
index 6f5131347..6683100fe 100644
--- a/dist/application.js
+++ b/dist/application.js
@@ -1 +1 @@
-(()=>{var e={675:(e,t,s)=>{const{ApplicationConfig:r,ApplicationClient:a}=s(775);e.exports={ApplicationConfig:r,ApplicationClient:a}},331:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var e={249:function(e,t,s){var r;e.exports=(r=r||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==s.g&&s.g.crypto&&(t=s.g.crypto),!t)try{t=s(480)}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var s;return e.prototype=t,s=new e,e.prototype=null,s}}(),n={},o=n.lib={},i=o.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,s=e.words,r=this.sigBytes,a=e.sigBytes;if(this.clamp(),r%4)for(var n=0;n>>2]>>>24-n%4*8&255;t[r+n>>>2]|=o<<24-(r+n)%4*8}else for(var i=0;i>>2]=s[i>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,s=this.sigBytes;t[s>>>2]&=4294967295<<32-s%4*8,t.length=e.ceil(s/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],s=0;s>>2]>>>24-a%4*8&255;r.push((n>>>4).toString(16)),r.push((15&n).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,s=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(s,t/2)}},l=u.Latin1={stringify:function(e){for(var t=e.words,s=e.sigBytes,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(n))}return r.join("")},parse:function(e){for(var t=e.length,s=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(s,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},g=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var s,r=this._data,a=r.words,n=r.sigBytes,o=this.blockSize,i=n/(4*o),u=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*o,d=e.min(4*u,n);if(u){for(var l=0;lr&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),i=a.words,c=o.words,u=0;u>>7)^(h<<14|h>>>18)^h>>>3,m=u[g-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[g]=f+u[g-7]+y+u[g-16]}var H=r&a^r&n^a&n,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&d^~i&l)+c[g]+u[g];p=l,l=d,d=i,i=o+_|0,o=n,n=a,a=r,r=_+(v+H)|0}s[0]=s[0]+r|0,s[1]=s[1]+a|0,s[2]=s[2]+n|0,s[3]=s[3]+o|0,s[4]=s[4]+i|0,s[5]=s[5]+d|0,s[6]=s[6]+l|0,s[7]=s[7]+p|0},_doFinalize:function(){var t=this._data,s=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;return s[a>>>5]|=128<<24-a%32,s[14+(a+64>>>9<<4)]=e.floor(r/4294967296),s[15+(a+64>>>9<<4)]=r,t.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=n._createHelper(d),t.HmacSHA256=n._createHmacHelper(d)}(Math),r.SHA256)},335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,a,n){r=r||"&",a=a||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var c=1e3;n&&"number"==typeof n.maxKeys&&(c=n.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var d=0;d=0?(l=f.substr(0,m),p=f.substr(m+1)):(l=f,p=""),g=decodeURIComponent(l),h=decodeURIComponent(p),t(o,g)?s(o[g])?o[g].push(h):o[g]=[o[g],h]:o[g]=h}return o};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,o,i){return n=n||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),(function(a){var i=encodeURIComponent(t(a))+o;return s(e[a])?r(e[a],(function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[a]))})).join(n):i?encodeURIComponent(t(i))+o+encodeURIComponent(t(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var s=[],r=0;r{"use strict";t.decode=t.parse=s(335),t.encode=t.stringify=s(795)},832:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(s(735)),n=s(601),o=s(593),i=function(){function e(e,t){if(!t)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=t,this.request=e;var s=this.request.headers=this.request.headers||{};!this.request.method&&this.request.body&&(this.request.method="POST"),s.Host||s.host||(s.Host=this.request.host,this.request.port&&(s.Host+=":"+this.request.port)),this.request.host||(this.request.host=s.Host||s.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,s=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(t.doNotModifyHeaders||(s["x-fp-date"]?this.datetime=s["x-fp-date"]||s["x-fp-date"]:s["x-fp-date"]=this.getDateTime()),delete s["x-fp-signature"],delete s["X-Fp-Signature"])},e.prototype.sign=function(){return this.request.signQuery=!1,this.parsedPath||this.prepareRequest(),this.request.headers["x-fp-signature"]=this.signature(),{"x-fp-signature":this.request.headers["x-fp-signature"],"x-fp-date":this.request.headers["x-fp-date"]}},e.prototype.signQuery=function(){return this.request.signQuery=!0,this.parsedPath||this.prepareRequest(),this.parsedPath.query["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),{"x-fp-signature":this.parsedPath.query["x-fp-signature"],"x-fp-date":this.parsedPath.query["x-fp-date"]}},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,o.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,o.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,s=(this.request.headers,""),r=this.request.doNotEncodePath,a=(0,o.hash)(this.request.body||"","hex");if(t){var n=Object.keys(t).reduce((function(e,s){return s?(e[(0,o.encodeRfc3986Full)(s)]=(Array.isArray(t[s]),t[s]),e):e}),{}),i=[];Object.keys(n).sort().forEach((function(e){Array.isArray(n[e])?n[e].map(o.encodeRfc3986Full).sort().forEach((function(t){i.push(e+"="+t)})):i.push(e+"="+(0,o.encodeRfc3986Full)(n[e]))})),s=i.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,t){return".."===t?e.pop():"."!==t&&(r&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push((0,o.encodeRfc3986Full)(t))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,s,this.canonicalHeaders()+"\n",this.signedHeaders(),a].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==n.HEADERS_TO_IGNORE[e.toLowerCase()]){var t=!1;for(var s in n.HEADERS_TO_INCLUDE)t=t||new RegExp(n.HEADERS_TO_INCLUDE[s],"ig").test(e);return t}return!1})).sort((function(e,t){return e.toLowerCase()=0&&(delete(s=a.default.parse(e.slice(t+1)))["x-fp-signature"],delete s["X-Fp-Signature"],e=e.slice(0,t)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:s}},e.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+(0,o.encodeRfc3986)(a.default.stringify(t))):e},e}();t.default=i},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADERS_TO_INCLUDE=t.HEADERS_TO_IGNORE=void 0,t.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},t.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,t,s){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,s=1,r=arguments.length;s{}},t={};function s(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,s),n.exports}return s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s(607)})(),e.exports=t()},729:e=>{"use strict";const t=/[\p{Lu}]/u,s=/[\p{Ll}]/u,r=/^[\p{Lu}](?![\p{Lu}])/gu,a=/([\p{Alpha}\p{N}_]|$)/u,n=/[_.\- ]+/,o=new RegExp("^"+n.source),i=new RegExp(n.source+a.source,"gu"),c=new RegExp("\\d+"+a.source,"gu"),u=(e,a)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(a={pascalCase:!1,preserveConsecutiveUppercase:!1,...a},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const n=!1===a.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(a.locale),u=!1===a.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(a.locale);return 1===e.length?a.pascalCase?u(e):n(e):(e!==n(e)&&(e=((e,r,a)=>{let n=!1,o=!1,i=!1;for(let c=0;c(r.lastIndex=0,e.replace(r,(e=>t(e)))))(e,n):n(e),a.pascalCase&&(e=u(e.charAt(0))+e.slice(1)),((e,t)=>(i.lastIndex=0,c.lastIndex=0,e.replace(i,((e,s)=>t(s))).replace(c,(e=>t(e)))))(e,u))};e.exports=u,e.exports.default=u},454:e=>{"use strict";var t="%[a-f0-9]{2}",s=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function a(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var s=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(s),a(r))}function n(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(s)||[],r=1;r{"use strict";e.exports=function(e,t){for(var s={},r=Object.keys(e),a=Array.isArray(t),n=0;n=0&&t<=l.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=s||d,l.getLevel=function(){return null!=u?u:null!=i?i:o},l.setLevel=function(e,s){return u=h(e),!1!==s&&function(e){var s=(r[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=s)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+s+";"}catch(e){}}}(u),c.call(l)},l.setDefaultLevel=function(e){i=h(e),g()||l.setLevel(e,!1)},l.resetLevel=function(){u=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(l)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)},l.rebuild=function(){if(n!==l&&(o=h(n.getLevel())),c.call(l),n===l)for(var e in a)a[e].rebuild()},o=h(n?n.getLevel():"WARN");var f=g();null!=f&&(u=h(f)),c.call(l)}(n=new l).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=a[e];return t||(t=a[e]=new l(e,n.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return n.noConflict=function(){return typeof window!==t&&window.log===n&&(window.log=p),n},n.getLoggers=function(){return a},n.default=n,n},void 0===(a=r.call(t,s,t,e))||(e.exports=a)}()},663:(e,t,s)=>{"use strict";const r=s(280),a=s(454),n=s(528),o=s(55),i=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function d(e,t){return t.decode?a(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const s=function(e){let t;switch(e.arrayFormat){case"index":return(e,s,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=s):r[e]=s};case"bracket":return(e,s,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],s):r[e]=[s]:r[e]=s};case"colon-list-separator":return(e,s,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],s):r[e]=[s]:r[e]=s};case"comma":case"separator":return(t,s,r)=>{const a="string"==typeof s&&s.includes(e.arrayFormatSeparator),n="string"==typeof s&&!a&&d(s,e).includes(e.arrayFormatSeparator);s=n?d(s,e):s;const o=a||n?s.split(e.arrayFormatSeparator).map((t=>d(t,e))):null===s?s:d(s,e);r[t]=o};case"bracket-separator":return(t,s,r)=>{const a=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!a)return void(r[t]=s?d(s,e):s);const n=null===s?[]:s.split(e.arrayFormatSeparator).map((t=>d(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=n};default:return(e,t,s)=>{void 0!==s[e]?s[e]=[].concat(s[e],t):s[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){if(""===a)continue;let[e,o]=n(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:d(o,t),s(d(e,t),o,r)}for(const e of Object.keys(r)){const s=r[e];if("object"==typeof s&&null!==s)for(const e of Object.keys(s))s[e]=h(s[e],t);else r[e]=h(s,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const s=r[t];return Boolean(s)&&"object"==typeof s&&!Array.isArray(s)?e[t]=l(s):e[t]=s,e}),Object.create(null))}t.extract=g,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const s=s=>t.skipNull&&null==e[s]||t.skipEmptyString&&""===e[s],r=function(e){switch(e.arrayFormat){case"index":return t=>(s,r)=>{const a=s.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[u(t,e),"[",a,"]"].join("")]:[...s,[u(t,e),"[",u(a,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[u(t,e),"[]"].join("")]:[...s,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,[u(t,e),":list="].join("")]:[...s,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return s=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:(a=null===a?"":a,0===r.length?[[u(s,e),t,u(a,e)].join("")]:[[r,u(a,e)].join(e.arrayFormatSeparator)])}default:return t=>(s,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?s:null===r?[...s,u(t,e)]:[...s,[u(t,e),"=",u(r,e)].join("")]}}(t),a={};for(const t of Object.keys(e))s(t)||(a[t]=e[t]);const n=Object.keys(a);return!1!==t.sort&&n.sort(t.sort),n.map((s=>{const a=e[s];return void 0===a?"":null===a?u(s,t):Array.isArray(a)?0===a.length&&"bracket-separator"===t.arrayFormat?u(s,t)+"[]":a.reduce(r(s),[]).join("&"):u(s,t)+"="+u(a,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[s,r]=n(e,"#");return Object.assign({url:s.split("?")[0]||"",query:f(g(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:d(r,t)}:{})},t.stringifyUrl=(e,s)=>{s=Object.assign({encode:!0,strict:!0,[i]:!0},s);const r=p(e.url).split("?")[0]||"",a=t.extract(e.url),n=t.parse(a,{sort:!1}),o=Object.assign(n,e.query);let c=t.stringify(o,s);c&&(c=`?${c}`);let d=function(e){let t="";const s=e.indexOf("#");return-1!==s&&(t=e.slice(s)),t}(e.url);return e.fragmentIdentifier&&(d=`#${s[i]?u(e.fragmentIdentifier,s):e.fragmentIdentifier}`),`${r}${c}${d}`},t.pick=(e,s,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[i]:!1},r);const{url:a,query:n,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:a,query:o(n,s),fragmentIdentifier:c},r)},t.exclude=(e,s,r)=>{const a=Array.isArray(s)?e=>!s.includes(e):(e,t)=>!s(e,t);return t.pick(e,a,r)}},528:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const s=e.indexOf(t);return-1===s?[e]:[e.slice(0,s),e.slice(s+t.length)]}},280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},534:(e,t,s)=>{const{fdkAxios:r}=s(128),{convertStringToBase64:a}=s(879);e.exports=class{static execute(e,t,s,n,o,i,c){let u={Authorization:"Bearer "+a(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(u={...u,cookie:e.cookie}),e.locationDetails&&(u={...u,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(u={...u,"x-currency-code":e.currencyCode});const d=e.extraHeaders.reduce(((e,t)=>({...e,...t})),{});let l={method:t,url:s,params:n,data:o,headers:{...u,...d,...i},responseHeaders:c.responseHeaders};return r.request(l)}}},418:(e,t,s)=>{const r=s(869),a=s(99),n=s(727),o=s(979),i=s(307),c=s(507),u=s(259),d=s(43),l=s(133),p=s(469),g=s(611),h=s(603),f=s(715),m=s(651),y=s(803),H=s(363),v=s(567),{FDKClientValidationError:_}=s(235),{Logger:w}=s(572),{convertStringToBase64:b}=s(879),{execute:q}=s(534);e.exports=class{constructor(e){this.config=e,this.cart=new r(e),this.catalog=new a(e),this.common=new n(e),this.communication=new o(e),this.configuration=new i(e),this.content=new c(e),this.fileStorage=new u(e),this.finance=new d(e),this.lead=new l(e),this.logistic=new p(e),this.order=new g(e),this.payment=new h(e),this.rewards=new f(e),this.share=new m(e),this.theme=new y(e),this.user=new H(e),this.webhook=new v(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e,t=!1){this.config.locationDetails=!0===t?e:{...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new _("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new _("Context value should be an object");this.config.extraHeaders.push(e)}async request({method:e,url:t,query:s,body:r,headers:a,responseHeaders:n=!1}){return await q(this.config,e,t,s,r,a,{responseHeaders:n})}}},163:(e,t,s)=>{const{FDKInvalidCredentialError:r}=s(235),{Logger:a,setLoggerLevel:n}=s(572);e.exports=class{constructor(e,t){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.options={strictResponseCheck:!1,...t},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){n(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw a({level:"ERROR",message:"No Application ID Present"}),new r("No Application ID Present");if(!this.applicationToken)throw a({level:"ERROR",message:"No Application Token Present"}),new r("No Application Token Present");if(this.applicationToken.length<5)throw a({level:"ERROR",message:"Invalid Application Token"}),new r("Invalid Application Token");if("boolean"!=typeof this.options.strictResponseCheck)throw a({level:"ERROR",message:"Invalid Application Token"}),a({level:"ERROR",message:"Invalid Value for options.strictResponseCheck, provide boolean value"}),new r("Invalid Value for options.strictResponseCheck, provide boolean value")}}},869:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getPromotionPaymentOffers:"/service/application/cart/v1.0/available-payment-offers",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartBreakup:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async addItems({body:e,i:t,b:s,areaCode:n,buyNow:o,id:i,orderType:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const l={};l.i=t,l.b=s,l.area_code=n,l.buy_now=o,l.id=i,l.order_type=c;const p=await r.execute(this._conf,"post",a({url:this._urls.addItems,params:{}}),l,e,{...u},{responseHeaders:d});let g=p;return d&&(g=p[0]),p}async applyCoupon({body:e,i:t,b:s,p:n,id:o,buyNow:i,cartType:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const l={};l.i=t,l.b=s,l.p=n,l.id=o,l.buy_now=i,l.cart_type=c;const p=await r.execute(this._conf,"post",a({url:this._urls.applyCoupon,params:{}}),l,e,{...u},{responseHeaders:d});let g=p;return d&&(g=p[0]),p}async applyRewardPoints({body:e,id:t,i:s,b:n,buyNow:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.id=t,u.i=s,u.b=n,u.buy_now=o;const d=await r.execute(this._conf,"post",a({url:this._urls.applyRewardPoints,params:{}}),u,e,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async checkoutCart({body:e,buyNow:t,cartType:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.buy_now=t,i.cart_type=s;const c=await r.execute(this._conf,"post",a({url:this._urls.checkoutCart,params:{}}),i,e,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async checkoutCartV2({body:e,buyNow:t,cartType:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.buy_now=t,i.cart_type=s;const c=await r.execute(this._conf,"post",a({url:this._urls.checkoutCartV2,params:{}}),i,e,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async deleteCart({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.id=e;const o=await r.execute(this._conf,"put",a({url:this._urls.deleteCart,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getAddressById({id:e,cartId:t,buyNow:s,mobileNo:n,checkoutMode:o,tags:i,isDefault:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const l={};l.cart_id=t,l.buy_now=s,l.mobile_no=n,l.checkout_mode=o,l.tags=i,l.is_default=c;const p=await r.execute(this._conf,"get",a({url:this._urls.getAddressById,params:{id:e}}),l,void 0,{...u},{responseHeaders:d});let g=p;return d&&(g=p[0]),p}async getAddresses({cartId:e,buyNow:t,mobileNo:s,checkoutMode:n,tags:o,isDefault:i,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const d={};d.cart_id=e,d.buy_now=t,d.mobile_no=s,d.checkout_mode=n,d.tags=o,d.is_default=i;const l=await r.execute(this._conf,"get",a({url:this._urls.getAddresses,params:{}}),d,void 0,{...c},{responseHeaders:u});let p=l;return u&&(p=l[0]),l}async getBulkDiscountOffers({itemId:e,articleId:t,uid:s,slug:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.item_id=e,c.article_id=t,c.uid=s,c.slug=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getBulkDiscountOffers,params:{}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}async getCart({id:e,i:t,b:s,c:n,assignCardId:o,areaCode:i,buyNow:c,orderType:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.id=e,p.i=t,p.b=s,p.c=n,p.assign_card_id=o,p.area_code=i,p.buy_now=c,p.order_type=u;const g=await r.execute(this._conf,"get",a({url:this._urls.getCart,params:{}}),p,void 0,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.id=e;const o=await r.execute(this._conf,"head",a({url:this._urls.getCartLastModified,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCoupons({id:e,buyNow:t,slug:s,storeId:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.id=e,c.buy_now=t,c.slug=s,c.store_id=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getCoupons,params:{}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}async getItemCount({id:e,buyNow:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.id=e,o.buy_now=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getItemCount,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getLadderOffers({slug:e,storeId:t,promotionId:s,pageSize:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.slug=e,c.store_id=t,c.promotion_id=s,c.page_size=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getLadderOffers,params:{}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}async getPromotionOffers({slug:e,pageSize:t,promotionGroup:s,storeId:n,cartType:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.slug=e,u.page_size=t,u.promotion_group=s,u.store_id=n,u.cart_type=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getPromotionOffers,params:{}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async getPromotionPaymentOffers({id:e,uid:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.id=e,o.uid=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getPromotionPaymentOffers,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getShipments({p:e,id:t,buyNow:s,addressId:n,areaCode:o,orderType:i,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const d={};d.p=e,d.id=t,d.buy_now=s,d.address_id=n,d.area_code=o,d.order_type=i;const l=await r.execute(this._conf,"get",a({url:this._urls.getShipments,params:{}}),d,void 0,{...c},{responseHeaders:u});let p=l;return u&&(p=l[0]),l}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"delete",a({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async removeCoupon({id:e,buyNow:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.id=e,o.buy_now=t;const i=await r.execute(this._conf,"delete",a({url:this._urls.removeCoupon,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async selectAddress({body:e,cartId:t,buyNow:s,i:n,b:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.cart_id=t,u.buy_now=s,u.i=n,u.b=o;const d=await r.execute(this._conf,"post",a({url:this._urls.selectAddress,params:{}}),u,e,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async selectPaymentMode({body:e,id:t,buyNow:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.id=t,i.buy_now=s;const c=await r.execute(this._conf,"put",a({url:this._urls.selectPaymentMode,params:{}}),i,e,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async updateAddress({id:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"put",a({url:this._urls.updateAddress,params:{id:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async updateCart({body:e,id:t,i:s,b:n,areaCode:o,buyNow:i,cartType:c,orderType:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.id=t,p.i=s,p.b=n,p.area_code=o,p.buy_now=i,p.cart_type=c,p.order_type=u;const g=await r.execute(this._conf,"put",a({url:this._urls.updateCart,params:{}}),p,e,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}async updateCartBreakup({body:e,id:t,i:s,b:n,buyNow:o,cartType:i,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const d={};d.id=t,d.i=s,d.b=n,d.buy_now=o,d.cart_type=i;const l=await r.execute(this._conf,"patch",a({url:this._urls.updateCartBreakup,params:{}}),d,e,{...c},{responseHeaders:u});let p=l;return u&&(p=l[0]),l}async updateCartMeta({body:e,id:t,buyNow:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.id=t,i.buy_now=s;const c=await r.execute(this._conf,"put",a({url:this._urls.updateCartMeta,params:{}}),i,e,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async updateCartWithSharedItems({token:e,action:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async validateCouponForPayment({id:e,buyNow:t,addressId:s,paymentMode:n,paymentIdentifier:o,aggregatorName:i,merchantCode:c,iin:u,network:d,type:l,cardId:p,cartType:g,requestHeaders:h}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const m={};m.id=e,m.buy_now=t,m.address_id=s,m.payment_mode=n,m.payment_identifier=o,m.aggregator_name=i,m.merchant_code=c,m.iin=u,m.network=d,m.type=l,m.card_id=p,m.cart_type=g;const y=await r.execute(this._conf,"get",a({url:this._urls.validateCouponForPayment,params:{}}),m,void 0,{...h},{responseHeaders:f});let H=y;return f&&(H=y[0]),y}}},99:(e,t,s)=>{const r=s(534),a=s(205),n=s(121);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.followById,params:{collectionType:e,collectionId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getBrandDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getBrands({department:e,pageNo:t,pageSize:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.department=e,i.page_no=t,i.page_size=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getBrands,params:{}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}getBrandsPaginator({department:e,pageSize:t}={}){const s=new n;return s.setCallback((async()=>{s.nextId;const r=s.pageNo,a=await this.getBrands({department:e,pageNo:r,pageSize:t});return s.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),s}async getCategories({department:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.department=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getCategories,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getCategoryDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCollectionDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCollectionItemsBySlug({slug:e,f:t,q:s,filters:n,sortOn:o,pageId:i,pageSize:c,pageNo:u,pageType:d,requestHeaders:l}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const g={};g.f=t,g.q=s,g.filters=n,g.sort_on=o,g.page_id=i,g.page_size=c,g.page_no=u,g.page_type=d;const h=await r.execute(this._conf,"get",a({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),g,void 0,{...l},{responseHeaders:p});let f=h;return p&&(f=h[0]),h}getCollectionItemsBySlugPaginator({slug:e,f:t,q:s,filters:r,sortOn:a,pageSize:o}={}){const i=new n;return i.setCallback((async()=>{const n=i.nextId,c=i.pageNo,u=await this.getCollectionItemsBySlug({slug:e,f:t,q:s,filters:r,sortOn:a,pageId:n,pageSize:o,pageNo:c,pageType:"cursor"});return i.setPaginator({hasNext:!!u.page.has_next,nextId:u.page.next_id}),u}).bind(this)),i}async getCollections({pageNo:e,pageSize:t,tag:s,q:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.page_no=e,c.page_size=t,c.tag=s,c.q=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getCollections,params:{}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}getCollectionsPaginator({pageSize:e,tag:t,q:s}={}){const r=new n;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getCollections({pageNo:a,pageSize:e,tag:t,q:s});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getFollowIds({collectionType:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.collection_type=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getFollowIds,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getFollowedListing({collectionType:e,pageId:t,pageSize:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.page_id=t,i.page_size=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getFollowedListing,params:{collectionType:e}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}getFollowedListingPaginator({collectionType:e,pageSize:t}={}){const s=new n;return s.setCallback((async()=>{const r=s.nextId,a=(s.pageNo,await this.getFollowedListing({collectionType:e,pageId:r,pageSize:t}));return s.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),s}async getFollowerCountById({collectionType:e,collectionId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"get",a({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getHomeProducts({sortOn:e,pageId:t,pageSize:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.sort_on=e,i.page_id=t,i.page_size=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getHomeProducts,params:{}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}getHomeProductsPaginator({sortOn:e,pageSize:t}={}){const s=new n;return s.setCallback((async()=>{const r=s.nextId,a=(s.pageNo,await this.getHomeProducts({sortOn:e,pageId:r,pageSize:t}));return s.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),s}async getInStockLocations({pageNo:e,pageSize:t,q:s,city:n,range:o,latitude:i,longitude:c,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const l={};l.page_no=e,l.page_size=t,l.q=s,l.city=n,l.range=o,l.latitude=i,l.longitude=c;const p=await r.execute(this._conf,"get",a({url:this._urls.getInStockLocations,params:{}}),l,void 0,{...u},{responseHeaders:d});let g=p;return d&&(g=p[0]),p}getInStockLocationsPaginator({pageSize:e,q:t,city:s,range:r,latitude:a,longitude:o}={}){const i=new n;return i.setCallback((async()=>{i.nextId;const n=i.pageNo,c=await this.getInStockLocations({pageNo:n,pageSize:e,q:t,city:s,range:r,latitude:a,longitude:o});return i.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),i}async getLocationDetailsById({locationId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getProductBundlesBySlug({slug:e,id:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.slug=e,o.id=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getProductBundlesBySlug,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getProductComparisonBySlugs({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.slug=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getProductComparisonBySlugs,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getProductDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getProductPriceBySlug({slug:e,size:t,storeId:s,moq:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.store_id=s,c.moq=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}async getProductSellersBySlug({slug:e,size:t,strategy:s,pageNo:n,pageSize:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.strategy=s,u.page_no=n,u.page_size=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}getProductSellersBySlugPaginator({slug:e,size:t,strategy:s,pageSize:r}={}){const a=new n;return a.setCallback((async()=>{a.nextId;const n=a.pageNo,o=await this.getProductSellersBySlug({slug:e,size:t,strategy:s,pageNo:n,pageSize:r});return a.setPaginator({hasNext:!!o.page.has_next,nextId:o.page.next_id}),o}).bind(this)),a}async getProductSizesBySlug({slug:e,storeId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.store_id=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getProductSizesBySlug,params:{slug:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getProductStockByIds({itemId:e,alu:t,skuCode:s,ean:n,upc:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.item_id=e,u.alu=t,u.sku_code=s,u.ean=n,u.upc=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getProductStockByIds,params:{}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.timestamp=e,i.page_size=t,i.page_id=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getProductStockForTimeByIds,params:{}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:t}={}){const s=new n;return s.setCallback((async()=>{const r=s.nextId,a=(s.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:r}));return s.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),s}async getProductVariantsBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getProducts({q:e,f:t,filters:s,sortOn:n,pageId:o,pageSize:i,pageNo:c,pageType:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.q=e,p.f=t,p.filters=s,p.sort_on=n,p.page_id=o,p.page_size=i,p.page_no=c,p.page_type=u;const g=await r.execute(this._conf,"get",a({url:this._urls.getProducts,params:{}}),p,void 0,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}getProductsPaginator({q:e,f:t,filters:s,sortOn:r,pageSize:a}={}){const o=new n;return o.setCallback((async()=>{const n=o.nextId,i=o.pageNo,c=await this.getProducts({q:e,f:t,filters:s,sortOn:r,pageId:n,pageSize:a,pageNo:i,pageType:"cursor"});return o.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),o}async getSearchResults({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.q=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getSearchResults,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getStores({pageNo:e,pageSize:t,q:s,city:n,range:o,latitude:i,longitude:c,tags:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.page_no=e,p.page_size=t,p.q=s,p.city=n,p.range=o,p.latitude=i,p.longitude=c,p.tags=u;const g=await r.execute(this._conf,"get",a({url:this._urls.getStores,params:{}}),p,void 0,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}getStoresPaginator({pageSize:e,q:t,city:s,range:r,latitude:a,longitude:o,tags:i}={}){const c=new n;return c.setCallback((async()=>{c.nextId;const n=c.pageNo,u=await this.getStores({pageNo:n,pageSize:e,q:t,city:s,range:r,latitude:a,longitude:o,tags:i});return c.setPaginator({hasNext:!!u.page.has_next,nextId:u.page.next_id}),u}).bind(this)),c}async unfollowById({collectionType:e,collectionId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"delete",a({url:this._urls.unfollowById,params:{collectionType:e,collectionId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}}},727:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.location_type=e,o.id=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getLocations,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async searchApplication({authorization:e,query:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.query=t;const i={};i.authorization=e;const c=await r.execute(this._conf,"get",a({url:this._urls.searchApplication,params:{}}),o,void 0,{...i,...s},{responseHeaders:n});let u=c;return n&&(u=c[0]),c}}},979:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async upsertAppPushtoken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async upsertCommunicationConsent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},307:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:s,orderingStore:n,user:o,userName:i,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const d={};d.page_no=e,d.page_size=t,d.order_incent=s,d.ordering_store=n,d.user=o,d.user_name=i;const l=await r.execute(this._conf,"get",a({url:this._urls.getAppStaffList,params:{}}),d,void 0,{...c},{responseHeaders:u});let p=l;return u&&(p=l[0]),l}async getAppStaffs({orderIncent:e,orderingStore:t,user:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.order_incent=e,i.ordering_store=t,i.user=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getAppStaffs,params:{}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOrderingStores({pageNo:e,pageSize:t,q:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.page_no=e,i.page_size=t,i.q=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getOrderingStores,params:{}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"delete",a({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}}},507:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs",getCustomFieldsByResourceId:"/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",getCustomObjectBySlug:"/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages",getSEOConfiguration:"/service/application/content/v1.0/seo",getSEOMarkupSchemas:"/service/application/content/v1.0/seo/schema",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getBlog({slug:e,rootId:t,preview:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i={};i.root_id=t,i.preview=s;const c=await r.execute(this._conf,"get",a({url:this._urls.getBlog,params:{slug:e}}),i,void 0,{...n},{responseHeaders:o});let u=c;return o&&(u=c[0]),c}async getBlogs({pageNo:e,pageSize:t,tags:s,search:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const c={};c.page_no=e,c.page_size=t,c.tags=s,c.search=n;const u=await r.execute(this._conf,"get",a({url:this._urls.getBlogs,params:{}}),c,void 0,{...o},{responseHeaders:i});let d=u;return i&&(d=u[0]),u}async getCustomFieldsByResourceId({resource:e,resourceSlug:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"get",a({url:this._urls.getCustomFieldsByResourceId,params:{resource:e,resourceSlug:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getCustomObjectBySlug({definitionSlug:e,slug:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"get",a({url:this._urls.getCustomObjectBySlug,params:{definitionSlug:e,slug:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getFaqBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getFaqCategoryBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getFaqsByCategorySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getNavigations({pageNo:e,pageSize:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.page_no=e,o.page_size=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getNavigations,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getPage({slug:e,rootId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.root_id=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getPage,params:{slug:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getPages({pageNo:e,pageSize:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.page_no=e,o.page_size=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getPages,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getSEOMarkupSchemas({pageType:e,active:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.page_type=e,o.active=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getSEOMarkupSchemas,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}}},259:(e,t,s)=>{const r=s(534),a=s(205),{fdkAxios:n}=(s(121),s(128));class o{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v2.0/namespaces/{namespace}/upload/complete",signUrls:"/service/application/assets/v1.0/sign-urls",startUpload:"/service/application/assets/v2.0/namespaces/{namespace}/upload/start"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.completeUpload,params:{namespace:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async signUrls({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.signUrls,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async startUpload({namespace:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.startUpload,params:{namespace:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}}o.prototype.upload=function({data:e,file_name:t,content_type:s,namespace:r,size:a,tags:o}={}){return new Promise((async(i,c)=>{try{const u=await this.startUpload({namespace:r,body:{file_name:t,content_type:s,size:a,tags:o}});if(u.upload&&u.upload.url){let t={method:"PUT",url:u.upload.url,data:e,headers:{"Content-Type":s},withCredentials:!1};await n.request(t)}else c({message:"Failed to upload file"});delete u.tags,i(await this.completeUpload({namespace:r,body:u}))}catch(e){c(e)}}))},e.exports=o},43:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={customerCreditBalance:"/service/application/finance/v1.0/customer-credit-balance",lockUnlockCreditNote:"/service/application/finance/v1.0/lock-unlock-credit-note"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async customerCreditBalance({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.customerCreditBalance,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async lockUnlockCreditNote({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.lockUnlockCreditNote,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},133:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getTicket:"/service/application/lead/v1.0/ticket/{id}",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.createHistory,params:{id:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async createTicket({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.createTicket,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCustomForm({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getTicket({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async submitCustomForm({slug:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.submitCustomForm,params:{slug:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}}},469:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v2.0/countries",getCountry:"/service/application/logistics/v1.0/countries/{country_iso_code}",getCourierPartners:"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",getDeliveryPromise:"/service/application/logistics/v1.0/delivery-promise",getLocalities:"/service/application/logistics/v1.0/localities/{locality_type}",getLocality:"/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}",getLocations:"/service/application/logistics/v1.0/locations",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeCity:"/service/application/logistics/v1.0/pincode/{pincode}",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",getTatProduct:"/service/application/logistics/v1.0/",validateAddress:"/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getCountries({onboarding:e,pageNo:t,pageSize:s,q:n,hierarchy:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.onboarding=e,u.page_no=t,u.page_size=s,u.q=n,u.hierarchy=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getCountries,params:{}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async getCountry({countryIsoCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getCountry,params:{countryIsoCode:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCourierPartners({companyId:e,applicationId:t,body:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i=await r.execute(this._conf,"post",a({url:this._urls.getCourierPartners,params:{companyId:e,applicationId:t}}),{},s,{...n},{responseHeaders:o});let c=i;return o&&(c=i[0]),i}async getDeliveryPromise({pageNo:e,pageSize:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.page_no=e,o.page_size=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getDeliveryPromise,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getLocalities({localityType:e,country:t,state:s,city:n,pageNo:o,pageSize:i,q:c,sector:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.country=t,p.state=s,p.city=n,p.page_no=o,p.page_size=i,p.q=c,p.sector=u;const g=await r.execute(this._conf,"get",a({url:this._urls.getLocalities,params:{localityType:e}}),p,void 0,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}async getLocality({localityType:e,localityValue:t,country:s,state:n,city:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.country=s,u.state=n,u.city=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getLocality,params:{localityType:e,localityValue:t}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async getLocations({xApplicationId:e,xApplicationData:t,country:s,state:n,city:o,pincode:i,sector:c,pageNo:u,pageSize:d,requestHeaders:l}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const g={};g["x-application-id"]=e,g["x-application-data"]=t,g.country=s,g.state=n,g.city=o,g.pincode=i,g.sector=c,g.page_no=u,g.page_size=d;const h=await r.execute(this._conf,"get",a({url:this._urls.getLocations,params:{}}),g,void 0,{...l},{responseHeaders:p});let f=h;return p&&(f=h[0]),h}async getOptimalLocations({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getOptimalLocations,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getPincodeCity({pincode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getPincodeCity,params:{pincode:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getPincodeZones({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getPincodeZones,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getTatProduct({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getTatProduct,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async validateAddress({countryIsoCode:e,templateName:t,body:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i=await r.execute(this._conf,"post",a({url:this._urls.validateAddress,params:{countryIsoCode:e,templateName:t}}),{},s,{...n},{responseHeaders:o});let c=i;return o&&(c=i[0]),i}}},611:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"get",a({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOrderById({orderId:e,allowInactive:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.allow_inactive=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getOrderById,params:{orderId:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getOrders({status:e,pageNo:t,pageSize:s,fromDate:n,toDate:o,startDate:i,endDate:c,customMeta:u,allowInactive:d,requestHeaders:l}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const g={};g.status=e,g.page_no=t,g.page_size=s,g.from_date=n,g.to_date=o,g.start_date=i,g.end_date=c,g.custom_meta=u,g.allow_inactive=d;const h=await r.execute(this._conf,"get",a({url:this._urls.getOrders,params:{}}),g,void 0,{...l},{responseHeaders:p});let f=h;return p&&(f=h[0]),h}async getPosOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getShipmentBagReasons({shipmentId:e,bagId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"get",a({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async getShipmentById({shipmentId:e,allowInactive:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.allow_inactive=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getShipmentById,params:{shipmentId:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getShipmentReasons({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async sendOtpToShipmentCustomer({orderId:e,shipmentId:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"post",a({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},void 0,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async trackShipment({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async updateShipmentStatus({shipmentId:e,body:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o=await r.execute(this._conf,"put",a({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},t,{...s},{responseHeaders:n});let i=o;return n&&(i=o[0]),o}async verifyOtpShipmentCustomer({orderId:e,shipmentId:t,body:s,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){const i=await r.execute(this._conf,"post",a({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},s,{...n},{responseHeaders:o});let c=i;return o&&(c=i[0]),i}}},603:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",createPaymentOrder:"/service/application/payment/v1.0/payment-orders/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteUserCard:"/service/application/payment/v1.0/card/remove",delinkWallet:"/service/application/payment/v1.0/payment/options/wallet/delink",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",linkWallet:"/service/application/payment/v1.0/payment/options/wallet/verify",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateCustomerAndCreditSummary:"/service/application/payment/v1.0/payment/validate/customer-credits-v2",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet",walletLinkInitiate:"/service/application/payment/v1.0/payment/options/wallet/link"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async addRefundBankAccountUsingOTP({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async attachCardToCustomer({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async cancelPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async cardDetails({cardInfo:e,aggregator:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.aggregator=t;const i=await r.execute(this._conf,"get",a({url:this._urls.cardDetails,params:{cardInfo:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async checkAndUpdatePaymentStatus({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async checkCredit({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.aggregator=e;const o=await r.execute(this._conf,"get",a({url:this._urls.checkCredit,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async createOrderHandlerPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async createPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.createPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async createPaymentOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.createPaymentOrder,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async customerCreditSummary({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.aggregator=e;const o=await r.execute(this._conf,"get",a({url:this._urls.customerCreditSummary,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async customerOnboard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.customerOnboard,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async deleteUserCard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.deleteUserCard,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async delinkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.delinkWallet,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async enableOrDisableRefundTransferMode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"put",a({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getActiveCardAggregator({refresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.refresh=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getActiveCardAggregator,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getActiveUserCards({forceRefresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.force_refresh=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getActiveUserCards,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getAggregatorsConfig({xApiToken:e,refresh:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.refresh=t;const i={};i["x-api-token"]=e;const c=await r.execute(this._conf,"get",a({url:this._urls.getAggregatorsConfig,params:{}}),o,void 0,{...i,...s},{responseHeaders:n});let u=c;return n&&(u=c[0]),c}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.order_id=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getOrderBeneficiariesDetail,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.payment_link_id=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getPaymentLink,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getPaymentModeRoutes({amount:e,cartId:t,checkoutMode:s,refresh:n,orderId:o,cardReference:i,userDetails:c,displaySplit:u,advancePayment:d,shipmentId:l,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const h={};h.amount=e,h.cart_id=t,h.checkout_mode=s,h.refresh=n,h.order_id=o,h.card_reference=i,h.user_details=c,h.display_split=u,h.advance_payment=d,h.shipment_id=l;const f=await r.execute(this._conf,"get",a({url:this._urls.getPaymentModeRoutes,params:{}}),h,void 0,{...p},{responseHeaders:g});let m=f;return g&&(m=f[0]),f}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.payment_link_id=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getPosPaymentModeRoutes({amount:e,cartId:t,pincode:s,orderType:n,checkoutMode:o,refresh:i,cardReference:c,userDetails:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const p={};p.amount=e,p.cart_id=t,p.pincode=s,p.checkout_mode=o,p.refresh=i,p.card_reference=c,p.order_type=n,p.user_details=u;const g=await r.execute(this._conf,"get",a({url:this._urls.getPosPaymentModeRoutes,params:{}}),p,void 0,{...d},{responseHeaders:l});let h=g;return l&&(h=g[0]),g}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getUserBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.order_id=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getUserBeneficiariesDetail,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async initialisePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.initialisePayment,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async initialisePaymentPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async linkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.linkWallet,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async outstandingOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.aggregator=e;const o=await r.execute(this._conf,"get",a({url:this._urls.outstandingOrderDetails,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async paidOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.aggregator=e;const o=await r.execute(this._conf,"get",a({url:this._urls.paidOrderDetails,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async pollingPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.payment_link_id=e;const o=await r.execute(this._conf,"get",a({url:this._urls.pollingPaymentLink,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async redirectToAggregator({aggregator:e,source:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.source=t,o.aggregator=e;const i=await r.execute(this._conf,"get",a({url:this._urls.redirectToAggregator,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async renderHTML({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.renderHTML,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async resendOrCancelPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async resendPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.resendPaymentLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async updateDefaultBeneficiary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async validateCustomerAndCreditSummary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.validateCustomerAndCreditSummary,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async validateVPA({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.validateVPA,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyAndChargePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyCustomerForPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyIfscCode({ifscCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.ifsc_code=e;const o=await r.execute(this._conf,"get",a({url:this._urls.verifyIfscCode,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async walletLinkInitiate({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.walletLinkInitiate,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},715:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.catalogueOrder,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getOrderDiscount,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.page_id=e,o.page_size=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getUserPointsHistory,params:{}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.redeemReferralCode,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},651:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.createShortLink,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"post",a({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getCollectionQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOriginalShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getProductQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getUrlQRCode({url:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.url=e;const o=await r.execute(this._conf,"post",a({url:this._urls.getUrlQRCode,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}}},803:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"get",a({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getAppliedTheme({filters:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.filters=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getAppliedTheme,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getPage({themeId:e,pageValue:t,filters:s,sectionPreviewHash:n,company:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.filters=s,u.section_preview_hash=n,u.company=o;const d=await r.execute(this._conf,"get",a({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async getThemeForPreview({themeId:e,filters:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.filters=t;const i=await r.execute(this._conf,"get",a({url:this._urls.getThemeForPreview,params:{themeId:e}}),o,void 0,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}}},363:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",getUserAttributes:"/service/application/user/profile/v1.0/user-attributes",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",resetForgotPassword:"/service/application/user/authentication/v1.0/login/password/forgot",sendForgotOTPOnEmail:"/service/application/user/authentication/v1.0/otp/forgot/email/send",sendForgotOTPOnMobile:"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",updateUserAttributes:"/service/application/user/profile/v1.0/user-attributes",userExists:"/service/application/user/authentication/v1.0/user-exists",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/email/verify",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"put",a({url:this._urls.addEmail,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async addMobileNumber({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"put",a({url:this._urls.addMobileNumber,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async deleteEmail({active:e,primary:t,verified:s,email:n,platform:o,requestHeaders:i}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){const u={};u.platform=o,u.active=e,u.primary=t,u.verified=s,u.email=n;const d=await r.execute(this._conf,"delete",a({url:this._urls.deleteEmail,params:{}}),u,void 0,{...i},{responseHeaders:c});let l=d;return c&&(l=d[0]),d}async deleteMobileNumber({active:e,primary:t,verified:s,countryCode:n,phone:o,platform:i,requestHeaders:c}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const d={};d.platform=i,d.active=e,d.primary=t,d.verified=s,d.country_code=n,d.phone=o;const l=await r.execute(this._conf,"delete",a({url:this._urls.deleteMobileNumber,params:{}}),d,void 0,{...c},{responseHeaders:u});let p=l;return u&&(p=l[0]),l}async deleteUser({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.deleteUser,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async forgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.forgotPassword,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async getPlatformConfig({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.name=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getPlatformConfig,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async getUserAttributes({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.slug=e;const o=await r.execute(this._conf,"get",a({url:this._urls.getUserAttributes,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async loginWithAppleIOS({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithAppleIOS,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithEmailAndPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async loginWithFacebook({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithFacebook,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithGoogle({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithGoogle,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithGoogleAndroid({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithGoogleAndroid,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithGoogleIOS({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithGoogleIOS,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithOTP({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.loginWithOTP,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async loginWithToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.loginWithToken,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const s=await r.execute(this._conf,"get",a({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:t});let n=s;return t&&(n=s[0]),s}async registerWithForm({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.registerWithForm,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async resetForgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.resetForgotPassword,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async sendForgotOTPOnEmail({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendForgotOTPOnEmail,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendForgotOTPOnMobile({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendForgotOTPOnMobile,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendOTPOnEmail({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendOTPOnEmail,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendOTPOnMobile({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendOTPOnMobile,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendResetPasswordEmail({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendResetPasswordEmail,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendResetPasswordMobile({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendResetPasswordMobile,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendResetToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.sendResetToken,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async sendVerificationLinkToEmail({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendVerificationLinkToEmail,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async sendVerificationLinkToMobile({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.sendVerificationLinkToMobile,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async setEmailAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async setMobileNumberAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async updatePassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.updatePassword,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async updateProfile({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.updateProfile,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async updateUserAttributes({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"patch",a({url:this._urls.updateUserAttributes,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async userExists({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n={};n.q=e;const o=await r.execute(this._conf,"get",a({url:this._urls.userExists,params:{}}),n,void 0,{...t},{responseHeaders:s});let i=o;return s&&(i=o[0]),o}async verifyEmail({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyEmail,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyEmailForgotOTP({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.verifyEmailForgotOTP,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async verifyEmailOTP({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.verifyEmailOTP,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async verifyMobile({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.verifyMobile,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async verifyMobileForgotOTP({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.verifyMobileForgotOTP,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}async verifyMobileOTP({body:e,platform:t,requestHeaders:s}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){const o={};o.platform=t;const i=await r.execute(this._conf,"post",a({url:this._urls.verifyMobileOTP,params:{}}),o,e,{...s},{responseHeaders:n});let c=i;return n&&(c=i[0]),i}}},567:(e,t,s)=>{const r=s(534),a=s(205);s(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={saveClickEvent:"/service/application/webhook/v1.0/click-analytics/events"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[s,r])=>(t[s]=`${e.domain}${r}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async saveClickEvent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){const n=await r.execute(this._conf,"post",a({url:this._urls.saveClickEvent,params:{}}),{},e,{...t},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},205:(e,t,s)=>{const r=s(729);e.exports=({url:e,params:t})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=t[r(e.slice(1,e.length-1))]),e))).join("/")},775:(e,t,s)=>{e.exports={ApplicationConfig:s(163),ApplicationClient:s(418)}},128:(e,t,s)=>{const{isAbsoluteURL:r,combineURLs:a}=s(879),n=s(425).default,o=s(663),{sign:i}=s(331),{FDKServerResponseError:c}=s(235),{log:u,Logger:d,getLoggerLevel:l}=s(572),p=s(790),{version:g}=s(330),h=n.create({withCredentials:!0,paramsSerializer:e=>o.stringify(e)});h.interceptors.request.use((function(e){try{if(l()<=u.levels.DEBUG){const t=p(e);u.debug(t)}}catch(e){d({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){d({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),h.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;e.baseURL&&!r(e.url)&&(t=a(e.baseURL,e.url));const{host:s,pathname:n,search:c}=new URL(t),{data:u,headers:d,method:l,params:p}=e;d["x-fp-sdk-version"]=g;let h=o.parse(c);h={...h,...p};let f,m="";if(h&&Object.keys(h).length&&""!==o.stringify(h).trim()&&(m=`?${o.stringify(h)}`),"get"!=l){const t=function(e){const{transformRequest:t}=e;if(t){if("function"==typeof t)return t;if(t.length)return t[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);f=t(u,d)}const{common:y,delete:H,get:v,head:_,post:w,put:b,patch:q,...x}=d,S={method:l&&l.toUpperCase(),host:s,path:n+c+m,body:f,headers:x},C=i(S);return e.headers["x-fp-date"]=C["x-fp-date"],e.headers["x-fp-signature"]=C["x-fp-signature"],e})),h.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(d({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){if(e.response){const t=e.response.data;throw d({level:"ERROR",message:t&&t.message?t.message:e.message,stack:t&&t.stack?t.stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new c(t&&t.message?t.message:e.message,"",e.response.statusText,e.response.status,t)}throw e.request?(d({level:"ERROR",message:e.message,stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new c(e.message,e.stack,e.code,e.code)):(d({level:"ERROR",message:e.message}),new c(e.message,e.stack))})),e.exports={fdkAxios:h}},235:e=>{class t extends Error{constructor(e,t,s=null,r=null,a=null){super(e),this.name="FDKServerResponseError",this.stackTrace=t,this.status=s,this.code=r,this.details=a}}class s extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class r extends Error{constructor(e){super(e.message),this.name="FDKResponseValidationError",this.details=JSON.parse(JSON.stringify(e.details))}}class a extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class n extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class o extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class i extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:t,FDKClientValidationError:s,FDKResponseValidationError:r,FDKInvalidCredentialError:a,FDKTokenIssueError:n,FDKOAuthCodeError:o,FDKException:i}},572:(e,t,s)=>{const r=s(65),a=s(330).version;function n(){return(new Date).toString()}e.exports={log:r,Logger:function(e){const{level:t,message:s,...o}=e;"TRACE"===t&&r.trace(JSON.stringify({level:t,detail:s,...o,time:n(),version:a})),"DEBUG"===t&&r.debug(JSON.stringify({level:t,detail:s,...o,time:n(),version:a})),"INFO"===t&&r.info(JSON.stringify({level:t,detail:s,...o,time:n(),version:a})),"WARN"===t&&r.warn(JSON.stringify({level:t,detail:s,...o,time:n(),version:a})),"ERROR"===t&&r.error(JSON.stringify({level:t,detail:s,...o,time:n(),version:a}))},setLoggerLevel:function(e){r.setLevel(e)},getLoggerLevel:function(){return r.getLevel()}}},121:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:t,pageNo:s=1}){this.isNext=e,this.nextId=t,this.pageNo=s}next(){return this.callback()}}},790:(e,t,s)=>{const r=s(663),{combineURLs:a,isAbsoluteURL:n}=s(879);let o;e.exports=function(e){return o=e,`curl ${`--request ${o.method.toUpperCase()}`.trim()} "${function(){let e=o.url;o.baseURL&&!n(e)&&(e=a(o.baseURL,e).trim());let{search:t}=new URL(e);queryParamObject={...r.parse(t),...o.params};let s="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==r.stringify(queryParamObject).trim()&&(s=`?${r.stringify(queryParamObject).trim()}`),`${e}${t.trim()}${s}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],t={};o.headers[o.method]&&(t=o.headers[o.method]),t=Object.keys(t).reduce(((e,s)=>(e[s.toLowerCase()]=t[s],e)),{});for(let s in o.headers)e.includes(s)||(o.headers[s]instanceof Object?t[s.toLowerCase()]=JSON.stringify(o.headers[s]):t[s.toLowerCase()]=o.headers[s]);let s="";for(let e in t)s+=` --header '${e}: ${t[e]}'`;return s.trim()}()} ${"GET"!==o.method.toUpperCase()&&null!==o.data&&""!==o.data&&o.data?`--data-raw '${JSON.stringify(o.data)}'`.trim():""}`.trim()}},879:(e,t,s)=>{const{FDKException:r}=s(235),a=":::",n=e=>{let t="";for(const s in e)if("object"!=typeof e[s]&&e[s]){const r=encodeURIComponent(e[s]);t+=`${s}=${r}&`}else Array.isArray(e[s])?e[s].forEach((e=>{const r=encodeURIComponent(e);t+=`${s}=${r}&`})):"object"==typeof e[s]&&e[s]&&(t+=n(e[s]));return t?t.slice(0,-1):t},o=(e="",t="/")=>{for(;e.charAt(0)==t;)e=e.substring(1);for(;e.charAt(e.length-1)==t;)e=e.substring(0,e.length-1);return e},i=()=>"undefined"!=typeof window&&void 0!==window.document,c=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:n,getParamsFromItem:e=>{let t="";for(let s in e)if(Array.isArray(e[s])){for(let r=0;r{let t=e.split("?");if(t.length>1){const e=new URLSearchParams(t[1]);let s={};for(let t of e){let e=t[0],r=t[1];s[e]=s[e]?[...s[e],r]:[r]}return s}return{}},trimChar:o,generateUrlWithParams:(e={},t)=>{if(!e||!e.link)return"";if(!t)return`/${o(e.link.split(":")[0])}`;const s={};for(let e in t)if(Array.isArray(t[e])){let r="";for(let s=0;s{let s={value:"",params:{}};t=o(t);for(let r=0;r{if(c())return Buffer.from(e,"utf-8").toString("base64");if(i())return window.btoa(e);throw new r("Base64 conversion error: Unsupported environment")},isBrowser:i,isNode:c,NAV_TYPE:{PAGE:"page",POPUP:"popup"},combineURLs:function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}}},425:(e,t,s)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:n}=Object,o=(i=Object.create(null),e=>{const t=a.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),g=u("string"),h=u("function"),f=u("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},H=c("Date"),v=c("File"),_=c("Blob"),w=c("FileList"),b=c("URLSearchParams"),[q,x,S,C]=["ReadableStream","Request","Response","Headers"].map(c);function O(e,t,{allOwnKeys:s=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,a=e.length;r0;)if(r=s[a],t===r.toLowerCase())return r;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:s.g,R=e=>!l(e)&&e!==k,E=(I="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>I&&e instanceof I);var I;const A=c("HTMLFormElement"),T=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),B=c("RegExp"),L=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),r={};O(s,((s,a)=>{let n;!1!==(n=t(s,a,e))&&(r[a]=n||s)})),Object.defineProperties(e,r)},U="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+N},D=c("AsyncFunction"),j=(z="function"==typeof setImmediate,M=h(k.postMessage),z?setImmediate:M?($=`axios@${Math.random()}`,W=[],k.addEventListener("message",(({source:e,data:t})=>{e===k&&t===$&&W.length&&W.shift()()}),!1),e=>{W.push(e),k.postMessage($,"*")}):e=>setTimeout(e));var z,M,$,W;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):"undefined"!=typeof process&&process.nextTick||j;var K={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=o(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:g,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isReadableStream:q,isRequest:x,isResponse:S,isHeaders:C,isUndefined:l,isDate:H,isFile:v,isBlob:_,isRegExp:B,isFunction:h,isStream:e=>m(e)&&h(e.pipe),isURLSearchParams:b,isTypedArray:E,isFileList:w,forEach:O,merge:function e(){const{caseless:t}=R(this)&&this||{},s={},r=(r,a)=>{const n=t&&P(s,a)||a;y(s[n])&&y(r)?s[n]=e(s[n],r):y(r)?s[n]=e({},r):d(r)?s[n]=r.slice():s[n]=r};for(let e=0,t=arguments.length;e(O(t,((t,a)=>{s&&h(t)?e[a]=r(t,s):e[a]=t}),{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,s,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},toFlatObject:(e,t,s,r)=>{let a,o,i;const c={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=!0);e=!1!==s&&n(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:c,endsWith:(e,t,s)=>{e=String(e),(void 0===s||s>e.length)&&(s=e.length),s-=t.length;const r=e.indexOf(t,s);return-1!==r&&r===s},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!f(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},forEachEntry:(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},matchAll:(e,t)=>{let s;const r=[];for(;null!==(s=e.exec(t));)r.push(s);return r},isHTMLForm:A,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,s)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(s))return!1;const r=e[s];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")}))}))},toObjectSet:(e,t)=>{const s={},r=e=>{e.forEach((e=>{s[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),s},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,s){return t.toUpperCase()+s})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:k,isContextDefined:R,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let s="";const{length:r}=t;for(;e--;)s+=t[Math.random()*r|0];return s},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),s=(e,r)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const a=d(e)?[]:{};return O(e,((e,t)=>{const n=s(e,r+1);!l(n)&&(a[t]=n)})),t[r]=void 0,a}}return e};return s(e,0)},isAsyncFn:D,isThenable:e=>e&&(m(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:j,asap:V};function J(e,t,s,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}K.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const G=J.prototype,Q={};function X(e){return K.isPlainObject(e)||K.isArray(e)}function Z(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,s){return e?e.concat(t).map((function(e,t){return e=Z(e),!s&&t?"["+e+"]":e})).join(s?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Q[e]={value:e}})),Object.defineProperties(J,Q),Object.defineProperty(G,"isAxiosError",{value:!0}),J.from=(e,t,s,r,a,n)=>{const o=Object.create(G);return K.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),J.call(o,e.message,t,s,r,a),o.cause=e,o.name=e.name,n&&Object.assign(o,n),o};const ee=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,s){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(s=K.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,a=s.visitor||u,n=s.dots,o=s.indexes,i=(s.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!i&&K.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,s,a){let i=e;if(e&&!a&&"object"==typeof e)if(K.endsWith(s,"{}"))s=r?s:s.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(X)}(e)||(K.isFileList(e)||K.endsWith(s,"[]"))&&(i=K.toArray(e)))return s=Z(s),i.forEach((function(e,r){!K.isUndefined(e)&&null!==e&&t.append(!0===o?Y([s],r,n):null===o?s:s+"[]",c(e))})),!1;return!!X(e)||(t.append(Y(a,s,n),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:X});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(s,r){if(!K.isUndefined(s)){if(-1!==d.indexOf(s))throw Error("Circular reference detected in "+r.join("."));d.push(s),K.forEach(s,(function(s,n){!0===(!(K.isUndefined(s)||null===s)&&a.call(t,s,K.isString(n)?n.trim():n,r,l))&&e(s,r?r.concat(n):[n])})),d.pop()}}(e),t}function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const ae=re.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,s){if(!t)return e;const r=s&&s.encode||ne;K.isFunction(s)&&(s={serialize:s});const a=s&&s.serialize;let n;if(n=a?a(t,s):K.isURLSearchParams(t)?t.toString():new re(t,s).toString(r),n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,pe=de&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=de&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:ge,hasStandardBrowserEnv:pe,navigator:le,origin:he}),...ue};function me(e){function t(e,s,r,a){let n=e[a++];if("__proto__"===n)return!0;const o=Number.isFinite(+n),i=a>=e.length;return n=!n&&K.isArray(r)?r.length:n,i?(K.hasOwnProp(r,n)?r[n]=[r[n],s]:r[n]=s,!o):(r[n]&&K.isObject(r[n])||(r[n]=[]),t(e,s,r[n],a)&&K.isArray(r[n])&&(r[n]=function(e){const t={},s=Object.keys(e);let r;const a=s.length;let n;for(r=0;r{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,s,0)})),s}return null}const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",r=s.indexOf("application/json")>-1,a=K.isObject(e);if(a&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(me(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,s,r){return fe.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=K.isFileList(e))||s.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,s=t&&t.forcedJSONParsing,r="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(s&&!this.responseType||r)){const s=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var He=ye;const ve=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_e=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function be(e){return!1===e||null==e?e:K.isArray(e)?e.map(be):String(e)}function qe(e,t,s,r,a){return K.isFunction(r)?r.call(this,t,s):(a&&(t=s),K.isString(t)?K.isString(r)?-1!==t.indexOf(r):K.isRegExp(r)?r.test(t):void 0:void 0)}class xe{constructor(e){e&&this.set(e)}set(e,t,s){const r=this;function a(e,t,s){const a=we(t);if(!a)throw new Error("header name must be a non-empty string");const n=K.findKey(r,a);(!n||void 0===r[n]||!0===s||void 0===s&&!1!==r[n])&&(r[n||t]=be(e))}const n=(e,t)=>K.forEach(e,((e,s)=>a(e,s,t)));if(K.isPlainObject(e)||e instanceof this.constructor)n(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))n((e=>{const t={};let s,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),s=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!s||t[s]&&ve[s]||("set-cookie"===s?t[s]?t[s].push(r):t[s]=[r]:t[s]=t[s]?t[s]+", "+r:r)})),t})(e),t);else if(K.isHeaders(e))for(const[t,r]of e.entries())a(r,t,s);else null!=e&&a(t,e,s);return this}get(e,t){if(e=we(e)){const s=K.findKey(this,e);if(s){const e=this[s];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(e);)t[r[1]]=r[2];return t}(e);if(K.isFunction(t))return t.call(this,e,s);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const s=K.findKey(this,e);return!(!s||void 0===this[s]||t&&!qe(0,this[s],s,t))}return!1}delete(e,t){const s=this;let r=!1;function a(e){if(e=we(e)){const a=K.findKey(s,e);!a||t&&!qe(0,s[a],a,t)||(delete s[a],r=!0)}}return K.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let s=t.length,r=!1;for(;s--;){const a=t[s];e&&!qe(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,s={};return K.forEach(this,((r,a)=>{const n=K.findKey(s,a);if(n)return t[n]=be(r),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,s)=>t.toUpperCase()+s))}(a):String(a).trim();o!==a&&delete t[a],t[o]=be(r),s[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,((s,r)=>{null!=s&&!1!==s&&(t[r]=e&&K.isArray(s)?s.join(", "):s)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach((e=>s.set(e))),s}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,s=this.prototype;function r(e){const r=we(e);t[r]||(function(e,t){const s=K.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+s,{value:function(e,s,a){return this[r].call(this,t,e,s,a)},configurable:!0})}))}(s,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}}xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(xe.prototype,(({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[s]=e}}})),K.freezeMethods(xe);var Se=xe;function Ce(e,t){const s=this||He,r=t||s,a=Se.from(r.headers);let n=r.data;return K.forEach(e,(function(e){n=e.call(s,n,a.normalize(),t?t.status:void 0)})),a.normalize(),n}function Oe(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,s){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,s),this.name="CanceledError"}function ke(e,t,s){const r=s.config.validateStatus;s.status&&r&&!r(s.status)?t(new J("Request failed with status code "+s.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s)):e(s)}K.inherits(Pe,J,{__CANCEL__:!0});const Re=(e,t,s=3)=>{let r=0;const a=function(e,t){e=e||10;const s=new Array(e),r=new Array(e);let a,n=0,o=0;return t=void 0!==t?t:1e3,function(i){const c=Date.now(),u=r[o];a||(a=c),s[n]=i,r[n]=c;let d=o,l=0;for(;d!==n;)l+=s[d++],d%=e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-a{a=n,s=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-a;i>=n?o(e,t):(s=e,r||(r=setTimeout((()=>{r=null,o(s)}),n-i)))},()=>s&&o(s)]}((s=>{const n=s.loaded,o=s.lengthComputable?s.total:void 0,i=n-r,c=a(i);r=n,e({loaded:n,total:o,progress:o?n/o:void 0,bytes:i,rate:c||void 0,estimated:c&&o&&n<=o?(o-n)/c:void 0,event:s,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),s)},Ee=(e,t)=>{const s=null!=e;return[r=>t[0]({lengthComputable:s,total:e,loaded:r}),t[1]]},Ie=e=>(...t)=>K.asap((()=>e(...t)));var Ae=fe.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,fe.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,Te=fe.hasStandardBrowserEnv?{write(e,t,s,r,a,n){const o=[e+"="+encodeURIComponent(t)];K.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),K.isString(r)&&o.push("path="+r),K.isString(a)&&o.push("domain="+a),!0===n&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Se?{...e}:e;function Ue(e,t){t=t||{};const s={};function r(e,t,s,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function a(e,t,s,a){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function n(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(s,a,n){return n in t?r(s,a):n in e?r(void 0,s):void 0}const c={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(e,t,s)=>a(Le(e),Le(t),0,!0)};return K.forEach(Object.keys(Object.assign({},e,t)),(function(r){const n=c[r]||a,o=n(e[r],t[r],r);K.isUndefined(o)&&n!==i||(s[r]=o)})),s}var Ne=e=>{const t=Ue({},e);let s,{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=Se.from(i),t.url=oe(Be(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),K.isFormData(r))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(s=i.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(a&&K.isFunction(a)&&(a=a(t)),a||!1!==a&&Ae(t.url))){const e=n&&o&&Te.read(o);e&&i.set(n,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,s){const r=Ne(e);let a=r.data;const n=Se.from(r.headers).normalize();let o,i,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:g}=r;function h(){u&&u(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function m(){if(!f)return;const r=Se.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ke((function(e){t(e),h()}),(function(e){s(e),h()}),{data:l&&"text"!==l&&"json"!==l?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f}),f=null}f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout,"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(m)},f.onabort=function(){f&&(s(new J("Request aborted",J.ECONNABORTED,e,f)),f=null)},f.onerror=function(){s(new J("Network Error",J.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),s(new J(t,a.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,f)),f=null},void 0===a&&n.setContentType(null),"setRequestHeader"in f&&K.forEach(n.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),K.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),l&&"json"!==l&&(f.responseType=r.responseType),g&&([c,d]=Re(g,!0),f.addEventListener("progress",c)),p&&f.upload&&([i,u]=Re(p),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(o=t=>{f&&(s(!t||t.type?new Pe(null,e,f):t),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fe.protocols.indexOf(y)?s(new J("Unsupported protocol "+y+":",J.ERR_BAD_REQUEST,e)):f.send(a||null)}))},De=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let s,r=new AbortController;const a=function(e){if(!s){s=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new Pe(t instanceof Error?t.message:t))}};let n=t&&setTimeout((()=>{n=null,a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))}),t);const o=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:i}=r;return i.unsubscribe=()=>K.asap(o),i}};const je=function*(e,t){let s=e.byteLength;if(!t||s{const a=async function*(e,t){for await(const s of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:s}=await t.read();if(e)break;yield s}}finally{await t.cancel()}}(e))yield*je(s,t)}(e,t);let n,o=0,i=e=>{n||(n=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return i(),void e.close();let n=r.byteLength;if(s){let e=o+=n;s(e)}e.enqueue(new Uint8Array(r))}catch(e){throw i(e),e}},cancel:e=>(i(e),a.return())},{highWaterMark:2})},Me="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$e=Me&&"function"==typeof ReadableStream,We=Me&&("function"==typeof TextEncoder?(Ve=new TextEncoder,e=>Ve.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ve;const Ke=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=$e&&Ke((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ge=$e&&Ke((()=>K.isReadableStream(new Response("").body))),Qe={stream:Ge&&(e=>e.body)};var Xe;Me&&(Xe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Qe[e]&&(Qe[e]=K.isFunction(Xe[e])?t=>t[e]():(t,s)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,s)})})));const Ze={http:null,xhr:Fe,fetch:Me&&(async e=>{let{url:t,method:s,data:r,signal:a,cancelToken:n,timeout:o,onDownloadProgress:i,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let g,h=De([a,n&&n.toAbortSignal()],o);const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(c&&Je&&"get"!==s&&"head"!==s&&0!==(m=await(async(e,t)=>{const s=K.toFiniteNumber(e.getContentLength());return null==s?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await We(e)).byteLength:void 0)})(t):s})(d,r))){let e,s=new Request(t,{method:"POST",body:r,duplex:"half"});if(K.isFormData(r)&&(e=s.headers.get("content-type"))&&d.setContentType(e),s.body){const[e,t]=Ee(m,Re(Ie(c)));r=ze(s.body,65536,e,t)}}K.isString(l)||(l=l?"include":"omit");const a="credentials"in Request.prototype;g=new Request(t,{...p,signal:h,method:s.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:a?l:void 0});let n=await fetch(g);const o=Ge&&("stream"===u||"response"===u);if(Ge&&(i||o&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=n[t]}));const t=K.toFiniteNumber(n.headers.get("content-length")),[s,r]=i&&Ee(t,Re(Ie(i),!0))||[];n=new Response(ze(n.body,65536,s,(()=>{r&&r(),f&&f()})),e)}u=u||"text";let y=await Qe[K.findKey(Qe,u)||"text"](n,e);return!o&&f&&f(),await new Promise(((t,s)=>{ke(t,s,{data:y,headers:Se.from(n.headers),status:n.status,statusText:n.statusText,config:e,request:g})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:t.cause||t});throw J.from(t,t&&t.code,e,g)}})};K.forEach(Ze,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ye=e=>`- ${e}`,et=e=>K.isFunction(e)||null===e||!1===e;var tt=e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let s,r;const a={};for(let n=0;n`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function rt(e){return st(e),e.headers=Se.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||He.adapter)(e).then((function(t){return st(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return Oe(t)||(st(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const at={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{at[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}}));const nt={};at.transitional=function(e,t,s){function r(e,t){return"[Axios v1.7.8] Transitional option '"+e+"'"+t+(s?". "+s:"")}return(s,a,n)=>{if(!1===e)throw new J(r(a," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!nt[a]&&(nt[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,a,n)}},at.spelling=function(e){return(t,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,s){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const n=r[a],o=t[n];if(o){const t=e[n],s=void 0===t||o(t,n,e);if(!0!==s)throw new J("option "+n+" must be "+s,J.ERR_BAD_OPTION_VALUE)}else if(!0!==s)throw new J("Unknown option "+n,J.ERR_BAD_OPTION)}},validators:at};const it=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const s=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?s&&!String(e.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+s):e.stack=s}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:s,paramsSerializer:r,headers:a}=t;void 0!==s&&ot.assertOptions(s,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=r&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:ot.assertOptions(r,{encode:it.function,serialize:it.function},!0)),ot.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let n=a&&K.merge(a.common,a[t.method]);a&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Se.concat(n,a);const o=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,l=0;if(!i){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l{if(!s._listeners)return;let t=s._listeners.length;for(;t-- >0;)s._listeners[t](e);s._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{s.subscribe(e),t=e})).then(e);return r.cancel=function(){s.unsubscribe(t)},r},e((function(e,r,a){s.reason||(s.reason=new Pe(e,r,a),t(s.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt((function(t){e=t})),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach((([e,t])=>{pt[t]=e}));var gt=pt;const ht=function e(t){const s=new ut(t),a=r(ut.prototype.request,s);return K.extend(a,ut.prototype,s,{allOwnKeys:!0}),K.extend(a,s,null,{allOwnKeys:!0}),a.create=function(s){return e(Ue(t,s))},a}(He);ht.Axios=ut,ht.CanceledError=Pe,ht.CancelToken=lt,ht.isCancel=Oe,ht.VERSION="1.7.8",ht.toFormData=te,ht.AxiosError=J,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Ue,ht.AxiosHeaders=Se,ht.formToJSON=e=>me(K.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=gt,ht.default=ht,e.exports=ht},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.5.2","description":"","main":"index.js","scripts":{"test":"jest --coverage","lint":"eslint","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^1.6.4","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","eslint":"^8.57.0","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},t={};function s(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,s),n.exports}s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r=s(675),a=window;for(var n in r)a[n]=r[n];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
\ No newline at end of file
+(()=>{var e={675:(e,s,r)=>{const{ApplicationConfig:t,ApplicationClient:n}=r(775);e.exports={ApplicationConfig:t,ApplicationClient:n}},331:function(e){var s;"undefined"!=typeof self&&self,s=()=>(()=>{var e={249:function(e,s,r){var t;e.exports=(t=t||function(e){var s;if("undefined"!=typeof window&&window.crypto&&(s=window.crypto),"undefined"!=typeof self&&self.crypto&&(s=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(s=globalThis.crypto),!s&&"undefined"!=typeof window&&window.msCrypto&&(s=window.msCrypto),!s&&void 0!==r.g&&r.g.crypto&&(s=r.g.crypto),!s)try{s=r(480)}catch(e){}var t=function(){if(s){if("function"==typeof s.getRandomValues)try{return s.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof s.randomBytes)try{return s.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(s){var r;return e.prototype=s,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},o=a.Base={extend:function(e){var s=n(this);return e&&s.mixIn(e),s.hasOwnProperty("init")&&this.init!==s.init||(s.init=function(){s.$super.init.apply(this,arguments)}),s.init.prototype=s,s.$super=this,s},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var s in e)e.hasOwnProperty(s)&&(this[s]=e[s]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=o.extend({init:function(e,s){e=this.words=e||[],this.sigBytes=null!=s?s:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var s=this.words,r=e.words,t=this.sigBytes,n=e.sigBytes;if(this.clamp(),t%4)for(var i=0;i>>2]>>>24-i%4*8&255;s[t+i>>>2]|=a<<24-(t+i)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var s=this.words,r=this.sigBytes;s[r>>>2]&=4294967295<<32-r%4*8,s.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var s=[],r=0;r>>2]>>>24-n%4*8&255;t.push((i>>>4).toString(16)),t.push((15&i).toString(16))}return t.join("")},parse:function(e){for(var s=e.length,r=[],t=0;t>>3]|=parseInt(e.substr(t,2),16)<<24-t%8*4;return new l.init(r,s/2)}},u=c.Latin1={stringify:function(e){for(var s=e.words,r=e.sigBytes,t=[],n=0;n>>2]>>>24-n%4*8&255;t.push(String.fromCharCode(i))}return t.join("")},parse:function(e){for(var s=e.length,r=[],t=0;t>>2]|=(255&e.charCodeAt(t))<<24-t%4*8;return new l.init(r,s)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(s){var r,t=this._data,n=t.words,i=t.sigBytes,a=this.blockSize,o=i/(4*a),c=(o=s?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,d=e.min(4*c,i);if(c){for(var u=0;ut&&(s=e.finalize(s)),s.clamp();for(var n=this._oKey=s.clone(),a=this._iKey=s.clone(),o=n.words,l=a.words,c=0;c>>7)^(h<<14|h>>>18)^h>>>3,m=c[g-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[g]=f+c[g-7]+y+c[g-16]}var H=t&n^t&i^n&i,w=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),v=p+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&d^~o&u)+l[g]+c[g];p=u,u=d,d=o,o=a+v|0,a=i,i=n,n=t,t=v+(w+H)|0}r[0]=r[0]+t|0,r[1]=r[1]+n|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0,r[5]=r[5]+d|0,r[6]=r[6]+u|0,r[7]=r[7]+p|0},_doFinalize:function(){var s=this._data,r=s.words,t=8*this._nDataBytes,n=8*s.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(t/4294967296),r[15+(n+64>>>9<<4)]=t,s.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});s.SHA256=i._createHelper(d),s.HmacSHA256=i._createHmacHelper(d)}(Math),t.SHA256)},335:e=>{"use strict";function s(e,s){return Object.prototype.hasOwnProperty.call(e,s)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var d=0;d=0?(u=f.substr(0,m),p=f.substr(m+1)):(u=f,p=""),g=decodeURIComponent(u),h=decodeURIComponent(p),s(a,g)?r(a[g])?a[g].push(h):a[g]=[a[g],h]:a[g]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var s=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,o){return i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?t(n(e),(function(n){var o=encodeURIComponent(s(n))+a;return r(e[n])?t(e[n],(function(e){return o+encodeURIComponent(s(e))})).join(i):o+encodeURIComponent(s(e[n]))})).join(i):o?encodeURIComponent(s(o))+a+encodeURIComponent(s(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function t(e,s){if(e.map)return e.map(s);for(var r=[],t=0;t{"use strict";s.decode=s.parse=r(335),s.encode=s.stringify=r(795)},832:function(e,s,r){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var n=t(r(735)),i=r(601),a=r(593),o=function(){function e(e,s){if(!s)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=s,this.request=e;var r=this.request.headers=this.request.headers||{};!this.request.method&&this.request.body&&(this.request.method="POST"),r.Host||r.host||(r.Host=this.request.host,this.request.port&&(r.Host+=":"+this.request.port)),this.request.host||(this.request.host=r.Host||r.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,s=this.request,r=s.headers;s.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(s.doNotModifyHeaders||(r["x-fp-date"]?this.datetime=r["x-fp-date"]||r["x-fp-date"]:r["x-fp-date"]=this.getDateTime()),delete r["x-fp-signature"],delete r["X-Fp-Signature"])},e.prototype.sign=function(){return this.request.signQuery=!1,this.parsedPath||this.prepareRequest(),this.request.headers["x-fp-signature"]=this.signature(),{"x-fp-signature":this.request.headers["x-fp-signature"],"x-fp-date":this.request.headers["x-fp-date"]}},e.prototype.signQuery=function(){return this.request.signQuery=!0,this.parsedPath||this.prepareRequest(),this.parsedPath.query["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),{"x-fp-signature":this.parsedPath.query["x-fp-signature"],"x-fp-date":this.parsedPath.query["x-fp-date"]}},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,s=new Date(e.Date||e.date||new Date);this.datetime=s.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,a.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,a.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,s=this.parsedPath.query,r=(this.request.headers,""),t=this.request.doNotEncodePath,n=(0,a.hash)(this.request.body||"","hex");if(s){var i=Object.keys(s).reduce((function(e,r){return r?(e[(0,a.encodeRfc3986Full)(r)]=(Array.isArray(s[r]),s[r]),e):e}),{}),o=[];Object.keys(i).sort().forEach((function(e){Array.isArray(i[e])?i[e].map(a.encodeRfc3986Full).sort().forEach((function(s){o.push(e+"="+s)})):o.push(e+"="+(0,a.encodeRfc3986Full)(i[e]))})),r=o.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,s){return".."===s?e.pop():"."!==s&&(t&&(s=decodeURIComponent(s.replace(/\+/g," "))),e.push((0,a.encodeRfc3986Full)(s))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,r,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==i.HEADERS_TO_IGNORE[e.toLowerCase()]){var s=!1;for(var r in i.HEADERS_TO_INCLUDE)s=s||new RegExp(i.HEADERS_TO_INCLUDE[r],"ig").test(e);return s}return!1})).sort((function(e,s){return e.toLowerCase()=0&&(delete(r=n.default.parse(e.slice(s+1)))["x-fp-signature"],delete r["X-Fp-Signature"],e=e.slice(0,s)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:r}},e.prototype.formatPath=function(){var e=this.parsedPath.path,s=this.parsedPath.query;return s?(null!=s[""]&&delete s[""],e+"?"+(0,a.encodeRfc3986)(n.default.stringify(s))):e},e}();s.default=o},601:(e,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.HEADERS_TO_INCLUDE=s.HEADERS_TO_IGNORE=void 0,s.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},s.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,s,r){"use strict";var t=this&&this.__assign||function(){return t=Object.assign||function(e){for(var s,r=1,t=arguments.length;r{}},s={};function r(t){var n=s[t];if(void 0!==n)return n.exports;var i=s[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(607)})(),e.exports=s()},729:e=>{"use strict";const s=/[\p{Lu}]/u,r=/[\p{Ll}]/u,t=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,i=/[_.\- ]+/,a=new RegExp("^"+i.source),o=new RegExp(i.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const i=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),c=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);return 1===e.length?n.pascalCase?c(e):i(e):(e!==i(e)&&(e=((e,t,n)=>{let i=!1,a=!1,o=!1;for(let l=0;l(t.lastIndex=0,e.replace(t,(e=>s(e)))))(e,i):i(e),n.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,s)=>(o.lastIndex=0,l.lastIndex=0,e.replace(o,((e,r)=>s(r))).replace(l,(e=>s(e)))))(e,c))};e.exports=c,e.exports.default=c},454:e=>{"use strict";var s="%[a-f0-9]{2}",r=new RegExp("("+s+")|([^%]+?)","gi"),t=new RegExp("("+s+")+","gi");function n(e,s){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;s=s||1;var r=e.slice(0,s),t=e.slice(s);return Array.prototype.concat.call([],n(r),n(t))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var s=e.match(r)||[],t=1;t{"use strict";e.exports=function(e,s){for(var r={},t=Object.keys(e),n=Array.isArray(s),i=0;i=0&&s<=u.levels.SILENT)return s;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=r||d,u.getLevel=function(){return null!=c?c:null!=o?o:a},u.setLevel=function(e,r){return c=h(e),!1!==r&&function(e){var r=(t[e]||"silent").toUpperCase();if(typeof window!==s&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),l.call(u)},u.setDefaultLevel=function(e){o=h(e),g()||u.setLevel(e,!1)},u.resetLevel=function(){c=null,function(){if(typeof window!==s&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(u)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)},u.rebuild=function(){if(i!==u&&(a=h(i.getLevel())),l.call(u),i===u)for(var e in n)n[e].rebuild()},a=h(i?i.getLevel():"WARN");var f=g();null!=f&&(c=h(f)),l.call(u)}(i=new u).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var s=n[e];return s||(s=n[e]=new u(e,i.methodFactory)),s};var p=typeof window!==s?window.log:void 0;return i.noConflict=function(){return typeof window!==s&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return n},i.default=i,i},void 0===(n=t.call(s,r,s,e))||(e.exports=n)}()},663:(e,s,r)=>{"use strict";const t=r(280),n=r(454),i=r(528),a=r(55),o=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,s){return s.encode?s.strict?t(e):encodeURIComponent(e):e}function d(e,s){return s.decode?n(e):e}function u(e){return Array.isArray(e)?e.sort():"object"==typeof e?u(Object.keys(e)).sort(((e,s)=>Number(e)-Number(s))).map((s=>e[s])):e}function p(e){const s=e.indexOf("#");return-1!==s&&(e=e.slice(0,s)),e}function g(e){const s=(e=p(e)).indexOf("?");return-1===s?"":e.slice(s+1)}function h(e,s){return s.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!s.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,s){l((s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s)).arrayFormatSeparator);const r=function(e){let s;switch(e.arrayFormat){case"index":return(e,r,t)=>{s=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),s?(void 0===t[e]&&(t[e]={}),t[e][s[1]]=r):t[e]=r};case"bracket":return(e,r,t)=>{s=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),s?void 0!==t[e]?t[e]=[].concat(t[e],r):t[e]=[r]:t[e]=r};case"colon-list-separator":return(e,r,t)=>{s=/(:list)$/.exec(e),e=e.replace(/:list$/,""),s?void 0!==t[e]?t[e]=[].concat(t[e],r):t[e]=[r]:t[e]=r};case"comma":case"separator":return(s,r,t)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!n&&d(r,e).includes(e.arrayFormatSeparator);r=i?d(r,e):r;const a=n||i?r.split(e.arrayFormatSeparator).map((s=>d(s,e))):null===r?r:d(r,e);t[s]=a};case"bracket-separator":return(s,r,t)=>{const n=/(\[\])$/.test(s);if(s=s.replace(/\[\]$/,""),!n)return void(t[s]=r?d(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((s=>d(s,e)));void 0!==t[s]?t[s]=[].concat(t[s],i):t[s]=i};default:return(e,s,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],s):r[e]=s}}}(s),t=Object.create(null);if("string"!=typeof e)return t;if(!(e=e.trim().replace(/^[?#&]/,"")))return t;for(const n of e.split("&")){if(""===n)continue;let[e,a]=i(s.decode?n.replace(/\+/g," "):n,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(s.arrayFormat)?a:d(a,s),r(d(e,s),a,t)}for(const e of Object.keys(t)){const r=t[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=h(r[e],s);else t[e]=h(r,s)}return!1===s.sort?t:(!0===s.sort?Object.keys(t).sort():Object.keys(t).sort(s.sort)).reduce(((e,s)=>{const r=t[s];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[s]=u(r):e[s]=r,e}),Object.create(null))}s.extract=g,s.parse=f,s.stringify=(e,s)=>{if(!e)return"";l((s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s)).arrayFormatSeparator);const r=r=>s.skipNull&&null==e[r]||s.skipEmptyString&&""===e[r],t=function(e){switch(e.arrayFormat){case"index":return s=>(r,t)=>{const n=r.length;return void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?r:null===t?[...r,[c(s,e),"[",n,"]"].join("")]:[...r,[c(s,e),"[",c(n,e),"]=",c(t,e)].join("")]};case"bracket":return s=>(r,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?r:null===t?[...r,[c(s,e),"[]"].join("")]:[...r,[c(s,e),"[]=",c(t,e)].join("")];case"colon-list-separator":return s=>(r,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?r:null===t?[...r,[c(s,e),":list="].join("")]:[...r,[c(s,e),":list=",c(t,e)].join("")];case"comma":case"separator":case"bracket-separator":{const s="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:(n=null===n?"":n,0===t.length?[[c(r,e),s,c(n,e)].join("")]:[[t,c(n,e)].join(e.arrayFormatSeparator)])}default:return s=>(r,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?r:null===t?[...r,c(s,e)]:[...r,[c(s,e),"=",c(t,e)].join("")]}}(s),n={};for(const s of Object.keys(e))r(s)||(n[s]=e[s]);const i=Object.keys(n);return!1!==s.sort&&i.sort(s.sort),i.map((r=>{const n=e[r];return void 0===n?"":null===n?c(r,s):Array.isArray(n)?0===n.length&&"bracket-separator"===s.arrayFormat?c(r,s)+"[]":n.reduce(t(r),[]).join("&"):c(r,s)+"="+c(n,s)})).filter((e=>e.length>0)).join("&")},s.parseUrl=(e,s)=>{s=Object.assign({decode:!0},s);const[r,t]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:f(g(e),s)},s&&s.parseFragmentIdentifier&&t?{fragmentIdentifier:d(t,s)}:{})},s.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[o]:!0},r);const t=p(e.url).split("?")[0]||"",n=s.extract(e.url),i=s.parse(n,{sort:!1}),a=Object.assign(i,e.query);let l=s.stringify(a,r);l&&(l=`?${l}`);let d=function(e){let s="";const r=e.indexOf("#");return-1!==r&&(s=e.slice(r)),s}(e.url);return e.fragmentIdentifier&&(d=`#${r[o]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${t}${l}${d}`},s.pick=(e,r,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[o]:!1},t);const{url:n,query:i,fragmentIdentifier:l}=s.parseUrl(e,t);return s.stringifyUrl({url:n,query:a(i,r),fragmentIdentifier:l},t)},s.exclude=(e,r,t)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,s)=>!r(e,s);return s.pick(e,n,t)}},528:e=>{"use strict";e.exports=(e,s)=>{if("string"!=typeof e||"string"!=typeof s)throw new TypeError("Expected the arguments to be of type `string`");if(""===s)return[e];const r=e.indexOf(s);return-1===r?[e]:[e.slice(0,r),e.slice(r+s.length)]}},280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},534:(e,s,r)=>{const{fdkAxios:t}=r(128),{convertStringToBase64:n}=r(879);e.exports=class{static execute(e,s,r,i,a,o,l){let c={Authorization:"Bearer "+n(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(c={...c,cookie:e.cookie}),e.locationDetails&&(c={...c,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(c={...c,"x-currency-code":e.currencyCode});const d=e.extraHeaders.reduce(((e,s)=>({...e,...s})),{});let u={method:s,url:r,params:i,data:a,headers:{...c,...d,...o},responseHeaders:l.responseHeaders};return t.request(u)}}},418:(e,s,r)=>{const t=r(869),n=r(99),i=r(727),a=r(979),o=r(307),l=r(507),c=r(259),d=r(43),u=r(133),p=r(469),g=r(611),h=r(603),f=r(715),m=r(651),y=r(803),H=r(363),w=r(567),{FDKClientValidationError:v}=r(235),{Logger:q}=r(572),{convertStringToBase64:_}=r(879),{execute:b}=r(534);e.exports=class{constructor(e){this.config=e,this.cart=new t(e),this.catalog=new n(e),this.common=new i(e),this.communication=new a(e),this.configuration=new o(e),this.content=new l(e),this.fileStorage=new c(e),this.finance=new d(e),this.lead=new u(e),this.logistic=new p(e),this.order=new g(e),this.payment=new h(e),this.rewards=new f(e),this.share=new m(e),this.theme=new y(e),this.user=new H(e),this.webhook=new w(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e,s=!1){this.config.locationDetails=!0===s?e:{...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new v("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new v("Context value should be an object");this.config.extraHeaders.push(e)}async request({method:e,url:s,query:r,body:t,headers:n,responseHeaders:i=!1}){return await b(this.config,e,s,r,t,n,{responseHeaders:i})}}},163:(e,s,r)=>{const{FDKInvalidCredentialError:t}=r(235),{Logger:n,setLoggerLevel:i}=r(572);e.exports=class{constructor(e,s){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.options={strictResponseCheck:!1,...s},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){i(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw n({level:"ERROR",message:"No Application ID Present"}),new t("No Application ID Present");if(!this.applicationToken)throw n({level:"ERROR",message:"No Application Token Present"}),new t("No Application Token Present");if(this.applicationToken.length<5)throw n({level:"ERROR",message:"Invalid Application Token"}),new t("Invalid Application Token");if("boolean"!=typeof this.options.strictResponseCheck)throw n({level:"ERROR",message:"Invalid Application Token"}),n({level:"ERROR",message:"Invalid Value for options.strictResponseCheck, provide boolean value"}),new t("Invalid Value for options.strictResponseCheck, provide boolean value")}}},869:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getPromotionPaymentOffers:"/service/application/cart/v1.0/available-payment-offers",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartBreakup:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.addAddress,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async addItems({body:e,i:s,b:r,areaCode:n,buyNow:o,id:l,orderType:c,requestHeaders:d}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){let p=[];if(p.length){const e=new Error;return e.message="Missing required field",e.details=p,Promise.reject(new t(e))}const g={};g.i=s,g.b=r,g.area_code=n,g.buy_now=o,g.id=l,g.order_type=c;const h=await i.execute(this._conf,"post",a({url:this._urls.addItems,params:{}}),g,e,{...d},{responseHeaders:u});let f=h;return u&&(f=h[0]),h}async applyCoupon({body:e,i:s,b:r,p:n,id:o,buyNow:l,cartType:c,requestHeaders:d}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){let p=[];if(p.length){const e=new Error;return e.message="Missing required field",e.details=p,Promise.reject(new t(e))}const g={};g.i=s,g.b=r,g.p=n,g.id=o,g.buy_now=l,g.cart_type=c;const h=await i.execute(this._conf,"post",a({url:this._urls.applyCoupon,params:{}}),g,e,{...d},{responseHeaders:u});let f=h;return u&&(f=h[0]),h}async applyRewardPoints({body:e,id:s,i:r,b:n,buyNow:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.id=s,u.i=r,u.b=n,u.buy_now=o;const p=await i.execute(this._conf,"post",a({url:this._urls.applyRewardPoints,params:{}}),u,e,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async checkoutCart({body:e,buyNow:s,cartType:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.buy_now=s,c.cart_type=r;const d=await i.execute(this._conf,"post",a({url:this._urls.checkoutCart,params:{}}),c,e,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async checkoutCartV2({body:e,buyNow:s,cartType:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.buy_now=s,c.cart_type=r;const d=await i.execute(this._conf,"post",a({url:this._urls.checkoutCartV2,params:{}}),c,e,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async deleteCart({id:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.id=e;const l=await i.execute(this._conf,"put",a({url:this._urls.deleteCart,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getAddressById({id:e,cartId:s,buyNow:r,mobileNo:n,checkoutMode:o,tags:l,isDefault:c,requestHeaders:d}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){let p=[];if(e||p.push({message:"The 'id' field is required.",path:["id"]}),p.length){const e=new Error;return e.message="Missing required field",e.details=p,Promise.reject(new t(e))}const g={};g.cart_id=s,g.buy_now=r,g.mobile_no=n,g.checkout_mode=o,g.tags=l,g.is_default=c;const h=await i.execute(this._conf,"get",a({url:this._urls.getAddressById,params:{id:e}}),g,void 0,{...d},{responseHeaders:u});let f=h;return u&&(f=h[0]),h}async getAddresses({cartId:e,buyNow:s,mobileNo:r,checkoutMode:n,tags:o,isDefault:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.cart_id=e,p.buy_now=s,p.mobile_no=r,p.checkout_mode=n,p.tags=o,p.is_default=l;const g=await i.execute(this._conf,"get",a({url:this._urls.getAddresses,params:{}}),p,void 0,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async getBulkDiscountOffers({itemId:e,articleId:s,uid:r,slug:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.item_id=e,d.article_id=s,d.uid=r,d.slug=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getBulkDiscountOffers,params:{}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}async getCart({id:e,i:s,b:r,c:n,assignCardId:o,areaCode:l,buyNow:c,orderType:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.id=e,h.i=s,h.b=r,h.c=n,h.assign_card_id=o,h.area_code=l,h.buy_now=c,h.order_type=d;const f=await i.execute(this._conf,"get",a({url:this._urls.getCart,params:{}}),h,void 0,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}async getCartLastModified({id:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.id=e;const l=await i.execute(this._conf,"head",a({url:this._urls.getCartLastModified,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getCartShareLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getCartShareLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCartSharedItems({token:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'token' field is required.",path:["token"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCoupons({id:e,buyNow:s,slug:r,storeId:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.id=e,d.buy_now=s,d.slug=r,d.store_id=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getCoupons,params:{}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}async getItemCount({id:e,buyNow:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.id=e,l.buy_now=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getItemCount,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getLadderOffers({slug:e,storeId:s,promotionId:r,pageSize:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(e||c.push({message:"The 'slug' field is required.",path:["slug"]}),c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.slug=e,d.store_id=s,d.promotion_id=r,d.page_size=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getLadderOffers,params:{}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}async getPromotionOffers({slug:e,pageSize:s,promotionGroup:r,storeId:n,cartType:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.slug=e,u.page_size=s,u.promotion_group=r,u.store_id=n,u.cart_type=o;const p=await i.execute(this._conf,"get",a({url:this._urls.getPromotionOffers,params:{}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async getPromotionPaymentOffers({id:e,uid:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.id=e,l.uid=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getPromotionPaymentOffers,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getShipments({p:e,id:s,buyNow:r,addressId:n,areaCode:o,orderType:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.p=e,p.id=s,p.buy_now=r,p.address_id=n,p.area_code=o,p.order_type=l;const g=await i.execute(this._conf,"get",a({url:this._urls.getShipments,params:{}}),p,void 0,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async removeAddress({id:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'id' field is required.",path:["id"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"delete",a({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async removeCoupon({id:e,buyNow:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.id=e,l.buy_now=s;const c=await i.execute(this._conf,"delete",a({url:this._urls.removeCoupon,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async selectAddress({body:e,cartId:s,buyNow:r,i:n,b:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.cart_id=s,u.buy_now=r,u.i=n,u.b=o;const p=await i.execute(this._conf,"post",a({url:this._urls.selectAddress,params:{}}),u,e,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async selectPaymentMode({body:e,id:s,buyNow:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.id=s,c.buy_now=r;const d=await i.execute(this._conf,"put",a({url:this._urls.selectPaymentMode,params:{}}),c,e,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async updateAddress({id:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'id' field is required.",path:["id"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"put",a({url:this._urls.updateAddress,params:{id:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async updateCart({body:e,id:s,i:r,b:n,areaCode:o,buyNow:l,cartType:c,orderType:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.id=s,h.i=r,h.b=n,h.area_code=o,h.buy_now=l,h.cart_type=c,h.order_type=d;const f=await i.execute(this._conf,"put",a({url:this._urls.updateCart,params:{}}),h,e,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}async updateCartBreakup({body:e,id:s,i:r,b:n,buyNow:o,cartType:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.id=s,p.i=r,p.b=n,p.buy_now=o,p.cart_type=l;const g=await i.execute(this._conf,"patch",a({url:this._urls.updateCartBreakup,params:{}}),p,e,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async updateCartMeta({body:e,id:s,buyNow:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.id=s,c.buy_now=r;const d=await i.execute(this._conf,"put",a({url:this._urls.updateCartMeta,params:{}}),c,e,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async updateCartWithSharedItems({token:e,action:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'token' field is required.",path:["token"]}),s||o.push({message:"The 'action' field is required.",path:["action"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.updateCartWithSharedItems,params:{token:e,action:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async validateCouponForPayment({id:e,buyNow:s,addressId:r,paymentMode:n,paymentIdentifier:o,aggregatorName:l,merchantCode:c,iin:d,network:u,type:p,cardId:g,cartType:h,requestHeaders:f}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){let y=[];if(y.length){const e=new Error;return e.message="Missing required field",e.details=y,Promise.reject(new t(e))}const H={};H.id=e,H.buy_now=s,H.address_id=r,H.payment_mode=n,H.payment_identifier=o,H.aggregator_name=l,H.merchant_code=c,H.iin=d,H.network=u,H.type=p,H.card_id=g,H.cart_type=h;const w=await i.execute(this._conf,"get",a({url:this._urls.validateCouponForPayment,params:{}}),H,void 0,{...f},{responseHeaders:m});let v=w;return m&&(v=w[0]),w}}},99:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205),o=r(121);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'collectionType' field is required.",path:["collectionType"]}),s||o.push({message:"The 'collectionId' field is required.",path:["collectionId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.followById,params:{collectionType:e,collectionId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getBrandDetailBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getBrands({department:e,pageNo:s,pageSize:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.department=e,c.page_no=s,c.page_size=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getBrands,params:{}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}getBrandsPaginator({department:e,pageSize:s}={}){const r=new o;return r.setCallback((async()=>{r.nextId;const t=r.pageNo,n=await this.getBrands({department:e,pageNo:t,pageSize:s});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getCategories({department:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.department=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getCategories,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getCategoryDetailBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCollectionDetailBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCollectionItemsBySlug({slug:e,f:s,q:r,filters:n,sortOn:o,pageId:l,pageSize:c,pageNo:d,pageType:u,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){let h=[];if(e||h.push({message:"The 'slug' field is required.",path:["slug"]}),h.length){const e=new Error;return e.message="Missing required field",e.details=h,Promise.reject(new t(e))}const f={};f.f=s,f.q=r,f.filters=n,f.sort_on=o,f.page_id=l,f.page_size=c,f.page_no=d,f.page_type=u;const m=await i.execute(this._conf,"get",a({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),f,void 0,{...p},{responseHeaders:g});let y=m;return g&&(y=m[0]),m}getCollectionItemsBySlugPaginator({slug:e,f:s,q:r,filters:t,sortOn:n,pageSize:i}={}){const a=new o;return a.setCallback((async()=>{const o=a.nextId,l=a.pageNo,c=await this.getCollectionItemsBySlug({slug:e,f:s,q:r,filters:t,sortOn:n,pageId:o,pageSize:i,pageNo:l,pageType:"cursor"});return a.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),a}async getCollections({pageNo:e,pageSize:s,tag:r,q:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.page_no=e,d.page_size=s,d.tag=r,d.q=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getCollections,params:{}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}getCollectionsPaginator({pageSize:e,tag:s,q:r}={}){const t=new o;return t.setCallback((async()=>{t.nextId;const n=t.pageNo,i=await this.getCollections({pageNo:n,pageSize:e,tag:s,q:r});return t.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),t}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFollowIds({collectionType:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.collection_type=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getFollowIds,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getFollowedListing({collectionType:e,pageId:s,pageSize:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'collectionType' field is required.",path:["collectionType"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.page_id=s,c.page_size=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getFollowedListing,params:{collectionType:e}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}getFollowedListingPaginator({collectionType:e,pageSize:s}={}){const r=new o;return r.setCallback((async()=>{const t=r.nextId,n=(r.pageNo,await this.getFollowedListing({collectionType:e,pageId:t,pageSize:s}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getFollowerCountById({collectionType:e,collectionId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'collectionType' field is required.",path:["collectionType"]}),s||o.push({message:"The 'collectionId' field is required.",path:["collectionId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"get",a({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getHomeProducts({sortOn:e,pageId:s,pageSize:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.sort_on=e,c.page_id=s,c.page_size=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getHomeProducts,params:{}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}getHomeProductsPaginator({sortOn:e,pageSize:s}={}){const r=new o;return r.setCallback((async()=>{const t=r.nextId,n=(r.pageNo,await this.getHomeProducts({sortOn:e,pageId:t,pageSize:s}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getInStockLocations({pageNo:e,pageSize:s,q:r,city:n,range:o,latitude:l,longitude:c,requestHeaders:d}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){let p=[];if(p.length){const e=new Error;return e.message="Missing required field",e.details=p,Promise.reject(new t(e))}const g={};g.page_no=e,g.page_size=s,g.q=r,g.city=n,g.range=o,g.latitude=l,g.longitude=c;const h=await i.execute(this._conf,"get",a({url:this._urls.getInStockLocations,params:{}}),g,void 0,{...d},{responseHeaders:u});let f=h;return u&&(f=h[0]),h}getInStockLocationsPaginator({pageSize:e,q:s,city:r,range:t,latitude:n,longitude:i}={}){const a=new o;return a.setCallback((async()=>{a.nextId;const o=a.pageNo,l=await this.getInStockLocations({pageNo:o,pageSize:e,q:s,city:r,range:t,latitude:n,longitude:i});return a.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),a}async getLocationDetailsById({locationId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'locationId' field is required.",path:["locationId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getProductBundlesBySlug({slug:e,id:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.slug=e,l.id=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getProductBundlesBySlug,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getProductComparisonBySlugs({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.slug=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getProductComparisonBySlugs,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getProductDetailBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getProductPriceBySlug({slug:e,size:s,storeId:r,moq:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(e||c.push({message:"The 'slug' field is required.",path:["slug"]}),s||c.push({message:"The 'size' field is required.",path:["size"]}),c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.store_id=r,d.moq=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getProductPriceBySlug,params:{slug:e,size:s}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}async getProductSellersBySlug({slug:e,size:s,strategy:r,pageNo:n,pageSize:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(e||d.push({message:"The 'slug' field is required.",path:["slug"]}),s||d.push({message:"The 'size' field is required.",path:["size"]}),d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.strategy=r,u.page_no=n,u.page_size=o;const p=await i.execute(this._conf,"get",a({url:this._urls.getProductSellersBySlug,params:{slug:e,size:s}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}getProductSellersBySlugPaginator({slug:e,size:s,strategy:r,pageSize:t}={}){const n=new o;return n.setCallback((async()=>{n.nextId;const i=n.pageNo,a=await this.getProductSellersBySlug({slug:e,size:s,strategy:r,pageNo:i,pageSize:t});return n.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),n}async getProductSizesBySlug({slug:e,storeId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'slug' field is required.",path:["slug"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.store_id=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getProductSizesBySlug,params:{slug:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getProductStockByIds({itemId:e,alu:s,skuCode:r,ean:n,upc:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.item_id=e,u.alu=s,u.sku_code=r,u.ean=n,u.upc=o;const p=await i.execute(this._conf,"get",a({url:this._urls.getProductStockByIds,params:{}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async getProductStockForTimeByIds({timestamp:e,pageSize:s,pageId:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'timestamp' field is required.",path:["timestamp"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.timestamp=e,c.page_size=s,c.page_id=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getProductStockForTimeByIds,params:{}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:s}={}){const r=new o;return r.setCallback((async()=>{const t=r.nextId,n=(r.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:s,pageId:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getProductVariantsBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getProducts({q:e,f:s,filters:r,sortOn:n,pageId:o,pageSize:l,pageNo:c,pageType:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.q=e,h.f=s,h.filters=r,h.sort_on=n,h.page_id=o,h.page_size=l,h.page_no=c,h.page_type=d;const f=await i.execute(this._conf,"get",a({url:this._urls.getProducts,params:{}}),h,void 0,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}getProductsPaginator({q:e,f:s,filters:r,sortOn:t,pageSize:n}={}){const i=new o;return i.setCallback((async()=>{const a=i.nextId,o=i.pageNo,l=await this.getProducts({q:e,f:s,filters:r,sortOn:t,pageId:a,pageSize:n,pageNo:o,pageType:"cursor"});return i.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),i}async getSearchResults({q:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'q' field is required.",path:["q"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.q=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getSearchResults,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getStores({pageNo:e,pageSize:s,q:r,city:n,range:o,latitude:l,longitude:c,tags:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.page_no=e,h.page_size=s,h.q=r,h.city=n,h.range=o,h.latitude=l,h.longitude=c,h.tags=d;const f=await i.execute(this._conf,"get",a({url:this._urls.getStores,params:{}}),h,void 0,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}getStoresPaginator({pageSize:e,q:s,city:r,range:t,latitude:n,longitude:i,tags:a}={}){const l=new o;return l.setCallback((async()=>{l.nextId;const o=l.pageNo,c=await this.getStores({pageNo:o,pageSize:e,q:s,city:r,range:t,latitude:n,longitude:i,tags:a});return l.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),l}async unfollowById({collectionType:e,collectionId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'collectionType' field is required.",path:["collectionType"]}),s||o.push({message:"The 'collectionId' field is required.",path:["collectionId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"delete",a({url:this._urls.unfollowById,params:{collectionType:e,collectionId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}}},727:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.location_type=e,l.id=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getLocations,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async searchApplication({authorization:e,query:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.query=s;const c={};c.authorization=e;const d=await i.execute(this._conf,"get",a({url:this._urls.searchApplication,params:{}}),l,void 0,{...c,...r},{responseHeaders:n});let u=d;return n&&(u=d[0]),d}}},979:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async upsertAppPushtoken({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async upsertCommunicationConsent({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}}},307:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getAppStaffList({pageNo:e,pageSize:s,orderIncent:r,orderingStore:n,user:o,userName:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.page_no=e,p.page_size=s,p.order_incent=r,p.ordering_store=n,p.user=o,p.user_name=l;const g=await i.execute(this._conf,"get",a({url:this._urls.getAppStaffList,params:{}}),p,void 0,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async getAppStaffs({orderIncent:e,orderingStore:s,user:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.order_incent=e,c.ordering_store=s,c.user=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getAppStaffs,params:{}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCurrencyById({id:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'id' field is required.",path:["id"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOrderingStoreCookie({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getOrderingStores({pageNo:e,pageSize:s,q:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.page_no=e,c.page_size=s,c.q=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getOrderingStores,params:{}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getStoreDetailById({storeId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'storeId' field is required.",path:["storeId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"delete",a({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},507:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs",getCustomFieldsByResourceId:"/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",getCustomObjectBySlug:"/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages",getSEOConfiguration:"/service/application/content/v1.0/seo",getSEOMarkupSchemas:"/service/application/content/v1.0/seo/schema",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getBlog({slug:e,rootId:s,preview:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'slug' field is required.",path:["slug"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c={};c.root_id=s,c.preview=r;const d=await i.execute(this._conf,"get",a({url:this._urls.getBlog,params:{slug:e}}),c,void 0,{...n},{responseHeaders:o});let u=d;return o&&(u=d[0]),d}async getBlogs({pageNo:e,pageSize:s,tags:r,search:n,requestHeaders:o}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){let c=[];if(c.length){const e=new Error;return e.message="Missing required field",e.details=c,Promise.reject(new t(e))}const d={};d.page_no=e,d.page_size=s,d.tags=r,d.search=n;const u=await i.execute(this._conf,"get",a({url:this._urls.getBlogs,params:{}}),d,void 0,{...o},{responseHeaders:l});let p=u;return l&&(p=u[0]),u}async getCustomFieldsByResourceId({resource:e,resourceSlug:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'resource' field is required.",path:["resource"]}),s||o.push({message:"The 'resourceSlug' field is required.",path:["resourceSlug"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"get",a({url:this._urls.getCustomFieldsByResourceId,params:{resource:e,resourceSlug:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getCustomObjectBySlug({definitionSlug:e,slug:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'definitionSlug' field is required.",path:["definitionSlug"]}),s||o.push({message:"The 'slug' field is required.",path:["slug"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"get",a({url:this._urls.getCustomObjectBySlug,params:{definitionSlug:e,slug:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFaqBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFaqCategoryBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getFaqsByCategorySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getNavigations({pageNo:e,pageSize:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.page_no=e,l.page_size=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getNavigations,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getPage({slug:e,rootId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'slug' field is required.",path:["slug"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.root_id=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getPage,params:{slug:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getPages({pageNo:e,pageSize:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.page_no=e,l.page_size=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getPages,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getSEOMarkupSchemas({pageType:e,active:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.page_type=e,l.active=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getSEOMarkupSchemas,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}}},259:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205),{fdkAxios:o}=(r(121),r(128));class l{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v2.0/namespaces/{namespace}/upload/complete",signUrls:"/service/application/assets/v1.0/sign-urls",startUpload:"/service/application/assets/v2.0/namespaces/{namespace}/upload/start"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'namespace' field is required.",path:["namespace"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.completeUpload,params:{namespace:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async signUrls({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.signUrls,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async startUpload({namespace:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'namespace' field is required.",path:["namespace"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.startUpload,params:{namespace:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}}l.prototype.upload=function({data:e,file_name:s,content_type:r,namespace:t,size:n,tags:i}={}){return new Promise((async(a,l)=>{try{const c=await this.startUpload({namespace:t,body:{file_name:s,content_type:r,size:n,tags:i}});if(c.upload&&c.upload.url){let s={method:"PUT",url:c.upload.url,data:e,headers:{"Content-Type":r},withCredentials:!1};await o.request(s)}else l({message:"Failed to upload file"});delete c.tags,a(await this.completeUpload({namespace:t,body:c}))}catch(e){l(e)}}))},e.exports=l},43:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={customerCreditBalance:"/service/application/finance/v1.0/customer-credit-balance",lockUnlockCreditNote:"/service/application/finance/v1.0/lock-unlock-credit-note"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async customerCreditBalance({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.customerCreditBalance,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async lockUnlockCreditNote({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.lockUnlockCreditNote,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}}},133:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getTicket:"/service/application/lead/v1.0/ticket/{id}",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'id' field is required.",path:["id"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.createHistory,params:{id:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async createTicket({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.createTicket,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCustomForm({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getTicket({id:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'id' field is required.",path:["id"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async submitCustomForm({slug:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'slug' field is required.",path:["slug"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.submitCustomForm,params:{slug:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}}},469:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v2.0/countries",getCountry:"/service/application/logistics/v1.0/countries/{country_iso_code}",getCourierPartners:"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",getDeliveryPromise:"/service/application/logistics/v1.0/delivery-promise",getLocalities:"/service/application/logistics/v1.0/localities/{locality_type}",getLocality:"/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}",getLocations:"/service/application/logistics/v1.0/locations",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeCity:"/service/application/logistics/v1.0/pincode/{pincode}",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",getTatProduct:"/service/application/logistics/v1.0/",validateAddress:"/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCountries({onboarding:e,pageNo:s,pageSize:r,q:n,hierarchy:o,phoneCode:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.onboarding=e,p.page_no=s,p.page_size=r,p.q=n,p.hierarchy=o,p.phone_code=l;const g=await i.execute(this._conf,"get",a({url:this._urls.getCountries,params:{}}),p,void 0,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async getCountry({countryIsoCode:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'countryIsoCode' field is required.",path:["countryIsoCode"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getCountry,params:{countryIsoCode:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getCourierPartners({companyId:e,applicationId:s,body:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'companyId' field is required.",path:["companyId"]}),s||l.push({message:"The 'applicationId' field is required.",path:["applicationId"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c=await i.execute(this._conf,"post",a({url:this._urls.getCourierPartners,params:{companyId:e,applicationId:s}}),{},r,{...n},{responseHeaders:o});let d=c;return o&&(d=c[0]),c}async getDeliveryPromise({pageNo:e,pageSize:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.page_no=e,l.page_size=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getDeliveryPromise,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getLocalities({localityType:e,country:s,state:r,city:n,pageNo:o,pageSize:l,q:c,sector:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(e||g.push({message:"The 'localityType' field is required.",path:["localityType"]}),g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.country=s,h.state=r,h.city=n,h.page_no=o,h.page_size=l,h.q=c,h.sector=d;const f=await i.execute(this._conf,"get",a({url:this._urls.getLocalities,params:{localityType:e}}),h,void 0,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}async getLocality({localityType:e,localityValue:s,country:r,state:n,city:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(e||d.push({message:"The 'localityType' field is required.",path:["localityType"]}),s||d.push({message:"The 'localityValue' field is required.",path:["localityValue"]}),d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.country=r,u.state=n,u.city=o;const p=await i.execute(this._conf,"get",a({url:this._urls.getLocality,params:{localityType:e,localityValue:s}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async getLocations({xApplicationId:e,xApplicationData:s,country:r,state:n,city:o,pincode:l,sector:c,pageNo:d,pageSize:u,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){let h=[];if(e||h.push({message:"The 'xApplicationId' field is required.",path:["xApplicationId"]}),s||h.push({message:"The 'xApplicationData' field is required.",path:["xApplicationData"]}),h.length){const e=new Error;return e.message="Missing required field",e.details=h,Promise.reject(new t(e))}const f={};f["x-application-id"]=e,f["x-application-data"]=s,f.country=r,f.state=n,f.city=o,f.pincode=l,f.sector=c,f.page_no=d,f.page_size=u;const m=await i.execute(this._conf,"get",a({url:this._urls.getLocations,params:{}}),f,void 0,{...p},{responseHeaders:g});let y=m;return g&&(y=m[0]),m}async getOptimalLocations({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getOptimalLocations,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getPincodeCity({pincode:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'pincode' field is required.",path:["pincode"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getPincodeCity,params:{pincode:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getPincodeZones({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getPincodeZones,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getTatProduct({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getTatProduct,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async validateAddress({countryIsoCode:e,templateName:s,body:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'countryIsoCode' field is required.",path:["countryIsoCode"]}),s||l.push({message:"The 'templateName' field is required.",path:["templateName"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c=await i.execute(this._conf,"post",a({url:this._urls.validateAddress,params:{countryIsoCode:e,templateName:s}}),{},r,{...n},{responseHeaders:o});let d=c;return o&&(d=c[0]),c}}},611:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'orderId' field is required.",path:["orderId"]}),s||o.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"get",a({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getOrderById({orderId:e,allowInactive:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'orderId' field is required.",path:["orderId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.allow_inactive=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getOrderById,params:{orderId:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getOrders({status:e,pageNo:s,pageSize:r,fromDate:n,toDate:o,startDate:l,endDate:c,customMeta:d,allowInactive:u,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){let h=[];if(h.length){const e=new Error;return e.message="Missing required field",e.details=h,Promise.reject(new t(e))}const f={};f.status=e,f.page_no=s,f.page_size=r,f.from_date=n,f.to_date=o,f.start_date=l,f.end_date=c,f.custom_meta=d,f.allow_inactive=u;const m=await i.execute(this._conf,"get",a({url:this._urls.getOrders,params:{}}),f,void 0,{...p},{responseHeaders:g});let y=m;return g&&(y=m[0]),m}async getPosOrderById({orderId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'orderId' field is required.",path:["orderId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getShipmentBagReasons({shipmentId:e,bagId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),s||o.push({message:"The 'bagId' field is required.",path:["bagId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"get",a({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async getShipmentById({shipmentId:e,allowInactive:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.allow_inactive=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getShipmentById,params:{shipmentId:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getShipmentReasons({shipmentId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async sendOtpToShipmentCustomer({orderId:e,shipmentId:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'orderId' field is required.",path:["orderId"]}),s||o.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"post",a({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:s}}),{},void 0,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async trackShipment({shipmentId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async updateShipmentStatus({shipmentId:e,body:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l=await i.execute(this._conf,"put",a({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},s,{...r},{responseHeaders:n});let c=l;return n&&(c=l[0]),l}async verifyOtpShipmentCustomer({orderId:e,shipmentId:s,body:r,requestHeaders:n}={requestHeaders:{}},{responseHeaders:o}={responseHeaders:!1}){let l=[];if(e||l.push({message:"The 'orderId' field is required.",path:["orderId"]}),s||l.push({message:"The 'shipmentId' field is required.",path:["shipmentId"]}),l.length){const e=new Error;return e.message="Missing required field",e.details=l,Promise.reject(new t(e))}const c=await i.execute(this._conf,"post",a({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:s}}),{},r,{...n},{responseHeaders:o});let d=c;return o&&(d=c[0]),c}}},603:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",createPaymentOrder:"/service/application/payment/v1.0/payment-orders/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteUserCard:"/service/application/payment/v1.0/card/remove",delinkWallet:"/service/application/payment/v1.0/payment/options/wallet/delink",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",linkWallet:"/service/application/payment/v1.0/payment/options/wallet/verify",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateCustomerAndCreditSummary:"/service/application/payment/v1.0/payment/validate/customer-credits-v2",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet",walletLinkInitiate:"/service/application/payment/v1.0/payment/options/wallet/link"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async addRefundBankAccountUsingOTP({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async attachCardToCustomer({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async cancelPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async cardDetails({cardInfo:e,aggregator:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'cardInfo' field is required.",path:["cardInfo"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.aggregator=s;const c=await i.execute(this._conf,"get",a({url:this._urls.cardDetails,params:{cardInfo:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async checkAndUpdatePaymentStatus({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async checkCredit({aggregator:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.aggregator=e;const l=await i.execute(this._conf,"get",a({url:this._urls.checkCredit,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async createOrderHandlerPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async createPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.createPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async createPaymentOrder({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.createPaymentOrder,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async customerCreditSummary({aggregator:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.aggregator=e;const l=await i.execute(this._conf,"get",a({url:this._urls.customerCreditSummary,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async customerOnboard({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.customerOnboard,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async deleteUserCard({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.deleteUserCard,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async delinkWallet({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.delinkWallet,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async enableOrDisableRefundTransferMode({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"put",a({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getActiveCardAggregator({refresh:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.refresh=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getActiveCardAggregator,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getActiveUserCards({forceRefresh:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.force_refresh=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getActiveUserCards,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getAggregatorsConfig({xApiToken:e,refresh:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.refresh=s;const c={};c["x-api-token"]=e;const d=await i.execute(this._conf,"get",a({url:this._urls.getAggregatorsConfig,params:{}}),l,void 0,{...c,...r},{responseHeaders:n});let u=d;return n&&(u=d[0]),d}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'orderId' field is required.",path:["orderId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.order_id=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getOrderBeneficiariesDetail,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getPaymentLink({paymentLinkId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.payment_link_id=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getPaymentLink,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getPaymentModeRoutes({amount:e,cartId:s,checkoutMode:r,refresh:n,orderId:o,cardReference:l,userDetails:c,displaySplit:d,advancePayment:u,shipmentId:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:h}={responseHeaders:!1}){let f=[];if(e||f.push({message:"The 'amount' field is required.",path:["amount"]}),s||f.push({message:"The 'cartId' field is required.",path:["cartId"]}),f.length){const e=new Error;return e.message="Missing required field",e.details=f,Promise.reject(new t(e))}const m={};m.amount=e,m.cart_id=s,m.checkout_mode=r,m.refresh=n,m.order_id=o,m.card_reference=l,m.user_details=c,m.display_split=d,m.advance_payment=u,m.shipment_id=p;const y=await i.execute(this._conf,"get",a({url:this._urls.getPaymentModeRoutes,params:{}}),m,void 0,{...g},{responseHeaders:h});let H=y;return h&&(H=y[0]),y}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'paymentLinkId' field is required.",path:["paymentLinkId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.payment_link_id=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getPosPaymentModeRoutes({amount:e,cartId:s,pincode:r,orderType:n,checkoutMode:o,refresh:l,cardReference:c,userDetails:d,requestHeaders:u}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){let g=[];if(e||g.push({message:"The 'amount' field is required.",path:["amount"]}),s||g.push({message:"The 'cartId' field is required.",path:["cartId"]}),r||g.push({message:"The 'pincode' field is required.",path:["pincode"]}),n||g.push({message:"The 'orderType' field is required.",path:["orderType"]}),g.length){const e=new Error;return e.message="Missing required field",e.details=g,Promise.reject(new t(e))}const h={};h.amount=e,h.cart_id=s,h.pincode=r,h.checkout_mode=o,h.refresh=l,h.card_reference=c,h.order_type=n,h.user_details=d;const f=await i.execute(this._conf,"get",a({url:this._urls.getPosPaymentModeRoutes,params:{}}),h,void 0,{...u},{responseHeaders:p});let m=f;return p&&(m=f[0]),f}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getUserBeneficiariesDetail({orderId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'orderId' field is required.",path:["orderId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.order_id=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getUserBeneficiariesDetail,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async initialisePayment({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.initialisePayment,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async initialisePaymentPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async linkWallet({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.linkWallet,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async outstandingOrderDetails({aggregator:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.aggregator=e;const l=await i.execute(this._conf,"get",a({url:this._urls.outstandingOrderDetails,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async paidOrderDetails({aggregator:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.aggregator=e;const l=await i.execute(this._conf,"get",a({url:this._urls.paidOrderDetails,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async pollingPaymentLink({paymentLinkId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.payment_link_id=e;const l=await i.execute(this._conf,"get",a({url:this._urls.pollingPaymentLink,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async redirectToAggregator({aggregator:e,source:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'aggregator' field is required.",path:["aggregator"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.source=s,l.aggregator=e;const c=await i.execute(this._conf,"get",a({url:this._urls.redirectToAggregator,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async renderHTML({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.renderHTML,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async resendOrCancelPayment({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async resendPaymentLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.resendPaymentLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async updateDefaultBeneficiary({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async validateCustomerAndCreditSummary({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.validateCustomerAndCreditSummary,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async validateVPA({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.validateVPA,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyAndChargePayment({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyCustomerForPayment({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyIfscCode({ifscCode:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.ifsc_code=e;const l=await i.execute(this._conf,"get",a({url:this._urls.verifyIfscCode,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async walletLinkInitiate({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.walletLinkInitiate,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}}},715:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.catalogueOrder,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getOfferByName({name:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'name' field is required.",path:["name"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getOrderDiscount({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getOrderDiscount,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getUserPointsHistory({pageId:e,pageSize:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.page_id=e,l.page_size=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getUserPointsHistory,params:{}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async redeemReferralCode({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.redeemReferralCode,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}}},651:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.createShortLink,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"post",a({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getCollectionQRCodeBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getOriginalShortLinkByHash({hash:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'hash' field is required.",path:["hash"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getProductQRCodeBySlug({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'slug' field is required.",path:["slug"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getShortLinkByHash({hash:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'hash' field is required.",path:["hash"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getUrlQRCode({url:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'url' field is required.",path:["url"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.url=e;const l=await i.execute(this._conf,"post",a({url:this._urls.getUrlQRCode,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}}},803:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'themeId' field is required.",path:["themeId"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"get",a({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getAppliedTheme({filters:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.filters=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getAppliedTheme,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getPage({themeId:e,pageValue:s,filters:r,sectionPreviewHash:n,company:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(e||d.push({message:"The 'themeId' field is required.",path:["themeId"]}),s||d.push({message:"The 'pageValue' field is required.",path:["pageValue"]}),d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.filters=r,u.section_preview_hash=n,u.company=o;const p=await i.execute(this._conf,"get",a({url:this._urls.getPage,params:{themeId:e,pageValue:s}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async getThemeForPreview({themeId:e,filters:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(e||o.push({message:"The 'themeId' field is required.",path:["themeId"]}),o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.filters=s;const c=await i.execute(this._conf,"get",a({url:this._urls.getThemeForPreview,params:{themeId:e}}),l,void 0,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}}},363:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",getUserAttributes:"/service/application/user/profile/v1.0/user-attributes",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",resetForgotPassword:"/service/application/user/authentication/v1.0/login/password/forgot",sendForgotOTPOnEmail:"/service/application/user/authentication/v1.0/otp/forgot/email/send",sendForgotOTPOnMobile:"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",updateUserAttributes:"/service/application/user/profile/v1.0/user-attributes",userExists:"/service/application/user/authentication/v1.0/user-exists",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/email/verify",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"put",a({url:this._urls.addEmail,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async addMobileNumber({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"put",a({url:this._urls.addMobileNumber,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async deleteEmail({active:e,primary:s,verified:r,email:n,platform:o,requestHeaders:l}={requestHeaders:{}},{responseHeaders:c}={responseHeaders:!1}){let d=[];if(e||d.push({message:"The 'active' field is required.",path:["active"]}),s||d.push({message:"The 'primary' field is required.",path:["primary"]}),r||d.push({message:"The 'verified' field is required.",path:["verified"]}),n||d.push({message:"The 'email' field is required.",path:["email"]}),d.length){const e=new Error;return e.message="Missing required field",e.details=d,Promise.reject(new t(e))}const u={};u.platform=o,u.active=e,u.primary=s,u.verified=r,u.email=n;const p=await i.execute(this._conf,"delete",a({url:this._urls.deleteEmail,params:{}}),u,void 0,{...l},{responseHeaders:c});let g=p;return c&&(g=p[0]),p}async deleteMobileNumber({active:e,primary:s,verified:r,countryCode:n,phone:o,platform:l,requestHeaders:c}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){let u=[];if(e||u.push({message:"The 'active' field is required.",path:["active"]}),s||u.push({message:"The 'primary' field is required.",path:["primary"]}),r||u.push({message:"The 'verified' field is required.",path:["verified"]}),n||u.push({message:"The 'countryCode' field is required.",path:["countryCode"]}),o||u.push({message:"The 'phone' field is required.",path:["phone"]}),u.length){const e=new Error;return e.message="Missing required field",e.details=u,Promise.reject(new t(e))}const p={};p.platform=l,p.active=e,p.primary=s,p.verified=r,p.country_code=n,p.phone=o;const g=await i.execute(this._conf,"delete",a({url:this._urls.deleteMobileNumber,params:{}}),p,void 0,{...c},{responseHeaders:d});let h=g;return d&&(h=g[0]),g}async deleteUser({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.deleteUser,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async forgotPassword({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.forgotPassword,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async getPlatformConfig({name:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.name=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getPlatformConfig,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async getUserAttributes({slug:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.slug=e;const l=await i.execute(this._conf,"get",a({url:this._urls.getUserAttributes,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async loginWithAppleIOS({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithAppleIOS,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithEmailAndPassword({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async loginWithFacebook({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithFacebook,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithGoogle({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithGoogle,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithGoogleAndroid({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithGoogleAndroid,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithGoogleIOS({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithGoogleIOS,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithOTP({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.loginWithOTP,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async loginWithToken({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.loginWithToken,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:s}={responseHeaders:!1}){let r=[];if(r.length){const e=new Error;return e.message="Missing required field",e.details=r,Promise.reject(new t(e))}const n=await i.execute(this._conf,"get",a({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:s});let o=n;return s&&(o=n[0]),n}async registerWithForm({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.registerWithForm,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async resetForgotPassword({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.resetForgotPassword,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async sendForgotOTPOnEmail({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendForgotOTPOnEmail,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendForgotOTPOnMobile({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendForgotOTPOnMobile,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendOTPOnEmail({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendOTPOnEmail,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendOTPOnMobile({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendOTPOnMobile,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendResetPasswordEmail({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendResetPasswordEmail,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendResetPasswordMobile({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendResetPasswordMobile,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendResetToken({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.sendResetToken,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async sendVerificationLinkToEmail({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendVerificationLinkToEmail,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async sendVerificationLinkToMobile({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.sendVerificationLinkToMobile,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async setEmailAsPrimary({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async setMobileNumberAsPrimary({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async updatePassword({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.updatePassword,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async updateProfile({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.updateProfile,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async updateUserAttributes({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"patch",a({url:this._urls.updateUserAttributes,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async userExists({q:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(e||n.push({message:"The 'q' field is required.",path:["q"]}),n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o={};o.q=e;const l=await i.execute(this._conf,"get",a({url:this._urls.userExists,params:{}}),o,void 0,{...s},{responseHeaders:r});let c=l;return r&&(c=l[0]),l}async verifyEmail({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyEmail,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyEmailForgotOTP({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.verifyEmailForgotOTP,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async verifyEmailOTP({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.verifyEmailOTP,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async verifyMobile({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.verifyMobile,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}async verifyMobileForgotOTP({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.verifyMobileForgotOTP,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}async verifyMobileOTP({body:e,platform:s,requestHeaders:r}={requestHeaders:{}},{responseHeaders:n}={responseHeaders:!1}){let o=[];if(o.length){const e=new Error;return e.message="Missing required field",e.details=o,Promise.reject(new t(e))}const l={};l.platform=s;const c=await i.execute(this._conf,"post",a({url:this._urls.verifyMobileOTP,params:{}}),l,e,{...r},{responseHeaders:n});let d=c;return n&&(d=c[0]),c}}},567:(e,s,r)=>{const{FDKClientValidationError:t,FDKResponseValidationError:n}=r(235),i=r(534),a=r(205);r(121),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={saveClickEvent:"/service/application/webhook/v1.0/click-analytics/events"},this._urls=Object.entries(this._relativeUrls).reduce(((s,[r,t])=>(s[r]=`${e.domain}${t}`,s)),{})}updateUrls(e){this._urls={...this._urls,...e}}async saveClickEvent({body:e,requestHeaders:s}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){let n=[];if(n.length){const e=new Error;return e.message="Missing required field",e.details=n,Promise.reject(new t(e))}const o=await i.execute(this._conf,"post",a({url:this._urls.saveClickEvent,params:{}}),{},e,{...s},{responseHeaders:r});let l=o;return r&&(l=o[0]),o}}},205:(e,s,r)=>{const t=r(729);e.exports=({url:e,params:s})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=s[t(e.slice(1,e.length-1))]),e))).join("/")},775:(e,s,r)=>{e.exports={ApplicationConfig:r(163),ApplicationClient:r(418)}},128:(e,s,r)=>{const{isAbsoluteURL:t,combineURLs:n}=r(879),i=r(425).default,a=r(663),{sign:o}=r(331),{FDKServerResponseError:l}=r(235),{log:c,Logger:d,getLoggerLevel:u}=r(572),p=r(790),{version:g}=r(330),h=i.create({withCredentials:!0,paramsSerializer:e=>a.stringify(e)});h.interceptors.request.use((function(e){try{if(u()<=c.levels.DEBUG){const s=p(e);c.debug(s)}}catch(e){d({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){d({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),h.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let s=e.url;e.baseURL&&!t(e.url)&&(s=n(e.baseURL,e.url));const{host:r,pathname:i,search:l}=new URL(s),{data:c,headers:d,method:u,params:p}=e;d["x-fp-sdk-version"]=g;let h=a.parse(l);h={...h,...p};let f,m="";if(h&&Object.keys(h).length&&""!==a.stringify(h).trim()&&(m=`?${a.stringify(h)}`),"get"!=u){const s=function(e){const{transformRequest:s}=e;if(s){if("function"==typeof s)return s;if(s.length)return s[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);f=s(c,d)}const{common:y,delete:H,get:w,head:v,post:q,put:_,patch:b,...P}=d,E={method:u&&u.toUpperCase(),host:r,path:i+l+m,body:f,headers:P},x=o(E);return e.headers["x-fp-date"]=x["x-fp-date"],e.headers["x-fp-signature"]=x["x-fp-signature"],e})),h.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(d({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){if(e.response){const s=e.response.data;throw d({level:"ERROR",message:s&&s.message?s.message:e.message,stack:s&&s.stack?s.stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new l(s&&s.message?s.message:e.message,"",e.response.statusText,e.response.status,s)}throw e.request?(d({level:"ERROR",message:e.message,stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new l(e.message,e.stack,e.code,e.code)):(d({level:"ERROR",message:e.message}),new l(e.message,e.stack))})),e.exports={fdkAxios:h}},235:e=>{class s extends Error{constructor(e,s,r=null,t=null,n=null){super(e),this.name="FDKServerResponseError",this.stackTrace=s,this.status=r,this.code=t,this.details=n}}class r extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class t extends Error{constructor(e){super(e.message),this.name="FDKResponseValidationError",this.details=JSON.parse(JSON.stringify(e.details))}}class n extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class i extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class a extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class o extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:s,FDKClientValidationError:r,FDKResponseValidationError:t,FDKInvalidCredentialError:n,FDKTokenIssueError:i,FDKOAuthCodeError:a,FDKException:o}},572:(e,s,r)=>{const t=r(65),n=r(330).version;function i(){return(new Date).toString()}e.exports={log:t,Logger:function(e){const{level:s,message:r,...a}=e;"TRACE"===s&&t.trace(JSON.stringify({level:s,detail:r,...a,time:i(),version:n})),"DEBUG"===s&&t.debug(JSON.stringify({level:s,detail:r,...a,time:i(),version:n})),"INFO"===s&&t.info(JSON.stringify({level:s,detail:r,...a,time:i(),version:n})),"WARN"===s&&t.warn(JSON.stringify({level:s,detail:r,...a,time:i(),version:n})),"ERROR"===s&&t.error(JSON.stringify({level:s,detail:r,...a,time:i(),version:n}))},setLoggerLevel:function(e){t.setLevel(e)},getLoggerLevel:function(){return t.getLevel()}}},121:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:s,pageNo:r=1}){this.isNext=e,this.nextId=s,this.pageNo=r}next(){return this.callback()}}},790:(e,s,r)=>{const t=r(663),{combineURLs:n,isAbsoluteURL:i}=r(879);let a;e.exports=function(e){return a=e,`curl ${`--request ${a.method.toUpperCase()}`.trim()} "${function(){let e=a.url;a.baseURL&&!i(e)&&(e=n(a.baseURL,e).trim());let{search:s}=new URL(e);queryParamObject={...t.parse(s),...a.params};let r="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==t.stringify(queryParamObject).trim()&&(r=`?${t.stringify(queryParamObject).trim()}`),`${e}${s.trim()}${r}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],s={};a.headers[a.method]&&(s=a.headers[a.method]),s=Object.keys(s).reduce(((e,r)=>(e[r.toLowerCase()]=s[r],e)),{});for(let r in a.headers)e.includes(r)||(a.headers[r]instanceof Object?s[r.toLowerCase()]=JSON.stringify(a.headers[r]):s[r.toLowerCase()]=a.headers[r]);let r="";for(let e in s)r+=` --header '${e}: ${s[e]}'`;return r.trim()}()} ${"GET"!==a.method.toUpperCase()&&null!==a.data&&""!==a.data&&a.data?`--data-raw '${JSON.stringify(a.data)}'`.trim():""}`.trim()}},879:(e,s,r)=>{const{FDKException:t}=r(235),n=":::",i=e=>{let s="";for(const r in e)if("object"!=typeof e[r]&&e[r]){const t=encodeURIComponent(e[r]);s+=`${r}=${t}&`}else Array.isArray(e[r])?e[r].forEach((e=>{const t=encodeURIComponent(e);s+=`${r}=${t}&`})):"object"==typeof e[r]&&e[r]&&(s+=i(e[r]));return s?s.slice(0,-1):s},a=(e="",s="/")=>{for(;e.charAt(0)==s;)e=e.substring(1);for(;e.charAt(e.length-1)==s;)e=e.substring(0,e.length-1);return e},o=()=>"undefined"!=typeof window&&void 0!==window.document,l=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:i,getParamsFromItem:e=>{let s="";for(let r in e)if(Array.isArray(e[r])){for(let t=0;t{let s=e.split("?");if(s.length>1){const e=new URLSearchParams(s[1]);let r={};for(let s of e){let e=s[0],t=s[1];r[e]=r[e]?[...r[e],t]:[t]}return r}return{}},trimChar:a,generateUrlWithParams:(e={},s)=>{if(!e||!e.link)return"";if(!s)return`/${a(e.link.split(":")[0])}`;const r={};for(let e in s)if(Array.isArray(s[e])){let t="";for(let r=0;r{let r={value:"",params:{}};s=a(s);for(let t=0;t{if(l())return Buffer.from(e,"utf-8").toString("base64");if(o())return window.btoa(e);throw new t("Base64 conversion error: Unsupported environment")},isBrowser:o,isNode:l,NAV_TYPE:{PAGE:"page",POPUP:"popup"},combineURLs:function(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e},isAbsoluteURL:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}}},425:(e,s,r)=>{"use strict";function t(e,s){return function(){return e.apply(s,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,a=(o=Object.create(null),e=>{const s=n.call(e);return o[s]||(o[s]=s.slice(8,-1).toLowerCase())});var o;const l=e=>(e=e.toLowerCase(),s=>a(s)===e),c=e=>s=>typeof s===e,{isArray:d}=Array,u=c("undefined"),p=l("ArrayBuffer"),g=c("string"),h=c("function"),f=c("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const s=i(e);return!(null!==s&&s!==Object.prototype&&null!==Object.getPrototypeOf(s)||Symbol.toStringTag in e||Symbol.iterator in e)},H=l("Date"),w=l("File"),v=l("Blob"),q=l("FileList"),_=l("URLSearchParams"),[b,P,E,x]=["ReadableStream","Request","Response","Headers"].map(l);function S(e,s,{allOwnKeys:r=!1}={}){if(null==e)return;let t,n;if("object"!=typeof e&&(e=[e]),d(e))for(t=0,n=e.length;t0;)if(t=r[n],s===t.toLowerCase())return t;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,O=e=>!u(e)&&e!==j,T=(I="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>I&&e instanceof I);var I;const k=l("HTMLFormElement"),R=(({hasOwnProperty:e})=>(s,r)=>e.call(s,r))(Object.prototype),M=l("RegExp"),A=(e,s)=>{const r=Object.getOwnPropertyDescriptors(e),t={};S(r,((r,n)=>{let i;!1!==(i=s(r,n,e))&&(t[n]=i||r)})),Object.defineProperties(e,t)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",U={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},F=l("AsyncFunction"),D=(N="function"==typeof setImmediate,z=h(j.postMessage),N?setImmediate:z?($=`axios@${Math.random()}`,V=[],j.addEventListener("message",(({source:e,data:s})=>{e===j&&s===$&&V.length&&V.shift()()}),!1),e=>{V.push(e),j.postMessage($,"*")}):e=>setTimeout(e));var N,z,$,V;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||D;var W={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let s;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(s=a(e))||"object"===s&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let s;return s="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),s},isString:g,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isReadableStream:b,isRequest:P,isResponse:E,isHeaders:x,isUndefined:u,isDate:H,isFile:w,isBlob:v,isRegExp:M,isFunction:h,isStream:e=>m(e)&&h(e.pipe),isURLSearchParams:_,isTypedArray:T,isFileList:q,forEach:S,merge:function e(){const{caseless:s}=O(this)&&this||{},r={},t=(t,n)=>{const i=s&&C(r,n)||n;y(r[i])&&y(t)?r[i]=e(r[i],t):y(t)?r[i]=e({},t):d(t)?r[i]=t.slice():r[i]=t};for(let e=0,s=arguments.length;e(S(s,((s,n)=>{r&&h(s)?e[n]=t(s,r):e[n]=s}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,s,r,t)=>{e.prototype=Object.create(s.prototype,t),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,s,r,t)=>{let n,a,o;const l={};if(s=s||{},null==e)return s;do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)o=n[a],t&&!t(o,e,s)||l[o]||(s[o]=e[o],l[o]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,s))&&e!==Object.prototype);return s},kindOf:a,kindOfTest:l,endsWith:(e,s,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=s.length;const t=e.indexOf(s,r);return-1!==t&&t===r},toArray:e=>{if(!e)return null;if(d(e))return e;let s=e.length;if(!f(s))return null;const r=new Array(s);for(;s-- >0;)r[s]=e[s];return r},forEachEntry:(e,s)=>{const r=(e&&e[Symbol.iterator]).call(e);let t;for(;(t=r.next())&&!t.done;){const r=t.value;s.call(e,r[0],r[1])}},matchAll:(e,s)=>{let r;const t=[];for(;null!==(r=e.exec(s));)t.push(r);return t},isHTMLForm:k,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:A,freezeMethods:e=>{A(e,((s,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const t=e[r];h(t)&&(s.enumerable=!1,"writable"in s?s.writable=!1:s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,s)=>{const r={},t=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?t(e):t(String(e).split(s)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,s,r){return s.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,s)=>null!=e&&Number.isFinite(e=+e)?e:s,findKey:C,global:j,isContextDefined:O,ALPHABET:U,generateString:(e=16,s=U.ALPHA_DIGIT)=>{let r="";const{length:t}=s;for(;e--;)r+=s[Math.random()*t|0];return r},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const s=new Array(10),r=(e,t)=>{if(m(e)){if(s.indexOf(e)>=0)return;if(!("toJSON"in e)){s[t]=e;const n=d(e)?[]:{};return S(e,((e,s)=>{const i=r(e,t+1);!u(i)&&(n[s]=i)})),s[t]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(m(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:D,asap:K};function J(e,s,r,t,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",s&&(this.code=s),r&&(this.config=r),t&&(this.request=t),n&&(this.response=n,this.status=n.status?n.status:null)}W.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const G=J.prototype,Q={};function X(e){return W.isPlainObject(e)||W.isArray(e)}function Z(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,s,r){return e?e.concat(s).map((function(e,s){return e=Z(e),!r&&s?"["+e+"]":e})).join(r?".":""):s}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Q[e]={value:e}})),Object.defineProperties(J,Q),Object.defineProperty(G,"isAxiosError",{value:!0}),J.from=(e,s,r,t,n,i)=>{const a=Object.create(G);return W.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),J.call(a,e.message,s,r,t,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ee=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));function se(e,s,r){if(!W.isObject(e))throw new TypeError("target must be an object");s=s||new FormData;const t=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,s){return!W.isUndefined(s[e])}))).metaTokens,n=r.visitor||c,i=r.dots,a=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(s);if(!W.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!o&&W.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let o=e;if(e&&!n&&"object"==typeof e)if(W.endsWith(r,"{}"))r=t?r:r.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(X)}(e)||(W.isFileList(e)||W.endsWith(r,"[]"))&&(o=W.toArray(e)))return r=Z(r),o.forEach((function(e,t){!W.isUndefined(e)&&null!==e&&s.append(!0===a?Y([r],t,i):null===a?r:r+"[]",l(e))})),!1;return!!X(e)||(s.append(Y(n,r,i),l(e)),!1)}const d=[],u=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:X});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(r,t){if(!W.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+t.join("."));d.push(r),W.forEach(r,(function(r,i){!0===(!(W.isUndefined(r)||null===r)&&n.call(s,r,W.isString(i)?i.trim():i,t,u))&&e(r,t?t.concat(i):[i])})),d.pop()}}(e),s}function re(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return s[e]}))}function te(e,s){this._pairs=[],e&&se(e,this,s)}const ne=te.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,s,r){if(!s)return e;const t=r&&r.encode||ie;W.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(s,r):W.isURLSearchParams(s)?s.toString():new te(s,r).toString(t),i){const s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ne.append=function(e,s){this._pairs.push([e,s])},ne.toString=function(e){const s=e?function(s){return e.call(this,s,re)}:re;return this._pairs.map((function(e){return s(e[0])+"="+s(e[1])}),"").join("&")};var oe=class{constructor(){this.handlers=[]}use(e,s,r){return this.handlers.push({fulfilled:e,rejected:s,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(s){null!==s&&e(s)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,ue="object"==typeof navigator&&navigator||void 0,pe=de&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=de&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:ge,hasStandardBrowserEnv:pe,navigator:ue,origin:he}),...ce};function me(e){function s(e,r,t,n){let i=e[n++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),o=n>=e.length;return i=!i&&W.isArray(t)?t.length:i,o?(W.hasOwnProp(t,i)?t[i]=[t[i],r]:t[i]=r,!a):(t[i]&&W.isObject(t[i])||(t[i]=[]),s(e,r,t[i],n)&&W.isArray(t[i])&&(t[i]=function(e){const s={},r=Object.keys(e);let t;const n=r.length;let i;for(t=0;t{s(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),t,r,0)})),r}return null}const ye={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const r=s.getContentType()||"",t=r.indexOf("application/json")>-1,n=W.isObject(e);if(n&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return t?JSON.stringify(me(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,s){return se(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,s,r,t){return fe.isNode&&W.isBuffer(e)?(this.append(s,e.toString("base64")),!1):t.defaultVisitor.apply(this,arguments)}},s))}(e,this.formSerializer).toString();if((i=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return se(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return n||t?(s.setContentType("application/json",!1),function(e){if(W.isString(e))try{return(0,JSON.parse)(e),W.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const s=this.transitional||ye.transitional,r=s&&s.forcedJSONParsing,t="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(r&&!this.responseType||t)){const r=!(s&&s.silentJSONParsing)&&t;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var He=ye;const we=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ve=Symbol("internals");function qe(e){return e&&String(e).trim().toLowerCase()}function _e(e){return!1===e||null==e?e:W.isArray(e)?e.map(_e):String(e)}function be(e,s,r,t,n){return W.isFunction(t)?t.call(this,s,r):(n&&(s=r),W.isString(s)?W.isString(t)?-1!==s.indexOf(t):W.isRegExp(t)?t.test(s):void 0:void 0)}class Pe{constructor(e){e&&this.set(e)}set(e,s,r){const t=this;function n(e,s,r){const n=qe(s);if(!n)throw new Error("header name must be a non-empty string");const i=W.findKey(t,n);(!i||void 0===t[i]||!0===r||void 0===r&&!1!==t[i])&&(t[i||s]=_e(e))}const i=(e,s)=>W.forEach(e,((e,r)=>n(e,r,s)));if(W.isPlainObject(e)||e instanceof this.constructor)i(e,s);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const s={};let r,t,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),t=e.substring(n+1).trim(),!r||s[r]&&we[r]||("set-cookie"===r?s[r]?s[r].push(t):s[r]=[t]:s[r]=s[r]?s[r]+", "+t:t)})),s})(e),s);else if(W.isHeaders(e))for(const[s,t]of e.entries())n(t,s,r);else null!=e&&n(s,e,r);return this}get(e,s){if(e=qe(e)){const r=W.findKey(this,e);if(r){const e=this[r];if(!s)return e;if(!0===s)return function(e){const s=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=r.exec(e);)s[t[1]]=t[2];return s}(e);if(W.isFunction(s))return s.call(this,e,r);if(W.isRegExp(s))return s.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=qe(e)){const r=W.findKey(this,e);return!(!r||void 0===this[r]||s&&!be(0,this[r],r,s))}return!1}delete(e,s){const r=this;let t=!1;function n(e){if(e=qe(e)){const n=W.findKey(r,e);!n||s&&!be(0,r[n],n,s)||(delete r[n],t=!0)}}return W.isArray(e)?e.forEach(n):n(e),t}clear(e){const s=Object.keys(this);let r=s.length,t=!1;for(;r--;){const n=s[r];e&&!be(0,this[n],n,e,!0)||(delete this[n],t=!0)}return t}normalize(e){const s=this,r={};return W.forEach(this,((t,n)=>{const i=W.findKey(r,n);if(i)return s[i]=_e(t),void delete s[n];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,s,r)=>s.toUpperCase()+r))}(n):String(n).trim();a!==n&&delete s[n],s[a]=_e(t),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return W.forEach(this,((r,t)=>{null!=r&&!1!==r&&(s[t]=e&&W.isArray(r)?r.join(", "):r)})),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,s])=>e+": "+s)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const r=new this(e);return s.forEach((e=>r.set(e))),r}static accessor(e){const s=(this[ve]=this[ve]={accessors:{}}).accessors,r=this.prototype;function t(e){const t=qe(e);s[t]||(function(e,s){const r=W.toCamelCase(" "+s);["get","set","has"].forEach((t=>{Object.defineProperty(e,t+r,{value:function(e,r,n){return this[t].call(this,s,e,r,n)},configurable:!0})}))}(r,e),s[t]=!0)}return W.isArray(e)?e.forEach(t):t(e),this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Pe.prototype,(({value:e},s)=>{let r=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(e){this[r]=e}}})),W.freezeMethods(Pe);var Ee=Pe;function xe(e,s){const r=this||He,t=s||r,n=Ee.from(t.headers);let i=t.data;return W.forEach(e,(function(e){i=e.call(r,i,n.normalize(),s?s.status:void 0)})),n.normalize(),i}function Se(e){return!(!e||!e.__CANCEL__)}function Ce(e,s,r){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,s,r),this.name="CanceledError"}function je(e,s,r){const t=r.config.validateStatus;r.status&&t&&!t(r.status)?s(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}W.inherits(Ce,J,{__CANCEL__:!0});const Oe=(e,s,r=3)=>{let t=0;const n=function(e,s){e=e||10;const r=new Array(e),t=new Array(e);let n,i=0,a=0;return s=void 0!==s?s:1e3,function(o){const l=Date.now(),c=t[a];n||(n=l),r[i]=o,t[i]=l;let d=a,u=0;for(;d!==i;)u+=r[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-n{n=i,r=null,t&&(clearTimeout(t),t=null),e.apply(null,s)};return[(...e)=>{const s=Date.now(),o=s-n;o>=i?a(e,s):(r=e,t||(t=setTimeout((()=>{t=null,a(r)}),i-o)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-t,l=n(o);t=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:r,lengthComputable:null!=a,[s?"download":"upload"]:!0})}),r)},Te=(e,s)=>{const r=null!=e;return[t=>s[0]({lengthComputable:r,total:e,loaded:t}),s[1]]},Ie=e=>(...s)=>W.asap((()=>e(...s)));var ke=fe.hasStandardBrowserEnv?((e,s)=>r=>(r=new URL(r,fe.origin),e.protocol===r.protocol&&e.host===r.host&&(s||e.port===r.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,Re=fe.hasStandardBrowserEnv?{write(e,s,r,t,n,i){const a=[e+"="+encodeURIComponent(s)];W.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),W.isString(t)&&a.push("path="+t),W.isString(n)&&a.push("domain="+n),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,s){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)?function(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}(e,s):s}const Ae=e=>e instanceof Ee?{...e}:e;function Be(e,s){s=s||{};const r={};function t(e,s,r,t){return W.isPlainObject(e)&&W.isPlainObject(s)?W.merge.call({caseless:t},e,s):W.isPlainObject(s)?W.merge({},s):W.isArray(s)?s.slice():s}function n(e,s,r,n){return W.isUndefined(s)?W.isUndefined(e)?void 0:t(void 0,e,0,n):t(e,s,0,n)}function i(e,s){if(!W.isUndefined(s))return t(void 0,s)}function a(e,s){return W.isUndefined(s)?W.isUndefined(e)?void 0:t(void 0,e):t(void 0,s)}function o(r,n,i){return i in s?t(r,n):i in e?t(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,s,r)=>n(Ae(e),Ae(s),0,!0)};return W.forEach(Object.keys(Object.assign({},e,s)),(function(t){const i=l[t]||n,a=i(e[t],s[t],t);W.isUndefined(a)&&i!==o||(r[t]=a)})),r}var Le=e=>{const s=Be({},e);let r,{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:l}=s;if(s.headers=o=Ee.from(o),s.url=ae(Me(s.baseURL,s.url),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(t))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(r=o.getContentType())){const[e,...s]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...s].join("; "))}if(fe.hasStandardBrowserEnv&&(n&&W.isFunction(n)&&(n=n(s)),n||!1!==n&&ke(s.url))){const e=i&&a&&Re.read(a);e&&o.set(i,e)}return s},Ue="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(s,r){const t=Le(e);let n=t.data;const i=Ee.from(t.headers).normalize();let a,o,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:g}=t;function h(){c&&c(),d&&d(),t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}let f=new XMLHttpRequest;function m(){if(!f)return;const t=Ee.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());je((function(e){s(e),h()}),(function(e){r(e),h()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:t,config:e,request:f}),f=null}f.open(t.method.toUpperCase(),t.url,!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(m)},f.onabort=function(){f&&(r(new J("Request aborted",J.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let s=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||le;t.timeoutErrorMessage&&(s=t.timeoutErrorMessage),r(new J(s,n.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,f)),f=null},void 0===n&&i.setContentType(null),"setRequestHeader"in f&&W.forEach(i.toJSON(),(function(e,s){f.setRequestHeader(s,e)})),W.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),u&&"json"!==u&&(f.responseType=t.responseType),g&&([l,d]=Oe(g,!0),f.addEventListener("progress",l)),p&&f.upload&&([o,c]=Oe(p),f.upload.addEventListener("progress",o),f.upload.addEventListener("loadend",c)),(t.cancelToken||t.signal)&&(a=s=>{f&&(r(!s||s.type?new Ce(null,e,f):s),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const y=function(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}(t.url);y&&-1===fe.protocols.indexOf(y)?r(new J("Unsupported protocol "+y+":",J.ERR_BAD_REQUEST,e)):f.send(n||null)}))},Fe=(e,s)=>{const{length:r}=e=e?e.filter(Boolean):[];if(s||r){let r,t=new AbortController;const n=function(e){if(!r){r=!0,a();const s=e instanceof Error?e:this.reason;t.abort(s instanceof J?s:new Ce(s instanceof Error?s.message:s))}};let i=s&&setTimeout((()=>{i=null,n(new J(`timeout ${s} of ms exceeded`,J.ETIMEDOUT))}),s);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:o}=t;return o.unsubscribe=()=>W.asap(a),o}};const De=function*(e,s){let r=e.byteLength;if(!s||r{const n=async function*(e,s){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const s=e.getReader();try{for(;;){const{done:e,value:r}=await s.read();if(e)break;yield r}}finally{await s.cancel()}}(e))yield*De(r,s)}(e,s);let i,a=0,o=e=>{i||(i=!0,t&&t(e))};return new ReadableStream({async pull(e){try{const{done:s,value:t}=await n.next();if(s)return o(),void e.close();let i=t.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(t))}catch(e){throw o(e),e}},cancel:e=>(o(e),n.return())},{highWaterMark:2})},ze="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$e=ze&&"function"==typeof ReadableStream,Ve=ze&&("function"==typeof TextEncoder?(Ke=new TextEncoder,e=>Ke.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ke;const We=(e,...s)=>{try{return!!e(...s)}catch(e){return!1}},Je=$e&&We((()=>{let e=!1;const s=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!s})),Ge=$e&&We((()=>W.isReadableStream(new Response("").body))),Qe={stream:Ge&&(e=>e.body)};var Xe;ze&&(Xe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Qe[e]&&(Qe[e]=W.isFunction(Xe[e])?s=>s[e]():(s,r)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})})));const Ze={http:null,xhr:Ue,fetch:ze&&(async e=>{let{url:s,method:r,data:t,signal:n,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Le(e);c=c?(c+"").toLowerCase():"text";let g,h=Fe([n,i&&i.toAbortSignal()],a);const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(l&&Je&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,s)=>{const r=W.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const s=new Request(fe.origin,{method:"POST",body:e});return(await s.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await Ve(e)).byteLength:void 0)})(s):r})(d,t))){let e,r=new Request(s,{method:"POST",body:t,duplex:"half"});if(W.isFormData(t)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,s]=Te(m,Oe(Ie(l)));t=Ne(r.body,65536,e,s)}}W.isString(u)||(u=u?"include":"omit");const n="credentials"in Request.prototype;g=new Request(s,{...p,signal:h,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:t,duplex:"half",credentials:n?u:void 0});let i=await fetch(g);const a=Ge&&("stream"===c||"response"===c);if(Ge&&(o||a&&f)){const e={};["status","statusText","headers"].forEach((s=>{e[s]=i[s]}));const s=W.toFiniteNumber(i.headers.get("content-length")),[r,t]=o&&Te(s,Oe(Ie(o),!0))||[];i=new Response(Ne(i.body,65536,r,(()=>{t&&t(),f&&f()})),e)}c=c||"text";let y=await Qe[W.findKey(Qe,c)||"text"](i,e);return!a&&f&&f(),await new Promise(((s,r)=>{je(s,r,{data:y,headers:Ee.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:g})}))}catch(s){if(f&&f(),s&&"TypeError"===s.name&&/fetch/i.test(s.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:s.cause||s});throw J.from(s,s&&s.code,e,g)}})};W.forEach(Ze,((e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch(e){}Object.defineProperty(e,"adapterName",{value:s})}}));const Ye=e=>`- ${e}`,es=e=>W.isFunction(e)||null===e||!1===e;var ss=e=>{e=W.isArray(e)?e:[e];const{length:s}=e;let r,t;const n={};for(let i=0;i`adapter ${e} `+(!1===s?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(s?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t};function rs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function ts(e){return rs(e),e.headers=Ee.from(e.headers),e.data=xe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ss(e.adapter||He.adapter)(e).then((function(s){return rs(e),s.data=xe.call(e,e.transformResponse,s),s.headers=Ee.from(s.headers),s}),(function(s){return Se(s)||(rs(e),s&&s.response&&(s.response.data=xe.call(e,e.transformResponse,s.response),s.response.headers=Ee.from(s.response.headers))),Promise.reject(s)}))}const ns={};["object","boolean","number","function","string","symbol"].forEach(((e,s)=>{ns[e]=function(r){return typeof r===e||"a"+(s<1?"n ":" ")+e}}));const is={};ns.transitional=function(e,s,r){function t(e,s){return"[Axios v1.7.9] Transitional option '"+e+"'"+s+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new J(t(n," has been removed"+(s?" in "+s:"")),J.ERR_DEPRECATED);return s&&!is[n]&&(is[n]=!0,console.warn(t(n," has been deprecated since v"+s+" and will be removed in the near future"))),!e||e(r,n,i)}},ns.spelling=function(e){return(s,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var as={assertOptions:function(e,s,r){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const t=Object.keys(e);let n=t.length;for(;n-- >0;){const i=t[n],a=s[i];if(a){const s=e[i],r=void 0===s||a(s,i,e);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ns};const os=as.validators;class ls{constructor(e){this.defaults=e,this.interceptors={request:new oe,response:new oe}}async request(e,s){try{return await this._request(e,s)}catch(e){if(e instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,s){"string"==typeof e?(s=s||{}).url=e:s=e||{},s=Be(this.defaults,s);const{transitional:r,paramsSerializer:t,headers:n}=s;void 0!==r&&as.assertOptions(r,{silentJSONParsing:os.transitional(os.boolean),forcedJSONParsing:os.transitional(os.boolean),clarifyTimeoutError:os.transitional(os.boolean)},!1),null!=t&&(W.isFunction(t)?s.paramsSerializer={serialize:t}:as.assertOptions(t,{encode:os.function,serialize:os.function},!0)),as.assertOptions(s,{baseUrl:os.spelling("baseURL"),withXsrfToken:os.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=n&&W.merge(n.common,n[s.method]);n&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),s.headers=Ee.concat(i,n);const a=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(s)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!o){const e=[ts.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(s);u{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](e);r._listeners=null})),this.promise.then=e=>{let s;const t=new Promise((e=>{r.subscribe(e),s=e})).then(e);return t.cancel=function(){r.unsubscribe(s)},t},e((function(e,t,n){r.reason||(r.reason=new Ce(e,t,n),s(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);-1!==s&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=s=>{e.abort(s)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new ds((function(s){e=s})),cancel:e}}}var us=ds;const ps={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ps).forEach((([e,s])=>{ps[s]=e}));var gs=ps;const hs=function e(s){const r=new cs(s),n=t(cs.prototype.request,r);return W.extend(n,cs.prototype,r,{allOwnKeys:!0}),W.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Be(s,r))},n}(He);hs.Axios=cs,hs.CanceledError=Ce,hs.CancelToken=us,hs.isCancel=Se,hs.VERSION="1.7.9",hs.toFormData=se,hs.AxiosError=J,hs.Cancel=hs.CanceledError,hs.all=function(e){return Promise.all(e)},hs.spread=function(e){return function(s){return e.apply(null,s)}},hs.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},hs.mergeConfig=Be,hs.AxiosHeaders=Ee,hs.formToJSON=e=>me(W.isHTMLForm(e)?new FormData(e):e),hs.getAdapter=ss,hs.HttpStatusCode=gs,hs.default=hs,e.exports=hs},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.6.0","description":"","main":"index.js","scripts":{"test":"jest --coverage","lint":"eslint","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^1.6.4","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","eslint":"^8.57.0","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},s={};function r(t){var n=s[t];if(void 0!==n)return n.exports;var i=s[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var t=r(675),n=window;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index abc8b2641..ef4ba7f9e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@gofynd/fdk-client-javascript",
- "version": "1.5.2",
+ "version": "1.6.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@gofynd/fdk-client-javascript",
- "version": "1.5.2",
+ "version": "1.6.0",
"license": "ISC",
"dependencies": {
"@gofynd/fp-signature": "^1.0.1",
@@ -58,9 +58,9 @@
}
},
"node_modules/@babel/compat-data": {
- "version": "7.26.2",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.2.tgz",
- "integrity": "sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==",
+ "version": "7.26.3",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.3.tgz",
+ "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==",
"dev": true,
"engines": {
"node": ">=6.9.0"
@@ -106,13 +106,13 @@
}
},
"node_modules/@babel/generator": {
- "version": "7.26.2",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.2.tgz",
- "integrity": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==",
+ "version": "7.26.3",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.3.tgz",
+ "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==",
"dev": true,
"dependencies": {
- "@babel/parser": "^7.26.2",
- "@babel/types": "^7.26.0",
+ "@babel/parser": "^7.26.3",
+ "@babel/types": "^7.26.3",
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.25",
"jsesc": "^3.0.2"
@@ -226,12 +226,12 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.26.2",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz",
- "integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==",
+ "version": "7.26.3",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.3.tgz",
+ "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==",
"dev": true,
"dependencies": {
- "@babel/types": "^7.26.0"
+ "@babel/types": "^7.26.3"
},
"bin": {
"parser": "bin/babel-parser.js"
@@ -477,16 +477,16 @@
}
},
"node_modules/@babel/traverse": {
- "version": "7.25.9",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.9.tgz",
- "integrity": "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==",
+ "version": "7.26.4",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.4.tgz",
+ "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==",
"dev": true,
"dependencies": {
- "@babel/code-frame": "^7.25.9",
- "@babel/generator": "^7.25.9",
- "@babel/parser": "^7.25.9",
+ "@babel/code-frame": "^7.26.2",
+ "@babel/generator": "^7.26.3",
+ "@babel/parser": "^7.26.3",
"@babel/template": "^7.25.9",
- "@babel/types": "^7.25.9",
+ "@babel/types": "^7.26.3",
"debug": "^4.3.1",
"globals": "^11.1.0"
},
@@ -504,9 +504,9 @@
}
},
"node_modules/@babel/types": {
- "version": "7.26.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz",
- "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==",
+ "version": "7.26.3",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.3.tgz",
+ "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==",
"dev": true,
"dependencies": {
"@babel/helper-string-parser": "^7.25.9",
@@ -1110,9 +1110,9 @@
}
},
"node_modules/@jridgewell/gen-mapping": {
- "version": "0.3.5",
- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
- "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
+ "version": "0.3.8",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
+ "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
"dev": true,
"dependencies": {
"@jridgewell/set-array": "^1.2.1",
@@ -1416,9 +1416,9 @@
}
},
"node_modules/@ungap/structured-clone": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
- "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.1.tgz",
+ "integrity": "sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==",
"dev": true
},
"node_modules/@webassemblyjs/ast": {
@@ -1645,13 +1645,10 @@
}
},
"node_modules/agent-base": {
- "version": "7.1.1",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz",
- "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==",
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
"dev": true,
- "dependencies": {
- "debug": "^4.3.4"
- },
"engines": {
"node": ">= 14"
}
@@ -1685,6 +1682,45 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/ajv-formats": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+ "dev": true,
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ajv-formats/node_modules/ajv": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
+ "dev": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true
+ },
"node_modules/ajv-keywords": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
@@ -1880,9 +1916,9 @@
"dev": true
},
"node_modules/axios": {
- "version": "1.7.8",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz",
- "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==",
+ "version": "1.7.9",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
+ "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
"dependencies": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
@@ -2110,9 +2146,9 @@
}
},
"node_modules/browserslist": {
- "version": "4.24.2",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz",
- "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==",
+ "version": "4.24.3",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.3.tgz",
+ "integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==",
"dev": true,
"funding": [
{
@@ -2129,9 +2165,9 @@
}
],
"dependencies": {
- "caniuse-lite": "^1.0.30001669",
- "electron-to-chromium": "^1.5.41",
- "node-releases": "^2.0.18",
+ "caniuse-lite": "^1.0.30001688",
+ "electron-to-chromium": "^1.5.73",
+ "node-releases": "^2.0.19",
"update-browserslist-db": "^1.1.1"
},
"bin": {
@@ -2198,17 +2234,27 @@
"node": ">=6"
}
},
- "node_modules/call-bind": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
- "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
+ "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==",
"dev": true,
"dependencies": {
- "es-define-property": "^1.0.0",
"es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.4",
- "set-function-length": "^1.2.1"
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
+ "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "get-intrinsic": "^1.2.6"
},
"engines": {
"node": ">= 0.4"
@@ -2238,9 +2284,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001686",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz",
- "integrity": "sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==",
+ "version": "1.0.30001690",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz",
+ "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==",
"dev": true,
"funding": [
{
@@ -2662,9 +2708,9 @@
"dev": true
},
"node_modules/debug": {
- "version": "4.3.7",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
- "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
"dev": true,
"dependencies": {
"ms": "^2.1.3"
@@ -2715,23 +2761,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/define-data-property": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
- "dev": true,
- "dependencies": {
- "es-define-property": "^1.0.0",
- "es-errors": "^1.3.0",
- "gopd": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/del": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz",
@@ -2789,9 +2818,9 @@
}
},
"node_modules/dotenv": {
- "version": "16.4.6",
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.6.tgz",
- "integrity": "sha512-JhcR/+KIjkkjiU8yEpaB/USlzVi3i5whwOjpIRNGi9svKEXZSe+Qp6IWAjFjv+2GViAoDRCUv/QLNziQxsLqDg==",
+ "version": "16.4.7",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
+ "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
"dev": true,
"engines": {
"node": ">=12"
@@ -2800,6 +2829,20 @@
"url": "https://dotenvx.com"
}
},
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "dev": true,
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/ecc-jsbn": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
@@ -2811,9 +2854,9 @@
}
},
"node_modules/electron-to-chromium": {
- "version": "1.5.68",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.68.tgz",
- "integrity": "sha512-FgMdJlma0OzUYlbrtZ4AeXjKxKPk6KT8WOP8BjcqxWtlg8qyJQjRzPJzUtUn5GBg1oQ26hFs7HOOHJMYiJRnvQ==",
+ "version": "1.5.76",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz",
+ "integrity": "sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==",
"dev": true
},
"node_modules/emittery": {
@@ -2844,9 +2887,9 @@
}
},
"node_modules/enhanced-resolve": {
- "version": "5.17.1",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz",
- "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==",
+ "version": "5.18.0",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz",
+ "integrity": "sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ==",
"dev": true,
"dependencies": {
"graceful-fs": "^4.2.4",
@@ -2891,13 +2934,10 @@
}
},
"node_modules/es-define-property": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
- "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"dev": true,
- "dependencies": {
- "get-intrinsic": "^1.2.4"
- },
"engines": {
"node": ">= 0.4"
}
@@ -2917,6 +2957,18 @@
"integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==",
"dev": true
},
+ "node_modules/es-object-atoms": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
+ "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
+ "dev": true,
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/escalade": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
@@ -3249,6 +3301,12 @@
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
"dev": true
},
+ "node_modules/fast-uri": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz",
+ "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==",
+ "dev": true
+ },
"node_modules/fastest-levenshtein": {
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz",
@@ -3259,9 +3317,9 @@
}
},
"node_modules/fastq": {
- "version": "1.17.1",
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
- "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
+ "version": "1.18.0",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz",
+ "integrity": "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==",
"dev": true,
"dependencies": {
"reusify": "^1.0.4"
@@ -3506,16 +3564,21 @@
}
},
"node_modules/get-intrinsic": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
- "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz",
+ "integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==",
"dev": true,
"dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "dunder-proto": "^1.0.0",
+ "es-define-property": "^1.0.1",
"es-errors": "^1.3.0",
+ "es-object-atoms": "^1.0.0",
"function-bind": "^1.1.2",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3",
- "hasown": "^2.0.0"
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.0.0"
},
"engines": {
"node": ">= 0.4"
@@ -3661,13 +3724,10 @@
}
},
"node_modules/gopd": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.1.0.tgz",
- "integrity": "sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==",
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"dev": true,
- "dependencies": {
- "get-intrinsic": "^1.2.4"
- },
"engines": {
"node": ">= 0.4"
},
@@ -3719,33 +3779,6 @@
"node": ">=8"
}
},
- "node_modules/has-property-descriptors": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
- "dev": true,
- "dependencies": {
- "es-define-property": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-proto": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.1.0.tgz",
- "integrity": "sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==",
- "dev": true,
- "dependencies": {
- "call-bind": "^1.0.7"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/has-symbols": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
@@ -3986,9 +4019,9 @@
}
},
"node_modules/is-core-module": {
- "version": "2.15.1",
- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz",
- "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==",
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
"dev": true,
"dependencies": {
"hasown": "^2.0.2"
@@ -4857,9 +4890,9 @@
"dev": true
},
"node_modules/jsesc": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",
- "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
"dev": true,
"bin": {
"jsesc": "bin/jsesc"
@@ -5219,6 +5252,15 @@
"tmpl": "1.0.5"
}
},
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/merge-stream": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
@@ -5312,9 +5354,9 @@
"dev": true
},
"node_modules/node-releases": {
- "version": "2.0.18",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz",
- "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==",
+ "version": "2.0.19",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",
"dev": true
},
"node_modules/normalize-path": {
@@ -5988,6 +6030,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/requires-port": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
@@ -5995,18 +6046,21 @@
"dev": true
},
"node_modules/resolve": {
- "version": "1.22.8",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
- "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
+ "version": "1.22.10",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",
"dev": true,
"dependencies": {
- "is-core-module": "^2.13.0",
+ "is-core-module": "^2.16.0",
"path-parse": "^1.0.7",
"supports-preserve-symlinks-flag": "^1.0.0"
},
"bin": {
"resolve": "bin/resolve"
},
+ "engines": {
+ "node": ">= 0.4"
+ },
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -6189,23 +6243,6 @@
"randombytes": "^2.1.0"
}
},
- "node_modules/set-function-length": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
- "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
- "dev": true,
- "dependencies": {
- "define-data-property": "^1.1.4",
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.4",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
"node_modules/shallow-clone": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz",
@@ -6240,15 +6277,69 @@
}
},
"node_modules/side-channel": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
- "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "dev": true,
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "dev": true,
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "dev": true,
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"dev": true,
"dependencies": {
- "call-bind": "^1.0.7",
+ "call-bound": "^1.0.2",
"es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.4",
- "object-inspect": "^1.13.1"
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
@@ -6485,9 +6576,9 @@
}
},
"node_modules/terser": {
- "version": "5.36.0",
- "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz",
- "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==",
+ "version": "5.37.0",
+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.37.0.tgz",
+ "integrity": "sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA==",
"dev": true,
"dependencies": {
"@jridgewell/source-map": "^0.3.3",
@@ -6503,16 +6594,16 @@
}
},
"node_modules/terser-webpack-plugin": {
- "version": "5.3.10",
- "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz",
- "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==",
+ "version": "5.3.11",
+ "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz",
+ "integrity": "sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ==",
"dev": true,
"dependencies": {
- "@jridgewell/trace-mapping": "^0.3.20",
+ "@jridgewell/trace-mapping": "^0.3.25",
"jest-worker": "^27.4.5",
- "schema-utils": "^3.1.1",
- "serialize-javascript": "^6.0.1",
- "terser": "^5.26.0"
+ "schema-utils": "^4.3.0",
+ "serialize-javascript": "^6.0.2",
+ "terser": "^5.31.1"
},
"engines": {
"node": ">= 10.13.0"
@@ -6536,6 +6627,34 @@
}
}
},
+ "node_modules/terser-webpack-plugin/node_modules/ajv": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
+ "dev": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
+ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
+ "dev": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3"
+ },
+ "peerDependencies": {
+ "ajv": "^8.8.2"
+ }
+ },
"node_modules/terser-webpack-plugin/node_modules/jest-worker": {
"version": "27.5.1",
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
@@ -6550,6 +6669,31 @@
"node": ">= 10.13.0"
}
},
+ "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true
+ },
+ "node_modules/terser-webpack-plugin/node_modules/schema-utils": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz",
+ "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==",
+ "dev": true,
+ "dependencies": {
+ "@types/json-schema": "^7.0.9",
+ "ajv": "^8.9.0",
+ "ajv-formats": "^2.1.1",
+ "ajv-keywords": "^5.1.0"
+ },
+ "engines": {
+ "node": ">= 10.13.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
"node_modules/terser/node_modules/commander": {
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
@@ -6836,16 +6980,16 @@
}
},
"node_modules/webpack": {
- "version": "5.96.1",
- "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.96.1.tgz",
- "integrity": "sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA==",
+ "version": "5.97.1",
+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.97.1.tgz",
+ "integrity": "sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg==",
"dev": true,
"dependencies": {
"@types/eslint-scope": "^3.7.7",
"@types/estree": "^1.0.6",
- "@webassemblyjs/ast": "^1.12.1",
- "@webassemblyjs/wasm-edit": "^1.12.1",
- "@webassemblyjs/wasm-parser": "^1.12.1",
+ "@webassemblyjs/ast": "^1.14.1",
+ "@webassemblyjs/wasm-edit": "^1.14.1",
+ "@webassemblyjs/wasm-parser": "^1.14.1",
"acorn": "^8.14.0",
"browserslist": "^4.24.0",
"chrome-trace-event": "^1.0.2",
diff --git a/package.json b/package.json
index 9daa92f96..4c25f16fd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@gofynd/fdk-client-javascript",
- "version": "1.5.2",
+ "version": "1.6.0",
"description": "",
"main": "index.js",
"scripts": {
diff --git a/sdk/application/Cart/CartApplicationClient.js b/sdk/application/Cart/CartApplicationClient.js
index 8318321ef..d356fa639 100644
--- a/sdk/application/Cart/CartApplicationClient.js
+++ b/sdk/application/Cart/CartApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -68,6 +73,14 @@ class Cart {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -107,6 +120,14 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["i"] = i;
query_params["b"] = b;
@@ -152,6 +173,14 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["i"] = i;
query_params["b"] = b;
@@ -195,6 +224,14 @@ class Cart {
{ body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["i"] = i;
@@ -236,6 +273,14 @@ class Cart {
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["buy_now"] = buyNow;
query_params["cart_type"] = cartType;
@@ -275,6 +320,14 @@ class Cart {
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["buy_now"] = buyNow;
query_params["cart_type"] = cartType;
@@ -314,6 +367,14 @@ class Cart {
{ id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
@@ -361,6 +422,21 @@ class Cart {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["cart_id"] = cartId;
query_params["buy_now"] = buyNow;
@@ -412,6 +488,14 @@ class Cart {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["cart_id"] = cartId;
query_params["buy_now"] = buyNow;
@@ -455,6 +539,14 @@ class Cart {
{ itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["item_id"] = itemId;
query_params["article_id"] = articleId;
@@ -506,6 +598,14 @@ class Cart {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["i"] = i;
@@ -551,6 +651,14 @@ class Cart {
{ id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
@@ -589,6 +697,14 @@ class Cart {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -626,6 +742,21 @@ class Cart {
{ token, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!token) {
+ invalidInput.push({
+ message: `The 'token' field is required.`,
+ path: ["token"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -663,6 +794,14 @@ class Cart {
{ id, buyNow, slug, storeId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
@@ -704,6 +843,14 @@ class Cart {
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
@@ -745,6 +892,21 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["slug"] = slug;
query_params["store_id"] = storeId;
@@ -788,6 +950,14 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["slug"] = slug;
query_params["page_size"] = pageSize;
@@ -830,6 +1000,14 @@ class Cart {
{ id, uid, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["uid"] = uid;
@@ -871,6 +1049,14 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["p"] = p;
query_params["id"] = id;
@@ -914,6 +1100,21 @@ class Cart {
{ id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -951,6 +1152,14 @@ class Cart {
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
@@ -990,6 +1199,14 @@ class Cart {
{ body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["cart_id"] = cartId;
query_params["buy_now"] = buyNow;
@@ -1031,6 +1248,14 @@ class Cart {
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
@@ -1070,6 +1295,21 @@ class Cart {
{ id, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1117,6 +1357,14 @@ class Cart {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["i"] = i;
@@ -1163,6 +1411,14 @@ class Cart {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["i"] = i;
@@ -1205,6 +1461,14 @@ class Cart {
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
@@ -1244,6 +1508,27 @@ class Cart {
{ token, action, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!token) {
+ invalidInput.push({
+ message: `The 'token' field is required.`,
+ path: ["token"],
+ });
+ }
+ if (!action) {
+ invalidInput.push({
+ message: `The 'action' field is required.`,
+ path: ["action"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1295,6 +1580,14 @@ class Cart {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["id"] = id;
query_params["buy_now"] = buyNow;
diff --git a/sdk/application/Catalog/CatalogApplicationClient.js b/sdk/application/Catalog/CatalogApplicationClient.js
index ea5d0f1f5..ab4f6feee 100644
--- a/sdk/application/Catalog/CatalogApplicationClient.js
+++ b/sdk/application/Catalog/CatalogApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -85,6 +90,27 @@ class Catalog {
{ collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!collectionType) {
+ invalidInput.push({
+ message: `The 'collectionType' field is required.`,
+ path: ["collectionType"],
+ });
+ }
+ if (!collectionId) {
+ invalidInput.push({
+ message: `The 'collectionId' field is required.`,
+ path: ["collectionId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -122,6 +148,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -159,6 +200,14 @@ class Catalog {
{ department, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["department"] = department;
query_params["page_no"] = pageNo;
@@ -231,6 +280,14 @@ class Catalog {
{ department, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["department"] = department;
@@ -269,6 +326,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -306,6 +378,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -354,6 +441,21 @@ class Catalog {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["f"] = f;
query_params["q"] = q;
@@ -454,6 +556,14 @@ class Catalog {
{ pageNo, pageSize, tag, q, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -527,6 +637,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -564,6 +689,14 @@ class Catalog {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -601,6 +734,14 @@ class Catalog {
{ collectionType, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["collection_type"] = collectionType;
@@ -641,6 +782,21 @@ class Catalog {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!collectionType) {
+ invalidInput.push({
+ message: `The 'collectionType' field is required.`,
+ path: ["collectionType"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_id"] = pageId;
query_params["page_size"] = pageSize;
@@ -710,6 +866,27 @@ class Catalog {
{ collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!collectionType) {
+ invalidInput.push({
+ message: `The 'collectionType' field is required.`,
+ path: ["collectionType"],
+ });
+ }
+ if (!collectionId) {
+ invalidInput.push({
+ message: `The 'collectionId' field is required.`,
+ path: ["collectionId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -747,6 +924,14 @@ class Catalog {
{ sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["sort_on"] = sortOn;
query_params["page_id"] = pageId;
@@ -827,6 +1012,14 @@ class Catalog {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -918,6 +1111,21 @@ class Catalog {
{ locationId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!locationId) {
+ invalidInput.push({
+ message: `The 'locationId' field is required.`,
+ path: ["locationId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -955,6 +1163,14 @@ class Catalog {
{ slug, id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["slug"] = slug;
query_params["id"] = id;
@@ -994,6 +1210,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["slug"] = slug;
@@ -1032,6 +1263,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1069,6 +1315,27 @@ class Catalog {
{ slug, size, storeId, moq, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (!size) {
+ invalidInput.push({
+ message: `The 'size' field is required.`,
+ path: ["size"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["store_id"] = storeId;
query_params["moq"] = moq;
@@ -1110,6 +1377,27 @@ class Catalog {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (!size) {
+ invalidInput.push({
+ message: `The 'size' field is required.`,
+ path: ["size"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["strategy"] = strategy;
query_params["page_no"] = pageNo;
@@ -1188,6 +1476,21 @@ class Catalog {
{ slug, storeId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["store_id"] = storeId;
@@ -1226,6 +1529,14 @@ class Catalog {
{ itemId, alu, skuCode, ean, upc, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["item_id"] = itemId;
query_params["alu"] = alu;
@@ -1268,6 +1579,21 @@ class Catalog {
{ timestamp, pageSize, pageId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!timestamp) {
+ invalidInput.push({
+ message: `The 'timestamp' field is required.`,
+ path: ["timestamp"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["timestamp"] = timestamp;
query_params["page_size"] = pageSize;
@@ -1337,6 +1663,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1384,6 +1725,14 @@ class Catalog {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["q"] = q;
query_params["f"] = f;
@@ -1473,6 +1822,21 @@ class Catalog {
{ q, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!q) {
+ invalidInput.push({
+ message: `The 'q' field is required.`,
+ path: ["q"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["q"] = q;
@@ -1511,6 +1875,21 @@ class Catalog {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1558,6 +1937,14 @@ class Catalog {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -1653,6 +2040,27 @@ class Catalog {
{ collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!collectionType) {
+ invalidInput.push({
+ message: `The 'collectionType' field is required.`,
+ path: ["collectionType"],
+ });
+ }
+ if (!collectionId) {
+ invalidInput.push({
+ message: `The 'collectionId' field is required.`,
+ path: ["collectionId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Common/CommonApplicationClient.js b/sdk/application/Common/CommonApplicationClient.js
index 6ac069ee0..a9d550c66 100644
--- a/sdk/application/Common/CommonApplicationClient.js
+++ b/sdk/application/Common/CommonApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -38,6 +43,14 @@ class Common {
{ locationType, id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["location_type"] = locationType;
query_params["id"] = id;
@@ -77,6 +90,14 @@ class Common {
{ authorization, query, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["query"] = query;
diff --git a/sdk/application/Communication/CommunicationApplicationClient.js b/sdk/application/Communication/CommunicationApplicationClient.js
index cbfe9801d..9af8241b4 100644
--- a/sdk/application/Communication/CommunicationApplicationClient.js
+++ b/sdk/application/Communication/CommunicationApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -40,6 +45,14 @@ class Communication {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -77,6 +90,14 @@ class Communication {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -114,6 +135,14 @@ class Communication {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Configuration/ConfigurationApplicationClient.js b/sdk/application/Configuration/ConfigurationApplicationClient.js
index 096fe13aa..356331b3a 100644
--- a/sdk/application/Configuration/ConfigurationApplicationClient.js
+++ b/sdk/application/Configuration/ConfigurationApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -55,6 +60,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -100,6 +113,14 @@ class Configuration {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -145,6 +166,14 @@ class Configuration {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["order_incent"] = orderIncent;
query_params["ordering_store"] = orderingStore;
@@ -185,6 +214,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -222,6 +259,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -259,6 +304,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -296,6 +349,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -333,6 +394,21 @@ class Configuration {
{ id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -370,6 +446,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -407,6 +491,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -444,6 +536,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -481,6 +581,14 @@ class Configuration {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -518,6 +626,14 @@ class Configuration {
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -558,6 +674,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -595,6 +719,21 @@ class Configuration {
{ storeId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!storeId) {
+ invalidInput.push({
+ message: `The 'storeId' field is required.`,
+ path: ["storeId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -632,6 +771,14 @@ class Configuration {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Content/ContentApplicationClient.js b/sdk/application/Content/ContentApplicationClient.js
index dbbaa7f8d..3e888307b 100644
--- a/sdk/application/Content/ContentApplicationClient.js
+++ b/sdk/application/Content/ContentApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -59,6 +64,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -96,6 +109,21 @@ class Content {
{ slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["root_id"] = rootId;
query_params["preview"] = preview;
@@ -135,6 +163,14 @@ class Content {
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -176,6 +212,27 @@ class Content {
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!resource) {
+ invalidInput.push({
+ message: `The 'resource' field is required.`,
+ path: ["resource"],
+ });
+ }
+ if (!resourceSlug) {
+ invalidInput.push({
+ message: `The 'resourceSlug' field is required.`,
+ path: ["resourceSlug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -213,6 +270,27 @@ class Content {
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!definitionSlug) {
+ invalidInput.push({
+ message: `The 'definitionSlug' field is required.`,
+ path: ["definitionSlug"],
+ });
+ }
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -250,6 +328,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -287,6 +373,21 @@ class Content {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -324,6 +425,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -361,6 +470,21 @@ class Content {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -398,6 +522,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -435,6 +567,21 @@ class Content {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -472,6 +619,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -509,6 +664,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -546,6 +709,14 @@ class Content {
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -585,6 +756,21 @@ class Content {
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["root_id"] = rootId;
@@ -623,6 +809,14 @@ class Content {
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -662,6 +856,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -699,6 +901,14 @@ class Content {
{ pageType, active, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_type"] = pageType;
query_params["active"] = active;
@@ -738,6 +948,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -775,6 +993,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/FileStorage/FileStorageApplicationClient.js b/sdk/application/FileStorage/FileStorageApplicationClient.js
index 4d5c4e1f8..e5ab24d65 100644
--- a/sdk/application/FileStorage/FileStorageApplicationClient.js
+++ b/sdk/application/FileStorage/FileStorageApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -42,6 +47,21 @@ class FileStorage {
{ namespace, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!namespace) {
+ invalidInput.push({
+ message: `The 'namespace' field is required.`,
+ path: ["namespace"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -79,6 +99,14 @@ class FileStorage {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -116,6 +144,21 @@ class FileStorage {
{ namespace, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!namespace) {
+ invalidInput.push({
+ message: `The 'namespace' field is required.`,
+ path: ["namespace"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Finance/FinanceApplicationClient.js b/sdk/application/Finance/FinanceApplicationClient.js
index 8e82f53a8..bf5bf7b70 100644
--- a/sdk/application/Finance/FinanceApplicationClient.js
+++ b/sdk/application/Finance/FinanceApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -39,6 +44,14 @@ class Finance {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -76,6 +89,14 @@ class Finance {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Lead/LeadApplicationClient.js b/sdk/application/Lead/LeadApplicationClient.js
index 697980623..e1b814022 100644
--- a/sdk/application/Lead/LeadApplicationClient.js
+++ b/sdk/application/Lead/LeadApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -40,6 +45,21 @@ class Lead {
{ id, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -77,6 +97,14 @@ class Lead {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -114,6 +142,21 @@ class Lead {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -151,6 +194,21 @@ class Lead {
{ id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!id) {
+ invalidInput.push({
+ message: `The 'id' field is required.`,
+ path: ["id"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -188,6 +246,21 @@ class Lead {
{ slug, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Logistic/LogisticApplicationClient.d.ts b/sdk/application/Logistic/LogisticApplicationClient.d.ts
index d89d5a0d5..eabaf8c88 100644
--- a/sdk/application/Logistic/LogisticApplicationClient.d.ts
+++ b/sdk/application/Logistic/LogisticApplicationClient.d.ts
@@ -36,7 +36,7 @@ declare class Logistic {
* @summary: Get countries
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
*/
- getCountries({ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise;
+ getCountries({ onboarding, pageNo, pageSize, q, hierarchy, phoneCode, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise;
/**
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
* @param {import("../ApplicationAPIClient").Options} - Options
diff --git a/sdk/application/Logistic/LogisticApplicationClient.js b/sdk/application/Logistic/LogisticApplicationClient.js
index 24b7bee00..361ab2966 100644
--- a/sdk/application/Logistic/LogisticApplicationClient.js
+++ b/sdk/application/Logistic/LogisticApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -55,6 +60,14 @@ class Logistic {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -89,17 +102,32 @@ class Logistic {
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
*/
async getCountries(
- { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
- requestHeaders: {},
- },
+ {
+ onboarding,
+ pageNo,
+ pageSize,
+ q,
+ hierarchy,
+ phoneCode,
+ requestHeaders,
+ } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["onboarding"] = onboarding;
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
query_params["q"] = q;
query_params["hierarchy"] = hierarchy;
+ query_params["phone_code"] = phoneCode;
const xHeaders = {};
@@ -136,6 +164,21 @@ class Logistic {
{ countryIsoCode, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!countryIsoCode) {
+ invalidInput.push({
+ message: `The 'countryIsoCode' field is required.`,
+ path: ["countryIsoCode"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -173,6 +216,27 @@ class Logistic {
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!companyId) {
+ invalidInput.push({
+ message: `The 'companyId' field is required.`,
+ path: ["companyId"],
+ });
+ }
+ if (!applicationId) {
+ invalidInput.push({
+ message: `The 'applicationId' field is required.`,
+ path: ["applicationId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -210,6 +274,14 @@ class Logistic {
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
@@ -259,6 +331,21 @@ class Logistic {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!localityType) {
+ invalidInput.push({
+ message: `The 'localityType' field is required.`,
+ path: ["localityType"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["country"] = country;
query_params["state"] = state;
@@ -305,6 +392,27 @@ class Logistic {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!localityType) {
+ invalidInput.push({
+ message: `The 'localityType' field is required.`,
+ path: ["localityType"],
+ });
+ }
+ if (!localityValue) {
+ invalidInput.push({
+ message: `The 'localityValue' field is required.`,
+ path: ["localityValue"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["country"] = country;
query_params["state"] = state;
@@ -356,6 +464,27 @@ class Logistic {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!xApplicationId) {
+ invalidInput.push({
+ message: `The 'xApplicationId' field is required.`,
+ path: ["xApplicationId"],
+ });
+ }
+ if (!xApplicationData) {
+ invalidInput.push({
+ message: `The 'xApplicationData' field is required.`,
+ path: ["xApplicationData"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["x-application-id"] = xApplicationId;
query_params["x-application-data"] = xApplicationData;
@@ -402,6 +531,14 @@ class Logistic {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -439,6 +576,21 @@ class Logistic {
{ pincode, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!pincode) {
+ invalidInput.push({
+ message: `The 'pincode' field is required.`,
+ path: ["pincode"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -476,6 +628,14 @@ class Logistic {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -513,6 +673,14 @@ class Logistic {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -552,6 +720,27 @@ class Logistic {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!countryIsoCode) {
+ invalidInput.push({
+ message: `The 'countryIsoCode' field is required.`,
+ path: ["countryIsoCode"],
+ });
+ }
+ if (!templateName) {
+ invalidInput.push({
+ message: `The 'templateName' field is required.`,
+ path: ["templateName"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Order/OrderApplicationClient.js b/sdk/application/Order/OrderApplicationClient.js
index 44ae08ca4..fb8b1a132 100644
--- a/sdk/application/Order/OrderApplicationClient.js
+++ b/sdk/application/Order/OrderApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -57,6 +62,27 @@ class Order {
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -94,6 +120,21 @@ class Order {
{ shipmentId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -131,6 +172,21 @@ class Order {
{ orderId, allowInactive, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["allow_inactive"] = allowInactive;
@@ -180,6 +236,14 @@ class Order {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["status"] = status;
query_params["page_no"] = pageNo;
@@ -226,6 +290,21 @@ class Order {
{ orderId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -263,6 +342,27 @@ class Order {
{ shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (!bagId) {
+ invalidInput.push({
+ message: `The 'bagId' field is required.`,
+ path: ["bagId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -300,6 +400,21 @@ class Order {
{ shipmentId, allowInactive, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["allow_inactive"] = allowInactive;
@@ -338,6 +453,21 @@ class Order {
{ shipmentId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -375,6 +505,27 @@ class Order {
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -412,6 +563,21 @@ class Order {
{ shipmentId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -449,6 +615,21 @@ class Order {
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -486,6 +667,27 @@ class Order {
{ orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (!shipmentId) {
+ invalidInput.push({
+ message: `The 'shipmentId' field is required.`,
+ path: ["shipmentId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Payment/PaymentApplicationClient.js b/sdk/application/Payment/PaymentApplicationClient.js
index 9dfec86e5..fd7ad6bd8 100644
--- a/sdk/application/Payment/PaymentApplicationClient.js
+++ b/sdk/application/Payment/PaymentApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -114,6 +119,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -151,6 +164,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -188,6 +209,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -225,6 +254,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -262,6 +299,21 @@ class Payment {
{ cardInfo, aggregator, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!cardInfo) {
+ invalidInput.push({
+ message: `The 'cardInfo' field is required.`,
+ path: ["cardInfo"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["aggregator"] = aggregator;
@@ -300,6 +352,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -337,6 +397,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -374,6 +442,14 @@ class Payment {
{ aggregator, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["aggregator"] = aggregator;
@@ -412,6 +488,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -449,6 +533,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -486,6 +578,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -523,6 +623,14 @@ class Payment {
{ aggregator, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["aggregator"] = aggregator;
@@ -561,6 +669,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -598,6 +714,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -635,6 +759,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -672,6 +804,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -709,6 +849,14 @@ class Payment {
{ refresh, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["refresh"] = refresh;
@@ -747,6 +895,14 @@ class Payment {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -784,6 +940,14 @@ class Payment {
{ forceRefresh, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["force_refresh"] = forceRefresh;
@@ -822,6 +986,14 @@ class Payment {
{ xApiToken, refresh, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["refresh"] = refresh;
@@ -861,6 +1033,14 @@ class Payment {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -898,6 +1078,21 @@ class Payment {
{ orderId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["order_id"] = orderId;
@@ -936,6 +1131,14 @@ class Payment {
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["payment_link_id"] = paymentLinkId;
@@ -986,6 +1189,27 @@ class Payment {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!amount) {
+ invalidInput.push({
+ message: `The 'amount' field is required.`,
+ path: ["amount"],
+ });
+ }
+ if (!cartId) {
+ invalidInput.push({
+ message: `The 'cartId' field is required.`,
+ path: ["cartId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["amount"] = amount;
query_params["cart_id"] = cartId;
@@ -1033,6 +1257,21 @@ class Payment {
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!paymentLinkId) {
+ invalidInput.push({
+ message: `The 'paymentLinkId' field is required.`,
+ path: ["paymentLinkId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["payment_link_id"] = paymentLinkId;
@@ -1081,6 +1320,39 @@ class Payment {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!amount) {
+ invalidInput.push({
+ message: `The 'amount' field is required.`,
+ path: ["amount"],
+ });
+ }
+ if (!cartId) {
+ invalidInput.push({
+ message: `The 'cartId' field is required.`,
+ path: ["cartId"],
+ });
+ }
+ if (!pincode) {
+ invalidInput.push({
+ message: `The 'pincode' field is required.`,
+ path: ["pincode"],
+ });
+ }
+ if (!orderType) {
+ invalidInput.push({
+ message: `The 'orderType' field is required.`,
+ path: ["orderType"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["amount"] = amount;
query_params["cart_id"] = cartId;
@@ -1126,6 +1398,14 @@ class Payment {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1163,6 +1443,21 @@ class Payment {
{ orderId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!orderId) {
+ invalidInput.push({
+ message: `The 'orderId' field is required.`,
+ path: ["orderId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["order_id"] = orderId;
@@ -1201,6 +1496,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1238,6 +1541,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1275,6 +1586,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1312,6 +1631,14 @@ class Payment {
{ aggregator, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["aggregator"] = aggregator;
@@ -1350,6 +1677,14 @@ class Payment {
{ aggregator, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["aggregator"] = aggregator;
@@ -1388,6 +1723,14 @@ class Payment {
{ paymentLinkId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["payment_link_id"] = paymentLinkId;
@@ -1426,6 +1769,21 @@ class Payment {
{ aggregator, source, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!aggregator) {
+ invalidInput.push({
+ message: `The 'aggregator' field is required.`,
+ path: ["aggregator"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["source"] = source;
query_params["aggregator"] = aggregator;
@@ -1465,6 +1823,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1502,6 +1868,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1539,6 +1913,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1576,6 +1958,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1613,6 +2003,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1650,6 +2048,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1687,6 +2093,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1724,6 +2138,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1761,6 +2183,14 @@ class Payment {
{ ifscCode, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["ifsc_code"] = ifscCode;
@@ -1799,6 +2229,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1836,6 +2274,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1873,6 +2319,14 @@ class Payment {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Rewards/RewardsApplicationClient.js b/sdk/application/Rewards/RewardsApplicationClient.js
index e68d52295..48ab0be25 100644
--- a/sdk/application/Rewards/RewardsApplicationClient.js
+++ b/sdk/application/Rewards/RewardsApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -47,6 +52,14 @@ class Rewards {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -84,6 +97,21 @@ class Rewards {
{ name, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!name) {
+ invalidInput.push({
+ message: `The 'name' field is required.`,
+ path: ["name"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -121,6 +149,14 @@ class Rewards {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -158,6 +194,14 @@ class Rewards {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -195,6 +239,14 @@ class Rewards {
{ pageId, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["page_id"] = pageId;
query_params["page_size"] = pageSize;
@@ -234,6 +286,14 @@ class Rewards {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -271,6 +331,14 @@ class Rewards {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/application/Share/ShareApplicationClient.js b/sdk/application/Share/ShareApplicationClient.js
index 5976aacdf..b5e8ccb3f 100644
--- a/sdk/application/Share/ShareApplicationClient.js
+++ b/sdk/application/Share/ShareApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -46,6 +51,14 @@ class Share {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -83,6 +96,14 @@ class Share {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -120,6 +141,21 @@ class Share {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -157,6 +193,21 @@ class Share {
{ hash, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!hash) {
+ invalidInput.push({
+ message: `The 'hash' field is required.`,
+ path: ["hash"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -194,6 +245,21 @@ class Share {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -231,6 +297,21 @@ class Share {
{ hash, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!hash) {
+ invalidInput.push({
+ message: `The 'hash' field is required.`,
+ path: ["hash"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -268,6 +349,21 @@ class Share {
{ url, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!url) {
+ invalidInput.push({
+ message: `The 'url' field is required.`,
+ path: ["url"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["url"] = url;
diff --git a/sdk/application/Theme/ThemeApplicationClient.js b/sdk/application/Theme/ThemeApplicationClient.js
index 716570dda..b000fef32 100644
--- a/sdk/application/Theme/ThemeApplicationClient.js
+++ b/sdk/application/Theme/ThemeApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -39,6 +44,21 @@ class Theme {
{ themeId, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!themeId) {
+ invalidInput.push({
+ message: `The 'themeId' field is required.`,
+ path: ["themeId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -76,6 +96,14 @@ class Theme {
{ filters, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["filters"] = filters;
@@ -121,6 +149,27 @@ class Theme {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!themeId) {
+ invalidInput.push({
+ message: `The 'themeId' field is required.`,
+ path: ["themeId"],
+ });
+ }
+ if (!pageValue) {
+ invalidInput.push({
+ message: `The 'pageValue' field is required.`,
+ path: ["pageValue"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["filters"] = filters;
query_params["section_preview_hash"] = sectionPreviewHash;
@@ -161,6 +210,21 @@ class Theme {
{ themeId, filters, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!themeId) {
+ invalidInput.push({
+ message: `The 'themeId' field is required.`,
+ path: ["themeId"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["filters"] = filters;
diff --git a/sdk/application/User/UserApplicationClient.js b/sdk/application/User/UserApplicationClient.js
index 637e66aa3..b05deaa49 100644
--- a/sdk/application/User/UserApplicationClient.js
+++ b/sdk/application/User/UserApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -106,6 +111,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -144,6 +157,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -184,6 +205,39 @@ class User {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!active) {
+ invalidInput.push({
+ message: `The 'active' field is required.`,
+ path: ["active"],
+ });
+ }
+ if (!primary) {
+ invalidInput.push({
+ message: `The 'primary' field is required.`,
+ path: ["primary"],
+ });
+ }
+ if (!verified) {
+ invalidInput.push({
+ message: `The 'verified' field is required.`,
+ path: ["verified"],
+ });
+ }
+ if (!email) {
+ invalidInput.push({
+ message: `The 'email' field is required.`,
+ path: ["email"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
query_params["active"] = active;
@@ -234,6 +288,45 @@ class User {
} = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!active) {
+ invalidInput.push({
+ message: `The 'active' field is required.`,
+ path: ["active"],
+ });
+ }
+ if (!primary) {
+ invalidInput.push({
+ message: `The 'primary' field is required.`,
+ path: ["primary"],
+ });
+ }
+ if (!verified) {
+ invalidInput.push({
+ message: `The 'verified' field is required.`,
+ path: ["verified"],
+ });
+ }
+ if (!countryCode) {
+ invalidInput.push({
+ message: `The 'countryCode' field is required.`,
+ path: ["countryCode"],
+ });
+ }
+ if (!phone) {
+ invalidInput.push({
+ message: `The 'phone' field is required.`,
+ path: ["phone"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
query_params["active"] = active;
@@ -277,6 +370,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -314,6 +415,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -351,6 +460,14 @@ class User {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -388,6 +505,14 @@ class User {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -425,6 +550,14 @@ class User {
{ name, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["name"] = name;
@@ -463,6 +596,14 @@ class User {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["slug"] = slug;
@@ -501,6 +642,14 @@ class User {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -538,6 +687,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -576,6 +733,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -613,6 +778,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -651,6 +824,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -689,6 +870,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -727,6 +916,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -765,6 +962,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -803,6 +1008,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -840,6 +1053,14 @@ class User {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -877,6 +1098,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -915,6 +1144,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -952,6 +1189,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -990,6 +1235,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1028,6 +1281,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1066,6 +1327,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1104,6 +1373,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1142,6 +1419,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1180,6 +1465,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1217,6 +1510,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1255,6 +1556,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1293,6 +1602,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1330,6 +1647,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1367,6 +1692,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1404,6 +1737,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1442,6 +1783,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1479,6 +1828,21 @@ class User {
{ q, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!q) {
+ invalidInput.push({
+ message: `The 'q' field is required.`,
+ path: ["q"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["q"] = q;
@@ -1517,6 +1881,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1554,6 +1926,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1592,6 +1972,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1630,6 +2018,14 @@ class User {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
@@ -1667,6 +2063,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
@@ -1705,6 +2109,14 @@ class User {
{ body, platform, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
query_params["platform"] = platform;
diff --git a/sdk/application/Webhook/WebhookApplicationClient.js b/sdk/application/Webhook/WebhookApplicationClient.js
index 3a73d9c1b..1680bc854 100644
--- a/sdk/application/Webhook/WebhookApplicationClient.js
+++ b/sdk/application/Webhook/WebhookApplicationClient.js
@@ -1,3 +1,8 @@
+const {
+ FDKClientValidationError,
+ FDKResponseValidationError,
+} = require("../../common/FDKError");
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
const constructUrl = require("../constructUrl");
const Paginator = require("../../common/Paginator");
@@ -37,6 +42,14 @@ class Webhook {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const query_params = {};
const xHeaders = {};
diff --git a/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts
index 424ff7a94..0982f2f03 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts
+++ b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts
@@ -142,5 +142,15 @@ declare class FileStorage {
* @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveProxyDetails/).
*/
saveProxyDetails({ body, requestHeaders }?: FileStoragePartnerValidator.SaveProxyDetailsParam, { responseHeaders }?: object): Promise;
+ /**
+ * @param {FileStoragePartnerValidator.SignUrlsParam} arg - Arg object.
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
+ * @param {import("../PartnerAPIClient").Options} - Options
+ * @returns {Promise} - Success response
+ * @name signUrls
+ * @summary: Signs file URLs
+ * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/signUrls/).
+ */
+ signUrls({ body, requestHeaders }?: FileStoragePartnerValidator.SignUrlsParam, { responseHeaders }?: object): Promise;
}
import FileStoragePartnerModel = require("./FileStoragePartnerModel");
diff --git a/sdk/partner/FileStorage/FileStoragePartnerClient.js b/sdk/partner/FileStorage/FileStoragePartnerClient.js
index 0dcceae24..924cdefae 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerClient.js
+++ b/sdk/partner/FileStorage/FileStoragePartnerClient.js
@@ -853,5 +853,80 @@ class FileStorage {
return response;
}
+
+ /**
+ * @param {FileStoragePartnerValidator.SignUrlsParam} arg - Arg object.
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
+ * @param {import("../PartnerAPIClient").Options} - Options
+ * @returns {Promise} - Success response
+ * @name signUrls
+ * @summary: Signs file URLs
+ * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/signUrls/).
+ */
+ async signUrls(
+ { body, requestHeaders } = { requestHeaders: {} },
+ { responseHeaders } = { responseHeaders: false }
+ ) {
+ const { error } = FileStoragePartnerValidator.signUrls().validate(
+ {
+ body,
+ },
+ { abortEarly: false, allowUnknown: true }
+ );
+ if (error) {
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
+ // Showing warrnings if extra unknown parameters are found
+ const { error: warrning } = FileStoragePartnerValidator.signUrls().validate(
+ {
+ body,
+ },
+ { abortEarly: false, allowUnknown: false }
+ );
+ if (warrning) {
+ Logger({
+ level: "WARN",
+ message: `Parameter Validation warrnings for partner > FileStorage > signUrls \n ${warrning}`,
+ });
+ }
+
+ const query_params = {};
+
+ const response = await PartnerAPIClient.execute(
+ this.config,
+ "post",
+ `/service/partner/assets/v1.0/organization/${this.config.organizationId}/sign-urls`,
+ query_params,
+ body,
+ requestHeaders,
+ { responseHeaders }
+ );
+
+ let responseData = response;
+ if (responseHeaders) {
+ responseData = response[0];
+ }
+
+ const {
+ error: res_error,
+ } = FileStoragePartnerModel.SignUrlResult().validate(responseData, {
+ abortEarly: false,
+ allowUnknown: true,
+ });
+
+ if (res_error) {
+ if (this.config.options.strictResponseCheck === true) {
+ return Promise.reject(new FDKResponseValidationError(res_error));
+ } else {
+ Logger({
+ level: "WARN",
+ message: `Response Validation Warnings for partner > FileStorage > signUrls \n ${res_error}`,
+ });
+ }
+ }
+
+ return response;
+ }
}
module.exports = FileStorage;
diff --git a/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts b/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts
index 5dc8a408c..881a5c7e6 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts
+++ b/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts
@@ -95,10 +95,26 @@ export = FileStoragePartnerModel;
* @typedef FailedBrowseFilesResult
* @property {string} message
*/
+/**
+ * @typedef SignedUrl
+ * @property {string} url - This is the original asset URL provided in the
+ * request. This is the URL for which a signed URL has been generated.
+ * @property {string} signed_url - Generated signed URL.
+ * @property {number} expiry - The expiration time for the signed URL in seconds.
+ */
+/**
+ * @typedef SignUrlResult
+ * @property {SignedUrl[]} urls - Signed URL object.
+ */
+/**
+ * @typedef SignUrl
+ * @property {number} expiry - The expiration time for the signed URL.
+ * @property {string[]} urls - List of asset URLs to be signed.
+ */
declare class FileStoragePartnerModel {
}
declare namespace FileStoragePartnerModel {
- export { SizeConstraints, SaveProxy, ProxyFileData, ProxyFile, FetchProxyDetails, NamespaceDetails, AllNamespaceDetails, CDN, Upload, FileUpload, FileUploadStart, CreatedBy, FileUploadComplete, FailedBrowseFilesResult };
+ export { SizeConstraints, SaveProxy, ProxyFileData, ProxyFile, FetchProxyDetails, NamespaceDetails, AllNamespaceDetails, CDN, Upload, FileUpload, FileUploadStart, CreatedBy, FileUploadComplete, FailedBrowseFilesResult, SignedUrl, SignUrlResult, SignUrl };
}
/** @returns {SizeConstraints} */
declare function SizeConstraints(): SizeConstraints;
@@ -222,3 +238,40 @@ declare function FailedBrowseFilesResult(): FailedBrowseFilesResult;
type FailedBrowseFilesResult = {
message: string;
};
+/** @returns {SignedUrl} */
+declare function SignedUrl(): SignedUrl;
+type SignedUrl = {
+ /**
+ * - This is the original asset URL provided in the
+ * request. This is the URL for which a signed URL has been generated.
+ */
+ url: string;
+ /**
+ * - Generated signed URL.
+ */
+ signed_url: string;
+ /**
+ * - The expiration time for the signed URL in seconds.
+ */
+ expiry: number;
+};
+/** @returns {SignUrlResult} */
+declare function SignUrlResult(): SignUrlResult;
+type SignUrlResult = {
+ /**
+ * - Signed URL object.
+ */
+ urls: SignedUrl[];
+};
+/** @returns {SignUrl} */
+declare function SignUrl(): SignUrl;
+type SignUrl = {
+ /**
+ * - The expiration time for the signed URL.
+ */
+ expiry: number;
+ /**
+ * - List of asset URLs to be signed.
+ */
+ urls: string[];
+};
diff --git a/sdk/partner/FileStorage/FileStoragePartnerModel.js b/sdk/partner/FileStorage/FileStoragePartnerModel.js
index fd47800e4..4e4d950ba 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerModel.js
+++ b/sdk/partner/FileStorage/FileStoragePartnerModel.js
@@ -110,6 +110,25 @@ const Joi = require("joi");
* @property {string} message
*/
+/**
+ * @typedef SignedUrl
+ * @property {string} url - This is the original asset URL provided in the
+ * request. This is the URL for which a signed URL has been generated.
+ * @property {string} signed_url - Generated signed URL.
+ * @property {number} expiry - The expiration time for the signed URL in seconds.
+ */
+
+/**
+ * @typedef SignUrlResult
+ * @property {SignedUrl[]} urls - Signed URL object.
+ */
+
+/**
+ * @typedef SignUrl
+ * @property {number} expiry - The expiration time for the signed URL.
+ * @property {string[]} urls - List of asset URLs to be signed.
+ */
+
class FileStoragePartnerModel {
/** @returns {SizeConstraints} */
static SizeConstraints() {
@@ -249,5 +268,29 @@ class FileStoragePartnerModel {
message: Joi.string().allow("").required(),
});
}
+
+ /** @returns {SignedUrl} */
+ static SignedUrl() {
+ return Joi.object({
+ url: Joi.string().allow("").required(),
+ signed_url: Joi.string().allow("").required(),
+ expiry: Joi.number().required(),
+ });
+ }
+
+ /** @returns {SignUrlResult} */
+ static SignUrlResult() {
+ return Joi.object({
+ urls: Joi.array().items(FileStoragePartnerModel.SignedUrl()).required(),
+ });
+ }
+
+ /** @returns {SignUrl} */
+ static SignUrl() {
+ return Joi.object({
+ expiry: Joi.number().required(),
+ urls: Joi.array().items(Joi.string().allow("")).required(),
+ });
+ }
}
module.exports = FileStoragePartnerModel;
diff --git a/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts b/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts
index f4319a907..136690037 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts
+++ b/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts
@@ -10,4 +10,5 @@ declare class FileStorageValidator {
static saveOrganizationLevelProxy(): any;
static fetchProxy(): any;
static saveProxyDetails(): any;
+ static signUrls(): any;
}
diff --git a/sdk/partner/FileStorage/FileStoragePartnerValidator.js b/sdk/partner/FileStorage/FileStoragePartnerValidator.js
index d00c9fce9..b12928050 100644
--- a/sdk/partner/FileStorage/FileStoragePartnerValidator.js
+++ b/sdk/partner/FileStorage/FileStoragePartnerValidator.js
@@ -75,6 +75,12 @@ class FileStorageValidator {
body: FileStorageModel.ProxyFile().required(),
}).required();
}
+
+ static signUrls() {
+ return Joi.object({
+ body: FileStorageModel.SignUrl().required(),
+ }).required();
+ }
}
module.exports = FileStorageValidator;
diff --git a/sdk/partner/Webhook/WebhookPartnerModel.d.ts b/sdk/partner/Webhook/WebhookPartnerModel.d.ts
index a90e0d58e..8333d1034 100644
--- a/sdk/partner/Webhook/WebhookPartnerModel.d.ts
+++ b/sdk/partner/Webhook/WebhookPartnerModel.d.ts
@@ -171,7 +171,7 @@ export = WebhookPartnerModel;
*/
/**
* @typedef DeliveryTsResult
- * @property {DeliveryTsSchema[]} [delivery_ts]
+ * @property {DeliveryTsSchema[]} [delivery_ts] - List of delivery timestamps.
*/
/**
* @typedef DeliveryTsSchema
@@ -251,7 +251,8 @@ export = WebhookPartnerModel;
*/
/**
* @typedef ResponseTimeTs
- * @property {AvgResponseTime[]} [avg_response_time_ts]
+ * @property {AvgResponseTime[]} [avg_response_time_ts] - List of average
+ * response time timestamps.
*/
/**
* @typedef AvgResponseTime
@@ -266,7 +267,8 @@ export = WebhookPartnerModel;
*/
/**
* @typedef DeliverySummaryResult
- * @property {DeliveryEventLevelSchema[]} [delivery_event_level]
+ * @property {DeliveryEventLevelSchema[]} [delivery_event_level] - List of
+ * delivery event levels.
* @property {DeliverySummarySchema} [delivery_summary]
*/
/**
@@ -694,6 +696,9 @@ type FilterReportResult = {
/** @returns {DeliveryTsResult} */
declare function DeliveryTsResult(): DeliveryTsResult;
type DeliveryTsResult = {
+ /**
+ * - List of delivery timestamps.
+ */
delivery_ts?: DeliveryTsSchema[];
};
/** @returns {DeliveryTsSchema} */
@@ -908,6 +913,10 @@ type DeliveryEventLevelSchema = {
/** @returns {ResponseTimeTs} */
declare function ResponseTimeTs(): ResponseTimeTs;
type ResponseTimeTs = {
+ /**
+ * - List of average
+ * response time timestamps.
+ */
avg_response_time_ts?: AvgResponseTime[];
};
/** @returns {AvgResponseTime} */
@@ -940,6 +949,10 @@ type AvgResponseTime = {
/** @returns {DeliverySummaryResult} */
declare function DeliverySummaryResult(): DeliverySummaryResult;
type DeliverySummaryResult = {
+ /**
+ * - List of
+ * delivery event levels.
+ */
delivery_event_level?: DeliveryEventLevelSchema[];
delivery_summary?: DeliverySummarySchema;
};
diff --git a/sdk/partner/Webhook/WebhookPartnerModel.js b/sdk/partner/Webhook/WebhookPartnerModel.js
index fcbdbaf77..67ec60ccb 100644
--- a/sdk/partner/Webhook/WebhookPartnerModel.js
+++ b/sdk/partner/Webhook/WebhookPartnerModel.js
@@ -192,7 +192,7 @@ const Joi = require("joi");
/**
* @typedef DeliveryTsResult
- * @property {DeliveryTsSchema[]} [delivery_ts]
+ * @property {DeliveryTsSchema[]} [delivery_ts] - List of delivery timestamps.
*/
/**
@@ -280,7 +280,8 @@ const Joi = require("joi");
/**
* @typedef ResponseTimeTs
- * @property {AvgResponseTime[]} [avg_response_time_ts]
+ * @property {AvgResponseTime[]} [avg_response_time_ts] - List of average
+ * response time timestamps.
*/
/**
@@ -297,7 +298,8 @@ const Joi = require("joi");
/**
* @typedef DeliverySummaryResult
- * @property {DeliveryEventLevelSchema[]} [delivery_event_level]
+ * @property {DeliveryEventLevelSchema[]} [delivery_event_level] - List of
+ * delivery event levels.
* @property {DeliverySummarySchema} [delivery_summary]
*/
diff --git a/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts b/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts
index b95f5e6fa..4861bcb87 100644
--- a/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts
+++ b/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts
@@ -9,7 +9,7 @@ export = AnalyticsPlatformApplicationValidator;
*/
/**
* @typedef StartDownloadForQueryV2Param
- * @property {string} exportType
+ * @property {string} exportType - Format in which to be exported(eg. CSV or excel).
* @property {AnalyticsPlatformModel.FileDownloadRequestBody} body
*/
declare class AnalyticsPlatformApplicationValidator {
@@ -33,6 +33,9 @@ type ExecuteJobForProvidedParametersV2Param = {
body: AnalyticsPlatformModel.JobExecute;
};
type StartDownloadForQueryV2Param = {
+ /**
+ * - Format in which to be exported(eg. CSV or excel).
+ */
exportType: string;
body: AnalyticsPlatformModel.FileDownloadRequestBody;
};
diff --git a/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js b/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js
index 16a3174df..7e31dc42b 100644
--- a/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js
+++ b/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js
@@ -14,7 +14,7 @@ const AnalyticsPlatformModel = require("./AnalyticsPlatformModel");
/**
* @typedef StartDownloadForQueryV2Param
- * @property {string} exportType
+ * @property {string} exportType - Format in which to be exported(eg. CSV or excel).
* @property {AnalyticsPlatformModel.FileDownloadRequestBody} body
*/
diff --git a/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts b/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts
index dcbfcb3f3..0f9c9c2a3 100644
--- a/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts
+++ b/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts
@@ -2,71 +2,94 @@ export = AuditTrailPlatformModel;
/**
* @typedef RequestBodyAuditLog
* @property {LogMetaObj} log_meta
- * @property {Object} log_payload
+ * @property {Object} log_payload - Detailed information about payload.
*/
/**
* @typedef CreateLogResp
- * @property {string} [message]
- * @property {string} [internal_message]
+ * @property {string} [message] - Acknowledgement about success or failure of audit log.
+ * @property {string} [internal_message] - Status of audit log in internal system.
*/
/**
* @typedef LogMetaObj
- * @property {Object} [modifier]
- * @property {string} [application]
+ * @property {Object} [modifier] - Details about user responsible for modifying events.
+ * @property {string} [application] - The application id generating the log event.
* @property {EntityObject} [entity]
- * @property {Object} [device_info]
- * @property {Object} [location]
- * @property {string} [sessions]
+ * @property {Object} [device_info] - Contains device-specific information for
+ * the log event.
+ * @property {Object} [location] - Holds location-related data for the event context.
+ * @property {string} [sessions] - Identifies the session associated with the log event.
*/
/**
* @typedef EntityObject
- * @property {string} [id]
- * @property {string} [type]
- * @property {string} [action]
- */
-/**
- * @typedef BadRequestSchema
- * @property {string} [message] - Failure message.
+ * @property {string} [id] - Unique identifier for the entity.
+ * @property {string} [type] - The type/category of the entity.
+ * @property {string} [action] - The action performed on or by the entity.
*/
declare class AuditTrailPlatformModel {
}
declare namespace AuditTrailPlatformModel {
- export { RequestBodyAuditLog, CreateLogResp, LogMetaObj, EntityObject, BadRequestSchema };
+ export { RequestBodyAuditLog, CreateLogResp, LogMetaObj, EntityObject };
}
/** @returns {RequestBodyAuditLog} */
declare function RequestBodyAuditLog(): RequestBodyAuditLog;
type RequestBodyAuditLog = {
log_meta: LogMetaObj;
+ /**
+ * - Detailed information about payload.
+ */
log_payload: any;
};
/** @returns {CreateLogResp} */
declare function CreateLogResp(): CreateLogResp;
type CreateLogResp = {
+ /**
+ * - Acknowledgement about success or failure of audit log.
+ */
message?: string;
+ /**
+ * - Status of audit log in internal system.
+ */
internal_message?: string;
};
/** @returns {LogMetaObj} */
declare function LogMetaObj(): LogMetaObj;
type LogMetaObj = {
+ /**
+ * - Details about user responsible for modifying events.
+ */
modifier?: any;
+ /**
+ * - The application id generating the log event.
+ */
application?: string;
entity?: EntityObject;
+ /**
+ * - Contains device-specific information for
+ * the log event.
+ */
device_info?: any;
+ /**
+ * - Holds location-related data for the event context.
+ */
location?: any;
+ /**
+ * - Identifies the session associated with the log event.
+ */
sessions?: string;
};
/** @returns {EntityObject} */
declare function EntityObject(): EntityObject;
type EntityObject = {
+ /**
+ * - Unique identifier for the entity.
+ */
id?: string;
+ /**
+ * - The type/category of the entity.
+ */
type?: string;
- action?: string;
-};
-/** @returns {BadRequestSchema} */
-declare function BadRequestSchema(): BadRequestSchema;
-type BadRequestSchema = {
/**
- * - Failure message.
+ * - The action performed on or by the entity.
*/
- message?: string;
+ action?: string;
};
diff --git a/sdk/platform/AuditTrail/AuditTrailPlatformModel.js b/sdk/platform/AuditTrail/AuditTrailPlatformModel.js
index 950c51c60..82d900ab7 100644
--- a/sdk/platform/AuditTrail/AuditTrailPlatformModel.js
+++ b/sdk/platform/AuditTrail/AuditTrailPlatformModel.js
@@ -3,35 +3,31 @@ const Joi = require("joi");
/**
* @typedef RequestBodyAuditLog
* @property {LogMetaObj} log_meta
- * @property {Object} log_payload
+ * @property {Object} log_payload - Detailed information about payload.
*/
/**
* @typedef CreateLogResp
- * @property {string} [message]
- * @property {string} [internal_message]
+ * @property {string} [message] - Acknowledgement about success or failure of audit log.
+ * @property {string} [internal_message] - Status of audit log in internal system.
*/
/**
* @typedef LogMetaObj
- * @property {Object} [modifier]
- * @property {string} [application]
+ * @property {Object} [modifier] - Details about user responsible for modifying events.
+ * @property {string} [application] - The application id generating the log event.
* @property {EntityObject} [entity]
- * @property {Object} [device_info]
- * @property {Object} [location]
- * @property {string} [sessions]
+ * @property {Object} [device_info] - Contains device-specific information for
+ * the log event.
+ * @property {Object} [location] - Holds location-related data for the event context.
+ * @property {string} [sessions] - Identifies the session associated with the log event.
*/
/**
* @typedef EntityObject
- * @property {string} [id]
- * @property {string} [type]
- * @property {string} [action]
- */
-
-/**
- * @typedef BadRequestSchema
- * @property {string} [message] - Failure message.
+ * @property {string} [id] - Unique identifier for the entity.
+ * @property {string} [type] - The type/category of the entity.
+ * @property {string} [action] - The action performed on or by the entity.
*/
class AuditTrailPlatformModel {
@@ -71,12 +67,5 @@ class AuditTrailPlatformModel {
action: Joi.string().allow(""),
});
}
-
- /** @returns {BadRequestSchema} */
- static BadRequestSchema() {
- return Joi.object({
- message: Joi.string().allow(""),
- });
- }
}
module.exports = AuditTrailPlatformModel;
diff --git a/sdk/platform/Cart/CartPlatformModel.d.ts b/sdk/platform/Cart/CartPlatformModel.d.ts
index cdc9d135d..6318900a4 100644
--- a/sdk/platform/Cart/CartPlatformModel.d.ts
+++ b/sdk/platform/Cart/CartPlatformModel.d.ts
@@ -1434,6 +1434,19 @@ export = CartPlatformModel;
* @property {boolean} [partial] - When adding multiple items check if all
* added. True if only few are added.
* @property {string} [message] - Message of add cart API response
+ * @property {Object} [result] - Add to cart result data
+ * @property {CartItemInfo[]} [items] - List of items that needs to be added in cart.
+ */
+/**
+ * @typedef CartItemInfo
+ * @property {number} [item_id] - Item id of the product that needs to be
+ * added/updated/removed.
+ * @property {string} [size] - Item size of the product that needs to be
+ * added/updated/removed.
+ * @property {number} [store_id] - Unique identifier of the store selected by
+ * the user from which user want to buy a product.
+ * @property {boolean} [success] - True if items are added/updated/removed successfully.
+ * @property {string} [message] - Message for added/updated/removed item.
*/
/**
* @typedef UpdateProductCart
@@ -1468,6 +1481,8 @@ export = CartPlatformModel;
* @property {boolean} [success] - True if all items are added successfully.
* False if partially added or not added.
* @property {CartDetailResult} [cart]
+ * @property {Object} [result] - Contains article related result info
+ * @property {CartItemInfo[]} [items] - List of items that needs to be updated in cart.
* @property {string} [message] - Message of update cart API response
*/
/**
@@ -2266,7 +2281,7 @@ export = CartPlatformModel;
declare class CartPlatformModel {
}
declare namespace CartPlatformModel {
- export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError };
+ export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError };
}
/** @returns {CouponDateMeta} */
declare function CouponDateMeta(): CouponDateMeta;
@@ -5863,6 +5878,41 @@ type AddCartDetailResult = {
* - Message of add cart API response
*/
message?: string;
+ /**
+ * - Add to cart result data
+ */
+ result?: any;
+ /**
+ * - List of items that needs to be added in cart.
+ */
+ items?: CartItemInfo[];
+};
+/** @returns {CartItemInfo} */
+declare function CartItemInfo(): CartItemInfo;
+type CartItemInfo = {
+ /**
+ * - Item id of the product that needs to be
+ * added/updated/removed.
+ */
+ item_id?: number;
+ /**
+ * - Item size of the product that needs to be
+ * added/updated/removed.
+ */
+ size?: string;
+ /**
+ * - Unique identifier of the store selected by
+ * the user from which user want to buy a product.
+ */
+ store_id?: number;
+ /**
+ * - True if items are added/updated/removed successfully.
+ */
+ success?: boolean;
+ /**
+ * - Message for added/updated/removed item.
+ */
+ message?: string;
};
/** @returns {UpdateProductCart} */
declare function UpdateProductCart(): UpdateProductCart;
@@ -5946,6 +5996,14 @@ type UpdateCartDetailResult = {
*/
success?: boolean;
cart?: CartDetailResult;
+ /**
+ * - Contains article related result info
+ */
+ result?: any;
+ /**
+ * - List of items that needs to be updated in cart.
+ */
+ items?: CartItemInfo[];
/**
* - Message of update cart API response
*/
diff --git a/sdk/platform/Cart/CartPlatformModel.js b/sdk/platform/Cart/CartPlatformModel.js
index 971dab0ff..9cd2d9aa5 100644
--- a/sdk/platform/Cart/CartPlatformModel.js
+++ b/sdk/platform/Cart/CartPlatformModel.js
@@ -1566,6 +1566,20 @@ const Joi = require("joi");
* @property {boolean} [partial] - When adding multiple items check if all
* added. True if only few are added.
* @property {string} [message] - Message of add cart API response
+ * @property {Object} [result] - Add to cart result data
+ * @property {CartItemInfo[]} [items] - List of items that needs to be added in cart.
+ */
+
+/**
+ * @typedef CartItemInfo
+ * @property {number} [item_id] - Item id of the product that needs to be
+ * added/updated/removed.
+ * @property {string} [size] - Item size of the product that needs to be
+ * added/updated/removed.
+ * @property {number} [store_id] - Unique identifier of the store selected by
+ * the user from which user want to buy a product.
+ * @property {boolean} [success] - True if items are added/updated/removed successfully.
+ * @property {string} [message] - Message for added/updated/removed item.
*/
/**
@@ -1604,6 +1618,8 @@ const Joi = require("joi");
* @property {boolean} [success] - True if all items are added successfully.
* False if partially added or not added.
* @property {CartDetailResult} [cart]
+ * @property {Object} [result] - Contains article related result info
+ * @property {CartItemInfo[]} [items] - List of items that needs to be updated in cart.
* @property {string} [message] - Message of update cart API response
*/
@@ -4112,6 +4128,19 @@ class CartPlatformModel {
cart: CartPlatformModel.CartDetailResult(),
partial: Joi.boolean(),
message: Joi.string().allow(""),
+ result: Joi.object().pattern(/\S/, Joi.any()),
+ items: Joi.array().items(CartPlatformModel.CartItemInfo()),
+ });
+ }
+
+ /** @returns {CartItemInfo} */
+ static CartItemInfo() {
+ return Joi.object({
+ item_id: Joi.number(),
+ size: Joi.string().allow(""),
+ store_id: Joi.number(),
+ success: Joi.boolean(),
+ message: Joi.string().allow(""),
});
}
@@ -4156,6 +4185,8 @@ class CartPlatformModel {
return Joi.object({
success: Joi.boolean(),
cart: CartPlatformModel.CartDetailResult(),
+ result: Joi.object().pattern(/\S/, Joi.any()),
+ items: Joi.array().items(CartPlatformModel.CartItemInfo()),
message: Joi.string().allow(""),
});
}
diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts
index 3934d4a7c..020b56dcd 100644
--- a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts
+++ b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts
@@ -153,18 +153,6 @@ declare class Content {
* @description: Generate and add a new page to the platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPage/).
*/
createPage({ body, requestHeaders }?: ContentPlatformApplicationValidator.CreatePageParam, { responseHeaders }?: object): Promise;
- /**
- * @param {ContentPlatformApplicationValidator.CreatePagePreviewParam} arg
- * - Arg object
- *
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
- * @param {import("../PlatformAPIClient").Options} - Options
- * @returns {Promise} - Success response
- * @name createPagePreview
- * @summary: Create page preview
- * @description: Generate and add a new page preview. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPagePreview/).
- */
- createPagePreview({ body, requestHeaders }?: ContentPlatformApplicationValidator.CreatePagePreviewParam, { responseHeaders }?: object): Promise;
/**
* @param {ContentPlatformApplicationValidator.CreateSEOMarkupSchemaParam} arg
* - Arg object
diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.js b/sdk/platform/Content/ContentPlatformApplicationClient.js
index d116d379f..d563f13ea 100644
--- a/sdk/platform/Content/ContentPlatformApplicationClient.js
+++ b/sdk/platform/Content/ContentPlatformApplicationClient.js
@@ -1062,87 +1062,6 @@ class Content {
return response;
}
- /**
- * @param {ContentPlatformApplicationValidator.CreatePagePreviewParam} arg
- * - Arg object
- *
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
- * @param {import("../PlatformAPIClient").Options} - Options
- * @returns {Promise} - Success response
- * @name createPagePreview
- * @summary: Create page preview
- * @description: Generate and add a new page preview. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPagePreview/).
- */
- async createPagePreview(
- { body, requestHeaders } = { requestHeaders: {} },
- { responseHeaders } = { responseHeaders: false }
- ) {
- const {
- error,
- } = ContentPlatformApplicationValidator.createPagePreview().validate(
- {
- body,
- },
- { abortEarly: false, allowUnknown: true }
- );
- if (error) {
- return Promise.reject(new FDKClientValidationError(error));
- }
-
- // Showing warrnings if extra unknown parameters are found
- const {
- error: warrning,
- } = ContentPlatformApplicationValidator.createPagePreview().validate(
- {
- body,
- },
- { abortEarly: false, allowUnknown: false }
- );
- if (warrning) {
- Logger({
- level: "WARN",
- message: `Parameter Validation warrnings for platform > Content > createPagePreview \n ${warrning}`,
- });
- }
-
- const query_params = {};
-
- const response = await PlatformAPIClient.execute(
- this.config,
- "post",
- `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/preview/`,
- query_params,
- body,
- requestHeaders,
- { responseHeaders }
- );
-
- let responseData = response;
- if (responseHeaders) {
- responseData = response[0];
- }
-
- const {
- error: res_error,
- } = ContentPlatformModel.PageSchema().validate(responseData, {
- abortEarly: false,
- allowUnknown: true,
- });
-
- if (res_error) {
- if (this.config.options.strictResponseCheck === true) {
- return Promise.reject(new FDKResponseValidationError(res_error));
- } else {
- Logger({
- level: "WARN",
- message: `Response Validation Warnings for platform > Content > createPagePreview \n ${res_error}`,
- });
- }
- }
-
- return response;
- }
-
/**
* @param {ContentPlatformApplicationValidator.CreateSEOMarkupSchemaParam} arg
* - Arg object
diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts
index 696237ae2..f41024773 100644
--- a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts
+++ b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts
@@ -54,10 +54,6 @@ export = ContentPlatformApplicationValidator;
* @typedef CreatePageParam
* @property {ContentPlatformModel.PagePayload} body
*/
-/**
- * @typedef CreatePagePreviewParam
- * @property {ContentPlatformModel.PagePayload} body
- */
/**
* @typedef CreateSEOMarkupSchemaParam
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
@@ -474,8 +470,6 @@ declare class ContentPlatformApplicationValidator {
static createNavigation(): CreateNavigationParam;
/** @returns {CreatePageParam} */
static createPage(): CreatePageParam;
- /** @returns {CreatePagePreviewParam} */
- static createPagePreview(): CreatePagePreviewParam;
/** @returns {CreateSEOMarkupSchemaParam} */
static createSEOMarkupSchema(): CreateSEOMarkupSchemaParam;
/** @returns {DeleteAnnouncementParam} */
@@ -638,7 +632,7 @@ declare class ContentPlatformApplicationValidator {
static updateSupportInformation(): UpdateSupportInformationParam;
}
declare namespace ContentPlatformApplicationValidator {
- export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreatePagePreviewParam, CreateSEOMarkupSchemaParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateInjectableTagParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam };
+ export { AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, CreateAnnouncementParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreateSEOMarkupSchemaParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateInjectableTagParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam };
}
type AddDataLoaderParam = {
body: ContentPlatformModel.DataLoaderSchema;
@@ -685,9 +679,6 @@ type CreateNavigationParam = {
type CreatePageParam = {
body: ContentPlatformModel.PagePayload;
};
-type CreatePagePreviewParam = {
- body: ContentPlatformModel.PagePayload;
-};
type CreateSEOMarkupSchemaParam = {
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody;
};
diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.js b/sdk/platform/Content/ContentPlatformApplicationValidator.js
index e259f971a..1954f52cb 100644
--- a/sdk/platform/Content/ContentPlatformApplicationValidator.js
+++ b/sdk/platform/Content/ContentPlatformApplicationValidator.js
@@ -70,11 +70,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
* @property {ContentPlatformModel.PagePayload} body
*/
-/**
- * @typedef CreatePagePreviewParam
- * @property {ContentPlatformModel.PagePayload} body
- */
-
/**
* @typedef CreateSEOMarkupSchemaParam
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
@@ -639,13 +634,6 @@ class ContentPlatformApplicationValidator {
}).required();
}
- /** @returns {CreatePagePreviewParam} */
- static createPagePreview() {
- return Joi.object({
- body: ContentPlatformModel.PagePayload().required(),
- }).required();
- }
-
/** @returns {CreateSEOMarkupSchemaParam} */
static createSEOMarkupSchema() {
return Joi.object({
diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts
index d9e055c90..c3a7b5edc 100644
--- a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts
+++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts
@@ -603,6 +603,19 @@ declare class Payment {
* @description: Allows users to update the details of a refund session associated with a specific global identifier (GID) and request ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateRefundSession/).
*/
updateRefundSession({ gid, requestId, body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateRefundSessionParam, { responseHeaders }?: object): Promise;
+ /**
+ * @param {PaymentPlatformApplicationValidator.ValidateCustomerAndCreditSummaryParam} arg
+ * - Arg object
+ *
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
+ * @param {import("../PlatformAPIClient").Options} - Options
+ * @returns {Promise} -
+ * Success response
+ * @name validateCustomerAndCreditSummary
+ * @summary: Verify payment customer and show credit summary
+ * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/validateCustomerAndCreditSummary/).
+ */
+ validateCustomerAndCreditSummary({ body, requestHeaders }?: PaymentPlatformApplicationValidator.ValidateCustomerAndCreditSummaryParam, { responseHeaders }?: object): Promise;
/**
* @param {PaymentPlatformApplicationValidator.VerifyCustomerForPaymentParam} arg
* - Arg object
diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.js b/sdk/platform/Payment/PaymentPlatformApplicationClient.js
index c506f547b..8dd103d90 100644
--- a/sdk/platform/Payment/PaymentPlatformApplicationClient.js
+++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.js
@@ -4122,6 +4122,88 @@ class Payment {
return response;
}
+ /**
+ * @param {PaymentPlatformApplicationValidator.ValidateCustomerAndCreditSummaryParam} arg
+ * - Arg object
+ *
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
+ * @param {import("../PlatformAPIClient").Options} - Options
+ * @returns {Promise} -
+ * Success response
+ * @name validateCustomerAndCreditSummary
+ * @summary: Verify payment customer and show credit summary
+ * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/validateCustomerAndCreditSummary/).
+ */
+ async validateCustomerAndCreditSummary(
+ { body, requestHeaders } = { requestHeaders: {} },
+ { responseHeaders } = { responseHeaders: false }
+ ) {
+ const {
+ error,
+ } = PaymentPlatformApplicationValidator.validateCustomerAndCreditSummary().validate(
+ {
+ body,
+ },
+ { abortEarly: false, allowUnknown: true }
+ );
+ if (error) {
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
+ // Showing warrnings if extra unknown parameters are found
+ const {
+ error: warrning,
+ } = PaymentPlatformApplicationValidator.validateCustomerAndCreditSummary().validate(
+ {
+ body,
+ },
+ { abortEarly: false, allowUnknown: false }
+ );
+ if (warrning) {
+ Logger({
+ level: "WARN",
+ message: `Parameter Validation warrnings for platform > Payment > validateCustomerAndCreditSummary \n ${warrning}`,
+ });
+ }
+
+ const query_params = {};
+
+ const response = await PlatformAPIClient.execute(
+ this.config,
+ "post",
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/validate/customer-credits`,
+ query_params,
+ body,
+ requestHeaders,
+ { responseHeaders }
+ );
+
+ let responseData = response;
+ if (responseHeaders) {
+ responseData = response[0];
+ }
+
+ const {
+ error: res_error,
+ } = PaymentPlatformModel.ValidateCustomerCreditSchema().validate(
+ responseData,
+ { abortEarly: false, allowUnknown: true }
+ );
+
+ if (res_error) {
+ if (this.config.options.strictResponseCheck === true) {
+ return Promise.reject(new FDKResponseValidationError(res_error));
+ } else {
+ Logger({
+ level: "WARN",
+ message: `Response Validation Warnings for platform > Payment > validateCustomerAndCreditSummary \n ${res_error}`,
+ });
+ }
+ }
+
+ return response;
+ }
+
/**
* @param {PaymentPlatformApplicationValidator.VerifyCustomerForPaymentParam} arg
* - Arg object
diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts
index 126af666a..c71da4b31 100644
--- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts
+++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts
@@ -239,6 +239,10 @@ export = PaymentPlatformApplicationValidator;
* session. This is generated by Fynd platform and is usually shipment_id.
* @property {PaymentPlatformModel.RefundSessionCreation} body
*/
+/**
+ * @typedef ValidateCustomerAndCreditSummaryParam
+ * @property {PaymentPlatformModel.CustomerValidationSchema} body
+ */
/**
* @typedef VerifyCustomerForPaymentParam
* @property {PaymentPlatformModel.ValidateCustomerCreation} body
@@ -342,11 +346,13 @@ declare class PaymentPlatformApplicationValidator {
static updatePaymentSession(): UpdatePaymentSessionParam;
/** @returns {UpdateRefundSessionParam} */
static updateRefundSession(): UpdateRefundSessionParam;
+ /** @returns {ValidateCustomerAndCreditSummaryParam} */
+ static validateCustomerAndCreditSummary(): ValidateCustomerAndCreditSummaryParam;
/** @returns {VerifyCustomerForPaymentParam} */
static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
}
declare namespace PaymentPlatformApplicationValidator {
- export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
+ export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, ValidateCustomerAndCreditSummaryParam, VerifyCustomerForPaymentParam };
}
type AddEdcDeviceParam = {
/**
@@ -647,6 +653,9 @@ type UpdateRefundSessionParam = {
requestId: string;
body: PaymentPlatformModel.RefundSessionCreation;
};
+type ValidateCustomerAndCreditSummaryParam = {
+ body: PaymentPlatformModel.CustomerValidationSchema;
+};
type VerifyCustomerForPaymentParam = {
body: PaymentPlatformModel.ValidateCustomerCreation;
};
diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js
index 809a15ef8..10ba8e321 100644
--- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js
+++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js
@@ -291,6 +291,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
* @property {PaymentPlatformModel.RefundSessionCreation} body
*/
+/**
+ * @typedef ValidateCustomerAndCreditSummaryParam
+ * @property {PaymentPlatformModel.CustomerValidationSchema} body
+ */
+
/**
* @typedef VerifyCustomerForPaymentParam
* @property {PaymentPlatformModel.ValidateCustomerCreation} body
@@ -671,6 +676,13 @@ class PaymentPlatformApplicationValidator {
}).required();
}
+ /** @returns {ValidateCustomerAndCreditSummaryParam} */
+ static validateCustomerAndCreditSummary() {
+ return Joi.object({
+ body: PaymentPlatformModel.CustomerValidationSchema().required(),
+ }).required();
+ }
+
/** @returns {VerifyCustomerForPaymentParam} */
static verifyCustomerForPayment() {
return Joi.object({
diff --git a/sdk/platform/Payment/PaymentPlatformModel.d.ts b/sdk/platform/Payment/PaymentPlatformModel.d.ts
index e1b8015ba..7d4d77ea4 100644
--- a/sdk/platform/Payment/PaymentPlatformModel.d.ts
+++ b/sdk/platform/Payment/PaymentPlatformModel.d.ts
@@ -1225,10 +1225,42 @@ export = PaymentPlatformModel;
* @property {string} message
* @property {PaymentModeCustomConfigSchema[]} items
*/
+/**
+ * @typedef CustomerValidationSchema
+ * @property {string} aggregator - Aggregator name of the payment gateway.
+ * @property {number} transaction_amount - Payable amount
+ * @property {string} [cart_id] - Unique identifier for the shopping cart.
+ */
+/**
+ * @typedef UserCreditSchema
+ * @property {number} amount - The monetary value, which can represent available
+ * balance, redeemed balance, or hold amount, depending on the context.
+ * @property {string} currency - The currency code (e.g., INR, USD).
+ * @property {string} [unique_id] - A unique identifier for the payment transaction.
+ */
+/**
+ * @typedef CreditAccountSummary
+ * @property {string} account_id - Unique identifier associated with the
+ * customer's account
+ * @property {string} status - Current state of the account, indicating whether
+ * it is ACTIVE, INACTIVE, or UNREGISTERED.
+ * @property {UserCreditSchema} [redeemable_balance]
+ * @property {UserCreditSchema} [available_balance]
+ * @property {UserCreditSchema} [amount_on_hold]
+ */
+/**
+ * @typedef ValidateCustomerCreditSchema
+ * @property {boolean} success - Successful or failure of API
+ * @property {boolean} is_eligible - The customer is eligible to make a transaction or not
+ * @property {boolean} [is_applied] - Credit is applied to the user's account or not
+ * @property {string} message - Detailed message about the user credt eligibility.
+ * @property {string} [cart_id] - Unique identifier for the shopping cart.
+ * @property {CreditAccountSummary} [account]
+ */
declare class PaymentPlatformModel {
}
declare namespace PaymentPlatformModel {
- export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, EdcModelData, EdcAggregatorAndModelListDetails, StatisticsData, EdcDeviceStatsDetails, EdcAddCreation, EdcDevice, EdcDeviceAddDetails, EdcDeviceDetails, EdcUpdate, EdcDeviceUpdateDetails, Page, EdcDeviceListDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema };
+ export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, EdcModelData, EdcAggregatorAndModelListDetails, StatisticsData, EdcDeviceStatsDetails, EdcAddCreation, EdcDevice, EdcDeviceAddDetails, EdcDeviceDetails, EdcUpdate, EdcDeviceUpdateDetails, Page, EdcDeviceListDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema };
}
/** @returns {PaymentGatewayConfigDetails} */
declare function PaymentGatewayConfigDetails(): PaymentGatewayConfigDetails;
@@ -4471,3 +4503,78 @@ type PaymentCustomConfigResponseSchema = {
message: string;
items: PaymentModeCustomConfigSchema[];
};
+/** @returns {CustomerValidationSchema} */
+declare function CustomerValidationSchema(): CustomerValidationSchema;
+type CustomerValidationSchema = {
+ /**
+ * - Aggregator name of the payment gateway.
+ */
+ aggregator: string;
+ /**
+ * - Payable amount
+ */
+ transaction_amount: number;
+ /**
+ * - Unique identifier for the shopping cart.
+ */
+ cart_id?: string;
+};
+/** @returns {UserCreditSchema} */
+declare function UserCreditSchema(): UserCreditSchema;
+type UserCreditSchema = {
+ /**
+ * - The monetary value, which can represent available
+ * balance, redeemed balance, or hold amount, depending on the context.
+ */
+ amount: number;
+ /**
+ * - The currency code (e.g., INR, USD).
+ */
+ currency: string;
+ /**
+ * - A unique identifier for the payment transaction.
+ */
+ unique_id?: string;
+};
+/** @returns {CreditAccountSummary} */
+declare function CreditAccountSummary(): CreditAccountSummary;
+type CreditAccountSummary = {
+ /**
+ * - Unique identifier associated with the
+ * customer's account
+ */
+ account_id: string;
+ /**
+ * - Current state of the account, indicating whether
+ * it is ACTIVE, INACTIVE, or UNREGISTERED.
+ */
+ status: string;
+ redeemable_balance?: UserCreditSchema;
+ available_balance?: UserCreditSchema;
+ amount_on_hold?: UserCreditSchema;
+};
+/** @returns {ValidateCustomerCreditSchema} */
+declare function ValidateCustomerCreditSchema(): ValidateCustomerCreditSchema;
+type ValidateCustomerCreditSchema = {
+ /**
+ * - Successful or failure of API
+ */
+ success: boolean;
+ /**
+ * - The customer is eligible to make a transaction or not
+ */
+ is_eligible: boolean;
+ /**
+ * - Credit is applied to the user's account or not
+ */
+ is_applied?: boolean;
+ /**
+ * - Detailed message about the user credt eligibility.
+ */
+ message: string;
+ /**
+ * - Unique identifier for the shopping cart.
+ */
+ cart_id?: string;
+ account?: CreditAccountSummary;
+};
diff --git a/sdk/platform/Payment/PaymentPlatformModel.js b/sdk/platform/Payment/PaymentPlatformModel.js
index f455ee69e..d076a7b51 100644
--- a/sdk/platform/Payment/PaymentPlatformModel.js
+++ b/sdk/platform/Payment/PaymentPlatformModel.js
@@ -1369,6 +1369,42 @@ const Joi = require("joi");
* @property {PaymentModeCustomConfigSchema[]} items
*/
+/**
+ * @typedef CustomerValidationSchema
+ * @property {string} aggregator - Aggregator name of the payment gateway.
+ * @property {number} transaction_amount - Payable amount
+ * @property {string} [cart_id] - Unique identifier for the shopping cart.
+ */
+
+/**
+ * @typedef UserCreditSchema
+ * @property {number} amount - The monetary value, which can represent available
+ * balance, redeemed balance, or hold amount, depending on the context.
+ * @property {string} currency - The currency code (e.g., INR, USD).
+ * @property {string} [unique_id] - A unique identifier for the payment transaction.
+ */
+
+/**
+ * @typedef CreditAccountSummary
+ * @property {string} account_id - Unique identifier associated with the
+ * customer's account
+ * @property {string} status - Current state of the account, indicating whether
+ * it is ACTIVE, INACTIVE, or UNREGISTERED.
+ * @property {UserCreditSchema} [redeemable_balance]
+ * @property {UserCreditSchema} [available_balance]
+ * @property {UserCreditSchema} [amount_on_hold]
+ */
+
+/**
+ * @typedef ValidateCustomerCreditSchema
+ * @property {boolean} success - Successful or failure of API
+ * @property {boolean} is_eligible - The customer is eligible to make a transaction or not
+ * @property {boolean} [is_applied] - Credit is applied to the user's account or not
+ * @property {string} message - Detailed message about the user credt eligibility.
+ * @property {string} [cart_id] - Unique identifier for the shopping cart.
+ * @property {CreditAccountSummary} [account]
+ */
+
class PaymentPlatformModel {
/** @returns {PaymentGatewayConfigDetails} */
static PaymentGatewayConfigDetails() {
@@ -3007,5 +3043,46 @@ class PaymentPlatformModel {
.required(),
});
}
+
+ /** @returns {CustomerValidationSchema} */
+ static CustomerValidationSchema() {
+ return Joi.object({
+ aggregator: Joi.string().allow("").required(),
+ transaction_amount: Joi.number().required(),
+ cart_id: Joi.string().allow(""),
+ });
+ }
+
+ /** @returns {UserCreditSchema} */
+ static UserCreditSchema() {
+ return Joi.object({
+ amount: Joi.number().required(),
+ currency: Joi.string().allow("").required(),
+ unique_id: Joi.string().allow(""),
+ });
+ }
+
+ /** @returns {CreditAccountSummary} */
+ static CreditAccountSummary() {
+ return Joi.object({
+ account_id: Joi.string().allow("").required(),
+ status: Joi.string().allow("").required(),
+ redeemable_balance: PaymentPlatformModel.UserCreditSchema(),
+ available_balance: PaymentPlatformModel.UserCreditSchema(),
+ amount_on_hold: PaymentPlatformModel.UserCreditSchema(),
+ });
+ }
+
+ /** @returns {ValidateCustomerCreditSchema} */
+ static ValidateCustomerCreditSchema() {
+ return Joi.object({
+ success: Joi.boolean().required(),
+ is_eligible: Joi.boolean().required(),
+ is_applied: Joi.boolean(),
+ message: Joi.string().allow("").required(),
+ cart_id: Joi.string().allow(""),
+ account: PaymentPlatformModel.CreditAccountSummary(),
+ });
+ }
}
module.exports = PaymentPlatformModel;
diff --git a/sdk/platform/User/UserPlatformModel.d.ts b/sdk/platform/User/UserPlatformModel.d.ts
index 7d90b7674..bc11ef79e 100644
--- a/sdk/platform/User/UserPlatformModel.d.ts
+++ b/sdk/platform/User/UserPlatformModel.d.ts
@@ -211,7 +211,7 @@ export = UserPlatformModel;
* @property {string} [first_name]
* @property {string} [last_name]
* @property {string} [gender]
- * @property {string} username
+ * @property {string} [username]
* @property {Object} [meta]
* @property {string} [external_id]
* @property {string} [rr_id]
@@ -835,7 +835,7 @@ type CreateUserRequestSchema = {
first_name?: string;
last_name?: string;
gender?: string;
- username: string;
+ username?: string;
meta?: any;
external_id?: string;
rr_id?: string;
diff --git a/sdk/platform/User/UserPlatformModel.js b/sdk/platform/User/UserPlatformModel.js
index 069a9ad06..c64225d4f 100644
--- a/sdk/platform/User/UserPlatformModel.js
+++ b/sdk/platform/User/UserPlatformModel.js
@@ -239,7 +239,7 @@ const Joi = require("joi");
* @property {string} [first_name]
* @property {string} [last_name]
* @property {string} [gender]
- * @property {string} username
+ * @property {string} [username]
* @property {Object} [meta]
* @property {string} [external_id]
* @property {string} [rr_id]
@@ -827,7 +827,7 @@ class UserPlatformModel {
first_name: Joi.string().allow(""),
last_name: Joi.string().allow(""),
gender: Joi.string().allow(""),
- username: Joi.string().allow("").required(),
+ username: Joi.string().allow(""),
meta: Joi.object().pattern(/\S/, Joi.any()),
external_id: Joi.string().allow(""),
rr_id: Joi.string().allow(""),
diff --git a/sdk/platform/Webhook/WebhookPlatformModel.d.ts b/sdk/platform/Webhook/WebhookPlatformModel.d.ts
index 35e0cb875..29aa60c66 100644
--- a/sdk/platform/Webhook/WebhookPlatformModel.d.ts
+++ b/sdk/platform/Webhook/WebhookPlatformModel.d.ts
@@ -55,7 +55,7 @@ export = WebhookPlatformModel;
*/
/**
* @typedef EventConfigResult
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - List of event configurations.
*/
/**
* @typedef Association
@@ -96,7 +96,7 @@ export = WebhookPlatformModel;
* @property {string} [created_on] - The date and time when the subscriber was created.
* @property {string} [type] - The type of subscriber, which can either be passed as null.
* @property {AuthMeta} [auth_meta]
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - List of event configurations.
*/
/**
* @typedef Events
@@ -183,7 +183,7 @@ export = WebhookPlatformModel;
*/
/**
* @typedef SubscriberConfigList
- * @property {SubscriberDetails[]} [items]
+ * @property {SubscriberDetails[]} [items] - List of subscriber details.
* @property {Page} [page]
*/
/**
@@ -199,7 +199,7 @@ export = WebhookPlatformModel;
* @property {string} type - The type of the configuration.
* @property {Object} [custom_headers] - Custom headers for the configuration.
* @property {AuthMeta} [auth_meta]
- * @property {RestEventData[]} events
+ * @property {RestEventData[]} events - List of event data for configuration.
*/
/**
* @typedef QueueEventData
@@ -211,13 +211,13 @@ export = WebhookPlatformModel;
*/
/**
* @typedef KafkaConfig
- * @property {string} [type]
- * @property {QueueEventData[]} events
+ * @property {string} [type] - Type of Kafka configuration (optional).
+ * @property {QueueEventData[]} events - List of event data for configuration.
*/
/**
* @typedef PubSubConfig
- * @property {string} [type]
- * @property {QueueEventData[]} events
+ * @property {string} [type] - Type of Pub/Sub configuration (optional).
+ * @property {QueueEventData[]} events - List of event data for configuration.
*/
/**
* @typedef TemporalEventData
@@ -230,8 +230,8 @@ export = WebhookPlatformModel;
*/
/**
* @typedef TemporalConfig
- * @property {string} [type]
- * @property {TemporalEventData[]} events
+ * @property {string} [type] - Type of Temporal configuration (optional).
+ * @property {TemporalEventData[]} events - List of event data for configuration.
*/
/**
* @typedef SqsEventData
@@ -243,8 +243,8 @@ export = WebhookPlatformModel;
*/
/**
* @typedef SqsConfig
- * @property {string} [type]
- * @property {SqsEventData[]} events
+ * @property {string} [type] - Type of SQS configuration (optional).
+ * @property {SqsEventData[]} events - List of event data for configuration.
*/
/**
* @typedef EventBridgeData
@@ -257,8 +257,9 @@ export = WebhookPlatformModel;
*/
/**
* @typedef EventBridgeConfig
- * @property {string} [type]
- * @property {EventBridgeData[]} events
+ * @property {string} [type] - Type of event configuration (optional).
+ * @property {EventBridgeData[]} events - List of event data for EventBridge
+ * configuration.
*/
/**
* @typedef EventMapBody
@@ -445,6 +446,9 @@ type EventConfig = {
/** @returns {EventConfigResult} */
declare function EventConfigResult(): EventConfigResult;
type EventConfigResult = {
+ /**
+ * - List of event configurations.
+ */
event_configs?: EventConfig[];
};
/** @returns {Association} */
@@ -547,6 +551,9 @@ type SubscriberDetails = {
*/
type?: string;
auth_meta?: AuthMeta;
+ /**
+ * - List of event configurations.
+ */
event_configs?: EventConfig[];
};
/** @returns {Events} */
@@ -776,6 +783,9 @@ type SubscriberConfigResult = {
/** @returns {SubscriberConfigList} */
declare function SubscriberConfigList(): SubscriberConfigList;
type SubscriberConfigList = {
+ /**
+ * - List of subscriber details.
+ */
items?: SubscriberDetails[];
page?: Page;
};
@@ -815,6 +825,9 @@ type RestConfig = {
*/
custom_headers?: any;
auth_meta?: AuthMeta;
+ /**
+ * - List of event data for configuration.
+ */
events: RestEventData[];
};
/** @returns {QueueEventData} */
@@ -844,13 +857,25 @@ type QueueEventData = {
/** @returns {KafkaConfig} */
declare function KafkaConfig(): KafkaConfig;
type KafkaConfig = {
+ /**
+ * - Type of Kafka configuration (optional).
+ */
type?: string;
+ /**
+ * - List of event data for configuration.
+ */
events: QueueEventData[];
};
/** @returns {PubSubConfig} */
declare function PubSubConfig(): PubSubConfig;
type PubSubConfig = {
+ /**
+ * - Type of Pub/Sub configuration (optional).
+ */
type?: string;
+ /**
+ * - List of event data for configuration.
+ */
events: QueueEventData[];
};
/** @returns {TemporalEventData} */
@@ -884,7 +909,13 @@ type TemporalEventData = {
/** @returns {TemporalConfig} */
declare function TemporalConfig(): TemporalConfig;
type TemporalConfig = {
+ /**
+ * - Type of Temporal configuration (optional).
+ */
type?: string;
+ /**
+ * - List of event data for configuration.
+ */
events: TemporalEventData[];
};
/** @returns {SqsEventData} */
@@ -914,7 +945,13 @@ type SqsEventData = {
/** @returns {SqsConfig} */
declare function SqsConfig(): SqsConfig;
type SqsConfig = {
+ /**
+ * - Type of SQS configuration (optional).
+ */
type?: string;
+ /**
+ * - List of event data for configuration.
+ */
events: SqsEventData[];
};
/** @returns {EventBridgeData} */
@@ -945,7 +982,14 @@ type EventBridgeData = {
/** @returns {EventBridgeConfig} */
declare function EventBridgeConfig(): EventBridgeConfig;
type EventBridgeConfig = {
+ /**
+ * - Type of event configuration (optional).
+ */
type?: string;
+ /**
+ * - List of event data for EventBridge
+ * configuration.
+ */
events: EventBridgeData[];
};
/** @returns {EventMapBody} */
diff --git a/sdk/platform/Webhook/WebhookPlatformModel.js b/sdk/platform/Webhook/WebhookPlatformModel.js
index d6a9fc354..4eba0902a 100644
--- a/sdk/platform/Webhook/WebhookPlatformModel.js
+++ b/sdk/platform/Webhook/WebhookPlatformModel.js
@@ -60,7 +60,7 @@ const Joi = require("joi");
/**
* @typedef EventConfigResult
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - List of event configurations.
*/
/**
@@ -105,7 +105,7 @@ const Joi = require("joi");
* @property {string} [created_on] - The date and time when the subscriber was created.
* @property {string} [type] - The type of subscriber, which can either be passed as null.
* @property {AuthMeta} [auth_meta]
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - List of event configurations.
*/
/**
@@ -199,7 +199,7 @@ const Joi = require("joi");
/**
* @typedef SubscriberConfigList
- * @property {SubscriberDetails[]} [items]
+ * @property {SubscriberDetails[]} [items] - List of subscriber details.
* @property {Page} [page]
*/
@@ -217,7 +217,7 @@ const Joi = require("joi");
* @property {string} type - The type of the configuration.
* @property {Object} [custom_headers] - Custom headers for the configuration.
* @property {AuthMeta} [auth_meta]
- * @property {RestEventData[]} events
+ * @property {RestEventData[]} events - List of event data for configuration.
*/
/**
@@ -231,14 +231,14 @@ const Joi = require("joi");
/**
* @typedef KafkaConfig
- * @property {string} [type]
- * @property {QueueEventData[]} events
+ * @property {string} [type] - Type of Kafka configuration (optional).
+ * @property {QueueEventData[]} events - List of event data for configuration.
*/
/**
* @typedef PubSubConfig
- * @property {string} [type]
- * @property {QueueEventData[]} events
+ * @property {string} [type] - Type of Pub/Sub configuration (optional).
+ * @property {QueueEventData[]} events - List of event data for configuration.
*/
/**
@@ -253,8 +253,8 @@ const Joi = require("joi");
/**
* @typedef TemporalConfig
- * @property {string} [type]
- * @property {TemporalEventData[]} events
+ * @property {string} [type] - Type of Temporal configuration (optional).
+ * @property {TemporalEventData[]} events - List of event data for configuration.
*/
/**
@@ -268,8 +268,8 @@ const Joi = require("joi");
/**
* @typedef SqsConfig
- * @property {string} [type]
- * @property {SqsEventData[]} events
+ * @property {string} [type] - Type of SQS configuration (optional).
+ * @property {SqsEventData[]} events - List of event data for configuration.
*/
/**
@@ -284,8 +284,9 @@ const Joi = require("joi");
/**
* @typedef EventBridgeConfig
- * @property {string} [type]
- * @property {EventBridgeData[]} events
+ * @property {string} [type] - Type of event configuration (optional).
+ * @property {EventBridgeData[]} events - List of event data for EventBridge
+ * configuration.
*/
/**
diff --git a/sdk/public/Catalog/CatalogPublicClient.js b/sdk/public/Catalog/CatalogPublicClient.js
index c06d318f0..b6ccf4a39 100644
--- a/sdk/public/Catalog/CatalogPublicClient.js
+++ b/sdk/public/Catalog/CatalogPublicClient.js
@@ -49,6 +49,21 @@ class Catalog {
},
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!level) {
+ invalidInput.push({
+ message: `The 'level' field is required.`,
+ path: ["level"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = CatalogPublicValidator.getTaxonomyByLevel().validate(
{ level, l0Slug, l1Slug, l2Slug, l3Slug, limit },
{ abortEarly: false, allowUnknown: true }
diff --git a/sdk/public/Configuration/ConfigurationPublicClient.js b/sdk/public/Configuration/ConfigurationPublicClient.js
index 6e85a7a92..94709c1ec 100644
--- a/sdk/public/Configuration/ConfigurationPublicClient.js
+++ b/sdk/public/Configuration/ConfigurationPublicClient.js
@@ -49,6 +49,14 @@ class Configuration {
{ locationType, id, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ConfigurationPublicValidator.getLocations().validate(
{ locationType, id },
{ abortEarly: false, allowUnknown: true }
@@ -130,6 +138,14 @@ class Configuration {
{ authorization, query, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ConfigurationPublicValidator.searchApplication().validate(
{ authorization, query },
{ abortEarly: false, allowUnknown: true }
diff --git a/sdk/public/Content/ContentPublicClient.js b/sdk/public/Content/ContentPublicClient.js
index 83a349357..0ff91305a 100644
--- a/sdk/public/Content/ContentPublicClient.js
+++ b/sdk/public/Content/ContentPublicClient.js
@@ -58,6 +58,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getAllTags().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -134,6 +142,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getAnalyticsTags().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -212,6 +228,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getBasicDetails().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -290,6 +314,21 @@ class Content {
{ entityType, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!entityType) {
+ invalidInput.push({
+ message: `The 'entityType' field is required.`,
+ path: ["entityType"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getCredentialsByEntity().validate(
{ entityType },
{ abortEarly: false, allowUnknown: true }
@@ -368,6 +407,21 @@ class Content {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getCustomPage().validate(
{ slug },
{ abortEarly: false, allowUnknown: true }
@@ -444,6 +498,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getFooterContent().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -522,6 +584,21 @@ class Content {
{ pageType, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!pageType) {
+ invalidInput.push({
+ message: `The 'pageType' field is required.`,
+ path: ["pageType"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getHomePageContent().validate(
{ pageType },
{ abortEarly: false, allowUnknown: true }
@@ -601,6 +678,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getMenuContent().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -679,6 +764,21 @@ class Content {
{ type, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!type) {
+ invalidInput.push({
+ message: `The 'type' field is required.`,
+ path: ["type"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getMenuContentByType().validate(
{ type },
{ abortEarly: false, allowUnknown: true }
@@ -757,6 +857,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getNavbar().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -833,6 +941,14 @@ class Content {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = ContentPublicValidator.getPricingBanner().validate(
{},
{ abortEarly: false, allowUnknown: true }
diff --git a/sdk/public/Partner/PartnerPublicClient.js b/sdk/public/Partner/PartnerPublicClient.js
index 3f43a5a0f..27b8f4568 100644
--- a/sdk/public/Partner/PartnerPublicClient.js
+++ b/sdk/public/Partner/PartnerPublicClient.js
@@ -48,6 +48,21 @@ class Partner {
{ slug, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+
+ if (!slug) {
+ invalidInput.push({
+ message: `The 'slug' field is required.`,
+ path: ["slug"],
+ });
+ }
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const {
error,
} = PartnerPublicValidator.getPanelExtensionDetails().validate(
diff --git a/sdk/public/Webhook/WebhookPublicClient.js b/sdk/public/Webhook/WebhookPublicClient.js
index e47af36d7..2c394ba5c 100644
--- a/sdk/public/Webhook/WebhookPublicClient.js
+++ b/sdk/public/Webhook/WebhookPublicClient.js
@@ -55,6 +55,14 @@ class Webhook {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = WebhookPublicValidator.fetchAllWebhookEvents().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -133,6 +141,14 @@ class Webhook {
{ requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = WebhookPublicValidator.notifyDepricatedEvent().validate(
{},
{ abortEarly: false, allowUnknown: true }
@@ -211,6 +227,14 @@ class Webhook {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const {
error,
} = WebhookPublicValidator.queryWebhookEventDetails().validate(
@@ -291,6 +315,14 @@ class Webhook {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const {
error,
} = WebhookPublicValidator.testHandlerTransformation().validate(
@@ -371,6 +403,14 @@ class Webhook {
{ body, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
+ let invalidInput = [];
+ if (invalidInput.length) {
+ const error = new Error();
+ error.message = "Missing required field";
+ error.details = invalidInput;
+ return Promise.reject(new FDKClientValidationError(error));
+ }
+
const { error } = WebhookPublicValidator.validateSchema().validate(
{ body },
{ abortEarly: false, allowUnknown: true }
diff --git a/sdk/public/Webhook/WebhookPublicModel.d.ts b/sdk/public/Webhook/WebhookPublicModel.d.ts
index 8f937e624..5262edb60 100644
--- a/sdk/public/Webhook/WebhookPublicModel.d.ts
+++ b/sdk/public/Webhook/WebhookPublicModel.d.ts
@@ -1,92 +1,97 @@
export = WebhookPublicModel;
/**
* @typedef EventConfig
- * @property {number} [id]
- * @property {string} [event_name]
- * @property {string} [event_type]
- * @property {string} [event_category]
- * @property {Object} [event_schema]
- * @property {string} [version]
- * @property {string} [display_name]
- * @property {string} [description]
- * @property {string} [created_on]
- * @property {string} [updated_on]
- * @property {string} [group]
+ * @property {number} [id] - The unique identifier for the event configuration.
+ * @property {string} [event_name] - The name of the event.
+ * @property {string} [event_type] - The type of the event.
+ * @property {string} [event_category] - The category of the event.
+ * @property {Object} [event_schema] - The schema defining the event data structure.
+ * @property {string} [version] - The version of the event configuration.
+ * @property {string} [display_name] - A user-friendly name for the event.
+ * @property {string} [description] - A detailed description of the event.
+ * @property {string} [created_on] - The timestamp when the event configuration
+ * was created.
+ * @property {string} [updated_on] - The timestamp when the event configuration
+ * was last updated.
+ * @property {string} [group] - The group to which the event belongs.
*/
/**
* @typedef EventDetails
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
*/
/**
* @typedef EventConfigBase
- * @property {string} [event_name]
- * @property {string} [event_type]
- * @property {string} [event_category]
- * @property {string} [version]
+ * @property {string} [event_name] - The name of the event.
+ * @property {string} [event_type] - The type of the event.
+ * @property {string} [event_category] - The category of the event.
+ * @property {string} [version] - The version of the event configuration.
*/
/**
* @typedef EventNotifier
- * @property {string} [message]
- * @property {string[]} [emails]
+ * @property {string} [message] - The message to be sent in the notification.
+ * @property {string[]} [emails] - List of email addresses to notify.
*/
/**
* @typedef EventSchema
- * @property {Object} [payload]
- * @property {Object} [meta]
+ * @property {Object} [payload] - The event data payload.
+ * @property {Object} [meta] - Metadata related to the event.
*/
/**
* @typedef InternalTransformEvent
- * @property {string[]} [trace_id]
- * @property {string} [name]
- * @property {string} [type]
- * @property {string} [version]
- * @property {number} [created_timestamp]
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
+ * @property {string} [name] - The name of the transformation event.
+ * @property {string} [type] - The type of the transformation event.
+ * @property {string} [version] - The version of the transformation event.
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
*/
/**
* @typedef TransformEventData
* @property {InternalTransformEvent} [event]
- * @property {number} [company_id]
- * @property {string[]} [contains]
- * @property {Object} [payload]
+ * @property {number} [company_id] - The company ID associated with the event.
+ * @property {string[]} [contains] - List of strings related to the event.
+ * @property {Object} [payload] - Event data payload.
*/
/**
* @typedef TransformEventServiceMeta
- * @property {string} [name]
+ * @property {string} [name] - The name of the transformation service.
*/
/**
* @typedef TransformEventAssociation
- * @property {number} [company_id]
+ * @property {number} [company_id] - The company ID associated with the event.
*/
/**
* @typedef TransformEventPayload
- * @property {string} event_name
- * @property {string} event_type
- * @property {string} event_category
- * @property {string} event_version
+ * @property {string} event_name - The name of the event.
+ * @property {string} event_type - The type of the event.
+ * @property {string} event_category - The category of the event.
+ * @property {string} event_version - The version of the event.
* @property {EventSchema} event
*/
/**
* @typedef ValidateSchemaPayload
- * @property {string} event_name
- * @property {string} event_type
- * @property {string} event_category
- * @property {string} event_version
+ * @property {string} event_name - The name of the event to validate.
+ * @property {string} event_type - The type of the event.
+ * @property {string} event_category - The category of the event.
+ * @property {string} event_version - The version of the event to validate.
* @property {EventSchema} event
- * @property {Object} event_schema
+ * @property {Object} event_schema - The schema defining the structure of the event.
*/
/**
* @typedef ValidateSchemaResult
- * @property {boolean} [status]
- * @property {string} [message]
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
+ * or invalid (false).
+ * @property {string} [message] - A message providing additional details about
+ * the validation result.
*/
/**
* @typedef TransformEventResult
- * @property {string[]} [event_trace_id]
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
+ * transformation event.
* @property {TransformEventData} [data]
- * @property {string} [event_name]
- * @property {string} [version]
- * @property {boolean} [status]
- * @property {string} [event_type]
+ * @property {string} [event_name] - The name of the transformation event.
+ * @property {string} [version] - The version of the transformation event.
+ * @property {boolean} [status] - The status of the event processing.
+ * @property {string} [event_type] - The type of the transformation event.
* @property {TransformEventServiceMeta} [service_meta]
* @property {TransformEventAssociation} [association]
*/
@@ -98,103 +103,246 @@ declare namespace WebhookPublicModel {
/** @returns {EventConfig} */
declare function EventConfig(): EventConfig;
type EventConfig = {
+ /**
+ * - The unique identifier for the event configuration.
+ */
id?: number;
+ /**
+ * - The name of the event.
+ */
event_name?: string;
+ /**
+ * - The type of the event.
+ */
event_type?: string;
+ /**
+ * - The category of the event.
+ */
event_category?: string;
+ /**
+ * - The schema defining the event data structure.
+ */
event_schema?: any;
+ /**
+ * - The version of the event configuration.
+ */
version?: string;
+ /**
+ * - A user-friendly name for the event.
+ */
display_name?: string;
+ /**
+ * - A detailed description of the event.
+ */
description?: string;
+ /**
+ * - The timestamp when the event configuration
+ * was created.
+ */
created_on?: string;
+ /**
+ * - The timestamp when the event configuration
+ * was last updated.
+ */
updated_on?: string;
+ /**
+ * - The group to which the event belongs.
+ */
group?: string;
};
/** @returns {EventDetails} */
declare function EventDetails(): EventDetails;
type EventDetails = {
+ /**
+ * - A list of event configuration details.
+ */
event_configs?: EventConfig[];
};
/** @returns {EventConfigBase} */
declare function EventConfigBase(): EventConfigBase;
type EventConfigBase = {
+ /**
+ * - The name of the event.
+ */
event_name?: string;
+ /**
+ * - The type of the event.
+ */
event_type?: string;
+ /**
+ * - The category of the event.
+ */
event_category?: string;
+ /**
+ * - The version of the event configuration.
+ */
version?: string;
};
/** @returns {EventNotifier} */
declare function EventNotifier(): EventNotifier;
type EventNotifier = {
+ /**
+ * - The message to be sent in the notification.
+ */
message?: string;
+ /**
+ * - List of email addresses to notify.
+ */
emails?: string[];
};
/** @returns {EventSchema} */
declare function EventSchema(): EventSchema;
type EventSchema = {
+ /**
+ * - The event data payload.
+ */
payload?: any;
+ /**
+ * - Metadata related to the event.
+ */
meta?: any;
};
/** @returns {InternalTransformEvent} */
declare function InternalTransformEvent(): InternalTransformEvent;
type InternalTransformEvent = {
+ /**
+ * - List of trace IDs related to the event.
+ */
trace_id?: string[];
+ /**
+ * - The name of the transformation event.
+ */
name?: string;
+ /**
+ * - The type of the transformation event.
+ */
type?: string;
+ /**
+ * - The version of the transformation event.
+ */
version?: string;
+ /**
+ * - The timestamp when the event was created.
+ */
created_timestamp?: number;
};
/** @returns {TransformEventData} */
declare function TransformEventData(): TransformEventData;
type TransformEventData = {
event?: InternalTransformEvent;
+ /**
+ * - The company ID associated with the event.
+ */
company_id?: number;
+ /**
+ * - List of strings related to the event.
+ */
contains?: string[];
+ /**
+ * - Event data payload.
+ */
payload?: any;
};
/** @returns {TransformEventServiceMeta} */
declare function TransformEventServiceMeta(): TransformEventServiceMeta;
type TransformEventServiceMeta = {
+ /**
+ * - The name of the transformation service.
+ */
name?: string;
};
/** @returns {TransformEventAssociation} */
declare function TransformEventAssociation(): TransformEventAssociation;
type TransformEventAssociation = {
+ /**
+ * - The company ID associated with the event.
+ */
company_id?: number;
};
/** @returns {TransformEventPayload} */
declare function TransformEventPayload(): TransformEventPayload;
type TransformEventPayload = {
+ /**
+ * - The name of the event.
+ */
event_name: string;
+ /**
+ * - The type of the event.
+ */
event_type: string;
+ /**
+ * - The category of the event.
+ */
event_category: string;
+ /**
+ * - The version of the event.
+ */
event_version: string;
event: EventSchema;
};
/** @returns {ValidateSchemaPayload} */
declare function ValidateSchemaPayload(): ValidateSchemaPayload;
type ValidateSchemaPayload = {
+ /**
+ * - The name of the event to validate.
+ */
event_name: string;
+ /**
+ * - The type of the event.
+ */
event_type: string;
+ /**
+ * - The category of the event.
+ */
event_category: string;
+ /**
+ * - The version of the event to validate.
+ */
event_version: string;
event: EventSchema;
+ /**
+ * - The schema defining the structure of the event.
+ */
event_schema: any;
};
/** @returns {ValidateSchemaResult} */
declare function ValidateSchemaResult(): ValidateSchemaResult;
type ValidateSchemaResult = {
+ /**
+ * - Indicates whether the schema is valid (true)
+ * or invalid (false).
+ */
status?: boolean;
+ /**
+ * - A message providing additional details about
+ * the validation result.
+ */
message?: string;
};
/** @returns {TransformEventResult} */
declare function TransformEventResult(): TransformEventResult;
type TransformEventResult = {
+ /**
+ * - List of trace IDs related to the
+ * transformation event.
+ */
event_trace_id?: string[];
data?: TransformEventData;
+ /**
+ * - The name of the transformation event.
+ */
event_name?: string;
+ /**
+ * - The version of the transformation event.
+ */
version?: string;
+ /**
+ * - The status of the event processing.
+ */
status?: boolean;
+ /**
+ * - The type of the transformation event.
+ */
event_type?: string;
service_meta?: TransformEventServiceMeta;
association?: TransformEventAssociation;
diff --git a/sdk/public/Webhook/WebhookPublicModel.js b/sdk/public/Webhook/WebhookPublicModel.js
index aebc3f84b..da690455e 100644
--- a/sdk/public/Webhook/WebhookPublicModel.js
+++ b/sdk/public/Webhook/WebhookPublicModel.js
@@ -2,104 +2,109 @@ const Joi = require("joi");
/**
* @typedef EventConfig
- * @property {number} [id]
- * @property {string} [event_name]
- * @property {string} [event_type]
- * @property {string} [event_category]
- * @property {Object} [event_schema]
- * @property {string} [version]
- * @property {string} [display_name]
- * @property {string} [description]
- * @property {string} [created_on]
- * @property {string} [updated_on]
- * @property {string} [group]
+ * @property {number} [id] - The unique identifier for the event configuration.
+ * @property {string} [event_name] - The name of the event.
+ * @property {string} [event_type] - The type of the event.
+ * @property {string} [event_category] - The category of the event.
+ * @property {Object} [event_schema] - The schema defining the event data structure.
+ * @property {string} [version] - The version of the event configuration.
+ * @property {string} [display_name] - A user-friendly name for the event.
+ * @property {string} [description] - A detailed description of the event.
+ * @property {string} [created_on] - The timestamp when the event configuration
+ * was created.
+ * @property {string} [updated_on] - The timestamp when the event configuration
+ * was last updated.
+ * @property {string} [group] - The group to which the event belongs.
*/
/**
* @typedef EventDetails
- * @property {EventConfig[]} [event_configs]
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
*/
/**
* @typedef EventConfigBase
- * @property {string} [event_name]
- * @property {string} [event_type]
- * @property {string} [event_category]
- * @property {string} [version]
+ * @property {string} [event_name] - The name of the event.
+ * @property {string} [event_type] - The type of the event.
+ * @property {string} [event_category] - The category of the event.
+ * @property {string} [version] - The version of the event configuration.
*/
/**
* @typedef EventNotifier
- * @property {string} [message]
- * @property {string[]} [emails]
+ * @property {string} [message] - The message to be sent in the notification.
+ * @property {string[]} [emails] - List of email addresses to notify.
*/
/**
* @typedef EventSchema
- * @property {Object} [payload]
- * @property {Object} [meta]
+ * @property {Object} [payload] - The event data payload.
+ * @property {Object} [meta] - Metadata related to the event.
*/
/**
* @typedef InternalTransformEvent
- * @property {string[]} [trace_id]
- * @property {string} [name]
- * @property {string} [type]
- * @property {string} [version]
- * @property {number} [created_timestamp]
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
+ * @property {string} [name] - The name of the transformation event.
+ * @property {string} [type] - The type of the transformation event.
+ * @property {string} [version] - The version of the transformation event.
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
*/
/**
* @typedef TransformEventData
* @property {InternalTransformEvent} [event]
- * @property {number} [company_id]
- * @property {string[]} [contains]
- * @property {Object} [payload]
+ * @property {number} [company_id] - The company ID associated with the event.
+ * @property {string[]} [contains] - List of strings related to the event.
+ * @property {Object} [payload] - Event data payload.
*/
/**
* @typedef TransformEventServiceMeta
- * @property {string} [name]
+ * @property {string} [name] - The name of the transformation service.
*/
/**
* @typedef TransformEventAssociation
- * @property {number} [company_id]
+ * @property {number} [company_id] - The company ID associated with the event.
*/
/**
* @typedef TransformEventPayload
- * @property {string} event_name
- * @property {string} event_type
- * @property {string} event_category
- * @property {string} event_version
+ * @property {string} event_name - The name of the event.
+ * @property {string} event_type - The type of the event.
+ * @property {string} event_category - The category of the event.
+ * @property {string} event_version - The version of the event.
* @property {EventSchema} event
*/
/**
* @typedef ValidateSchemaPayload
- * @property {string} event_name
- * @property {string} event_type
- * @property {string} event_category
- * @property {string} event_version
+ * @property {string} event_name - The name of the event to validate.
+ * @property {string} event_type - The type of the event.
+ * @property {string} event_category - The category of the event.
+ * @property {string} event_version - The version of the event to validate.
* @property {EventSchema} event
- * @property {Object} event_schema
+ * @property {Object} event_schema - The schema defining the structure of the event.
*/
/**
* @typedef ValidateSchemaResult
- * @property {boolean} [status]
- * @property {string} [message]
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
+ * or invalid (false).
+ * @property {string} [message] - A message providing additional details about
+ * the validation result.
*/
/**
* @typedef TransformEventResult
- * @property {string[]} [event_trace_id]
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
+ * transformation event.
* @property {TransformEventData} [data]
- * @property {string} [event_name]
- * @property {string} [version]
- * @property {boolean} [status]
- * @property {string} [event_type]
+ * @property {string} [event_name] - The name of the transformation event.
+ * @property {string} [version] - The version of the transformation event.
+ * @property {boolean} [status] - The status of the event processing.
+ * @property {string} [event_type] - The type of the transformation event.
* @property {TransformEventServiceMeta} [service_meta]
* @property {TransformEventAssociation} [association]
*/