@janbox/contentful-marketplace-sdk 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +21 -21
- package/dist/index.js +302 -302
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vt=Function.prototype.toString,A=Object.create,St=Object.prototype.toString,kt=(function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(e){return!!~this._keys.indexOf(e)},t.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},t.prototype.set=function(e,r){this._keys.push(e),this._values.push(r)},t})();function At(){return new kt}function jt(){return new WeakMap}var Ot=typeof WeakMap<"u"?jt:At;function N(t){if(!t)return A(null);var e=t.constructor;if(e===Object)return t===Object.prototype?{}:A(t);if(e&&~vt.call(e).indexOf("[native code]"))try{return new e}catch{}return A(t)}function qt(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function Tt(t){return t.flags}var _t=/test/g.flags==="g"?Tt:qt;function st(t){var e=St.call(t);return e.substring(8,e.length-1)}function Pt(t){return t[Symbol.toStringTag]||st(t)}var Dt=typeof Symbol<"u"?Pt:st,It=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,lt=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ct=Object.prototype,ut=ct.hasOwnProperty,Mt=ct.propertyIsEnumerable,ft=typeof Q=="function";function Rt(t){return lt(t).concat(Q(t))}var zt=ft?Rt:lt;function S(t,e,r){for(var s=zt(t),a=0,i=s.length,o=void 0,n=void 0;a<i;++a)if(o=s[a],!(o==="callee"||o==="caller")){if(n=xt(t,o),!n){e[o]=r.copier(t[o],r);continue}!n.get&&!n.set&&(n.value=r.copier(n.value,r));try{It(e,o,n)}catch{e[o]=n.value}}return e}function Bt(t,e){var r=new e.Constructor;e.cache.set(t,r);for(var s=0,a=t.length;s<a;++s)r[s]=e.copier(t[s],e);return r}function Et(t,e){var r=new e.Constructor;return e.cache.set(t,r),S(t,r,e)}function gt(t,e){return t.slice(0)}function Lt(t,e){return t.slice(0,t.size,t.type)}function Vt(t,e){return new e.Constructor(gt(t.buffer))}function Nt(t,e){return new e.Constructor(t.getTime())}function pt(t,e){var r=new e.Constructor;return e.cache.set(t,r),t.forEach(function(s,a){r.set(a,e.copier(s,e))}),r}function Qt(t,e){return S(t,pt(t,e),e)}function Ft(t,e){var r=N(e.prototype);e.cache.set(t,r);for(var s in t)ut.call(t,s)&&(r[s]=e.copier(t[s],e));return r}function Gt(t,e){var r=N(e.prototype);e.cache.set(t,r);for(var s in t)ut.call(t,s)&&(r[s]=e.copier(t[s],e));for(var a=Q(t),i=0,o=a.length,n=void 0;i<o;++i)n=a[i],Mt.call(t,n)&&(r[n]=e.copier(t[n],e));return r}var Ut=ft?Gt:Ft;function Kt(t,e){var r=N(e.prototype);return e.cache.set(t,r),S(t,r,e)}function j(t,e){return new e.Constructor(t.valueOf())}function Wt(t,e){var r=new e.Constructor(t.source,_t(t));return r.lastIndex=t.lastIndex,r}function v(t,e){return t}function ht(t,e){var r=new e.Constructor;return e.cache.set(t,r),t.forEach(function(s){r.add(e.copier(s,e))}),r}function Ht(t,e){return S(t,ht(t,e),e)}var Jt=Array.isArray,F=Object.assign,Yt=Object.getPrototypeOf||(function(t){return t.__proto__}),mt={array:Bt,arrayBuffer:gt,blob:Lt,dataView:Vt,date:Nt,error:v,map:pt,object:Ut,regExp:Wt,set:ht},Xt=F({},mt,{array:Et,map:Qt,object:Kt,set:Ht});function Zt(t){return{Arguments:t.object,Array:t.array,ArrayBuffer:t.arrayBuffer,Blob:t.blob,Boolean:j,DataView:t.dataView,Date:t.date,Error:t.error,Float32Array:t.arrayBuffer,Float64Array:t.arrayBuffer,Int8Array:t.arrayBuffer,Int16Array:t.arrayBuffer,Int32Array:t.arrayBuffer,Map:t.map,Number:j,Object:t.object,Promise:v,RegExp:t.regExp,Set:t.set,String:j,WeakMap:v,WeakSet:v,Uint8Array:t.arrayBuffer,Uint8ClampedArray:t.arrayBuffer,Uint16Array:t.arrayBuffer,Uint32Array:t.arrayBuffer,Uint64Array:t.arrayBuffer}}function yt(t){var e=F({},mt,t),r=Zt(e),s=r.Array,a=r.Object;function i(o,n){if(n.prototype=n.Constructor=void 0,!o||typeof o!="object")return o;if(n.cache.has(o))return n.cache.get(o);if(n.prototype=Yt(o),n.Constructor=n.prototype&&n.prototype.constructor,!n.Constructor||n.Constructor===Object)return a(o,n);if(Jt(o))return s(o,n);var l=r[Dt(o)];return l?l(o,n):typeof o.then=="function"?o:a(o,n)}return function(n){return i(n,{Constructor:void 0,cache:Ot(),copier:i,prototype:void 0})}}function te(t){return yt(F({},Xt,t))}te({});yt({});var C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},O={exports:{}},G;function ee(){if(G)return O.exports;G=1;var t=O.exports={},e,r;function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=s}catch{e=s}try{typeof clearTimeout=="function"?r=clearTimeout:r=a}catch{r=a}})();function i(p){if(e===setTimeout)return setTimeout(p,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(p,0);try{return e(p,0)}catch{try{return e.call(null,p,0)}catch{return e.call(this,p,0)}}}function o(p){if(r===clearTimeout)return clearTimeout(p);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(p);try{return r(p)}catch{try{return r.call(null,p)}catch{return r.call(this,p)}}}var n=[],l=!1,c,u=-1;function f(){!l||!c||(l=!1,c.length?n=c.concat(n):u=-1,n.length&&g())}function g(){if(!l){var p=i(f);l=!0;for(var d=n.length;d;){for(c=n,n=[];++u<d;)c&&c[u].run();u=-1,d=n.length}c=null,l=!1,o(p)}}t.nextTick=function(p){var d=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)d[b-1]=arguments[b];n.push(new h(p,d)),n.length===1&&!l&&i(g)};function h(p,d){this.fun=p,this.array=d}h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function m(){}return t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(p){return[]},t.binding=function(p){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(p){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},O.exports}ee();var q,U;function re(){if(U)return q;U=1;var t=typeof C=="object"&&C&&C.Object===Object&&C;return q=t,q}var T,K;function oe(){if(K)return T;K=1;var t=re(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return T=r,T}var _,W;function dt(){if(W)return _;W=1;var t=oe(),e=t.Symbol;return _=e,_}var P,H;function ne(){if(H)return P;H=1;var t=dt(),e=Object.prototype,r=e.hasOwnProperty,s=e.toString,a=t?t.toStringTag:void 0;function i(o){var n=r.call(o,a),l=o[a];try{o[a]=void 0;var c=!0}catch{}var u=s.call(o);return c&&(n?o[a]=l:delete o[a]),u}return P=i,P}var D,J;function ie(){if(J)return D;J=1;var t=Object.prototype,e=t.toString;function r(s){return e.call(s)}return D=r,D}var I,Y;function bt(){if(Y)return I;Y=1;var t=dt(),e=ne(),r=ie(),s="[object Null]",a="[object Undefined]",i=t?t.toStringTag:void 0;function o(n){return n==null?n===void 0?a:s:i&&i in Object(n)?e(n):r(n)}return I=o,I}var x,X;function ae(){if(X)return x;X=1;var t=Array.isArray;return x=t,x}var M,Z;function $t(){if(Z)return M;Z=1;function t(e){return e!=null&&typeof e=="object"}return M=t,M}var R,tt;function se(){if(tt)return R;tt=1;var t=bt(),e=ae(),r=$t(),s="[object String]";function a(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==s}return R=a,R}se();var z,et;function le(){if(et)return z;et=1;function t(e,r){return function(s){return e(r(s))}}return z=t,z}var B,rt;function ce(){if(rt)return B;rt=1;var t=le(),e=t(Object.getPrototypeOf,Object);return B=e,B}var E,ot;function ue(){if(ot)return E;ot=1;var t=bt(),e=ce(),r=$t(),s="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,n=i.hasOwnProperty,l=o.call(Object);function c(u){if(!r(u)||t(u)!=s)return!1;var f=e(u);if(f===null)return!0;var g=n.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==l}return E=c,E}ue();var Ct={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},wt={0:8203,1:8204,2:8205,3:65279};new Array(4).fill(String.fromCodePoint(wt[0])).join("");Object.fromEntries(Object.entries(wt).map(t=>t.reverse()));Object.fromEntries(Object.entries(Ct).map(t=>t.reverse()));`${Object.values(Ct).map(t=>`\\u{${t.toString(16)}}`).join("")}`;var L,nt;function fe(){if(nt)return L;nt=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return L=function(r,s,a){if(e.call(s)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var o=0;o<i;o++)s.call(a,r[o],o,r);else for(var n in r)t.call(r,n)&&s.call(a,r[n],n,r)},L}var V,it;function ge(){if(it)return V;it=1;var t=fe();V=e;function e(r,s,a){if(arguments.length===3)return e.set(r,s,a);if(arguments.length===2)return e.get(r,s);var i=e.bind(e,r);for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o].bind(i,r));return i}return e.get=function(r,s){for(var a=Array.isArray(s)?s:e.parse(s),i=0;i<a.length;++i){var o=a[i];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r},e.set=function(r,s,a){var i=Array.isArray(s)?s:e.parse(s),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var n=0;n<i.length-1;++n){var l=i[n];typeof l!="string"&&typeof l!="number"&&(l=String(l)),!(l==="__proto__"||l==="constructor"||l==="prototype")&&(l==="-"&&Array.isArray(r)&&(l=r.length),o=i[n+1],l in r||(o.match(/^(\d+|-)$/)?r[l]=[]:r[l]={}),r=r[l])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=a,this},e.remove=function(r,s){var a=Array.isArray(s)?s:e.parse(s),i=a[a.length-1];if(i===void 0)throw new Error('Invalid JSON pointer for remove: "'+s+'"');var o=e.get(r,a.slice(0,-1));if(Array.isArray(o)){var n=+i;if(i===""&&isNaN(n))throw new Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(o,n,1)}else delete o[i]},e.dict=function(r,s){var a={};return e.walk(r,function(i,o){a[o]=i},s),a},e.walk=function(r,s,a){var i=[];a=a||function(o){var n=Object.prototype.toString.call(o);return n==="[object Object]"||n==="[object Array]"},(function o(n){t(n,function(l,c){i.push(String(c)),a(l)?o(l):s(l,e.compile(i)),i.pop()})})(r)},e.has=function(r,s){try{e.get(r,s)}catch{return!1}return!0},e.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(e.unescape)},e.compile=function(r){return r.length===0?"":"/"+r.map(e.escape).join("/")},V}ge();var w={exports:{}},at;function pe(){return at||(at=1,(function(t,e){e=t.exports=r,e.getSerialize=s;function r(a,i,o,n){return JSON.stringify(a,s(i,n),o)}function s(a,i){var o=[],n=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+n.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?n.splice(u,1/0,l):n.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return a==null?c:a.call(this,l,c)}}})(w,w.exports)),w.exports}pe();class y{static _clientParams;static get clientParams(){if(!this._clientParams)throw new Error("Client is not configured");return this._clientParams}static configure(e){this._clientParams={...e,environment:e.environment??"master"}}static async graphqlQuery(e,r={}){const{space:s,accessToken:a,environment:i="master"}=this.clientParams,o=await fetch(`https://graphql.contentful.com/content/v1/spaces/${s}/environments/${i}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({query:e,variables:r})});if(!o.ok){const l=await o.text();throw new Error(`GraphQL request failed: ${o.status} ${o.statusText}
|
|
2
|
-
${l}`)}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vt=Function.prototype.toString,A=Object.create,St=Object.prototype.toString,kt=(function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(e){return!!~this._keys.indexOf(e)},t.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},t.prototype.set=function(e,r){this._keys.push(e),this._values.push(r)},t})();function At(){return new kt}function Ot(){return new WeakMap}var jt=typeof WeakMap<"u"?Ot:At;function N(t){if(!t)return A(null);var e=t.constructor;if(e===Object)return t===Object.prototype?{}:A(t);if(e&&~vt.call(e).indexOf("[native code]"))try{return new e}catch{}return A(t)}function qt(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function Tt(t){return t.flags}var _t=/test/g.flags==="g"?Tt:qt;function at(t){var e=St.call(t);return e.substring(8,e.length-1)}function Pt(t){return t[Symbol.toStringTag]||at(t)}var xt=typeof Symbol<"u"?Pt:at,Dt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,lt=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ct=Object.prototype,ut=ct.hasOwnProperty,It=ct.propertyIsEnumerable,ft=typeof Q=="function";function Mt(t){return lt(t).concat(Q(t))}var zt=ft?Mt:lt;function S(t,e,r){for(var a=zt(t),s=0,n=a.length,o=void 0,i=void 0;s<n;++s)if(o=a[s],!(o==="callee"||o==="caller")){if(i=Rt(t,o),!i){e[o]=r.copier(t[o],r);continue}!i.get&&!i.set&&(i.value=r.copier(i.value,r));try{Dt(e,o,i)}catch{e[o]=i.value}}return e}function Bt(t,e){var r=new e.Constructor;e.cache.set(t,r);for(var a=0,s=t.length;a<s;++a)r[a]=e.copier(t[a],e);return r}function Et(t,e){var r=new e.Constructor;return e.cache.set(t,r),S(t,r,e)}function gt(t,e){return t.slice(0)}function Lt(t,e){return t.slice(0,t.size,t.type)}function Vt(t,e){return new e.Constructor(gt(t.buffer))}function Nt(t,e){return new e.Constructor(t.getTime())}function pt(t,e){var r=new e.Constructor;return e.cache.set(t,r),t.forEach(function(a,s){r.set(s,e.copier(a,e))}),r}function Qt(t,e){return S(t,pt(t,e),e)}function Ft(t,e){var r=N(e.prototype);e.cache.set(t,r);for(var a in t)ut.call(t,a)&&(r[a]=e.copier(t[a],e));return r}function Gt(t,e){var r=N(e.prototype);e.cache.set(t,r);for(var a in t)ut.call(t,a)&&(r[a]=e.copier(t[a],e));for(var s=Q(t),n=0,o=s.length,i=void 0;n<o;++n)i=s[n],It.call(t,i)&&(r[i]=e.copier(t[i],e));return r}var Ut=ft?Gt:Ft;function Kt(t,e){var r=N(e.prototype);return e.cache.set(t,r),S(t,r,e)}function O(t,e){return new e.Constructor(t.valueOf())}function Wt(t,e){var r=new e.Constructor(t.source,_t(t));return r.lastIndex=t.lastIndex,r}function v(t,e){return t}function ht(t,e){var r=new e.Constructor;return e.cache.set(t,r),t.forEach(function(a){r.add(e.copier(a,e))}),r}function Ht(t,e){return S(t,ht(t,e),e)}var Jt=Array.isArray,F=Object.assign,Yt=Object.getPrototypeOf||(function(t){return t.__proto__}),mt={array:Bt,arrayBuffer:gt,blob:Lt,dataView:Vt,date:Nt,error:v,map:pt,object:Ut,regExp:Wt,set:ht},Xt=F({},mt,{array:Et,map:Qt,object:Kt,set:Ht});function Zt(t){return{Arguments:t.object,Array:t.array,ArrayBuffer:t.arrayBuffer,Blob:t.blob,Boolean:O,DataView:t.dataView,Date:t.date,Error:t.error,Float32Array:t.arrayBuffer,Float64Array:t.arrayBuffer,Int8Array:t.arrayBuffer,Int16Array:t.arrayBuffer,Int32Array:t.arrayBuffer,Map:t.map,Number:O,Object:t.object,Promise:v,RegExp:t.regExp,Set:t.set,String:O,WeakMap:v,WeakSet:v,Uint8Array:t.arrayBuffer,Uint8ClampedArray:t.arrayBuffer,Uint16Array:t.arrayBuffer,Uint32Array:t.arrayBuffer,Uint64Array:t.arrayBuffer}}function yt(t){var e=F({},mt,t),r=Zt(e),a=r.Array,s=r.Object;function n(o,i){if(i.prototype=i.Constructor=void 0,!o||typeof o!="object")return o;if(i.cache.has(o))return i.cache.get(o);if(i.prototype=Yt(o),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return s(o,i);if(Jt(o))return a(o,i);var l=r[xt(o)];return l?l(o,i):typeof o.then=="function"?o:s(o,i)}return function(i){return n(i,{Constructor:void 0,cache:jt(),copier:n,prototype:void 0})}}function te(t){return yt(F({},Xt,t))}te({});yt({});var C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j={exports:{}},G;function ee(){if(G)return j.exports;G=1;var t=j.exports={},e,r;function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=a}catch{e=a}try{typeof clearTimeout=="function"?r=clearTimeout:r=s}catch{r=s}})();function n(p){if(e===setTimeout)return setTimeout(p,0);if((e===a||!e)&&setTimeout)return e=setTimeout,setTimeout(p,0);try{return e(p,0)}catch{try{return e.call(null,p,0)}catch{return e.call(this,p,0)}}}function o(p){if(r===clearTimeout)return clearTimeout(p);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(p);try{return r(p)}catch{try{return r.call(null,p)}catch{return r.call(this,p)}}}var i=[],l=!1,c,u=-1;function f(){!l||!c||(l=!1,c.length?i=c.concat(i):u=-1,i.length&&g())}function g(){if(!l){var p=n(f);l=!0;for(var d=i.length;d;){for(c=i,i=[];++u<d;)c&&c[u].run();u=-1,d=i.length}c=null,l=!1,o(p)}}t.nextTick=function(p){var d=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)d[b-1]=arguments[b];i.push(new h(p,d)),i.length===1&&!l&&n(g)};function h(p,d){this.fun=p,this.array=d}h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function m(){}return t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(p){return[]},t.binding=function(p){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(p){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},j.exports}ee();var q,U;function re(){if(U)return q;U=1;var t=typeof C=="object"&&C&&C.Object===Object&&C;return q=t,q}var T,K;function oe(){if(K)return T;K=1;var t=re(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return T=r,T}var _,W;function dt(){if(W)return _;W=1;var t=oe(),e=t.Symbol;return _=e,_}var P,H;function ie(){if(H)return P;H=1;var t=dt(),e=Object.prototype,r=e.hasOwnProperty,a=e.toString,s=t?t.toStringTag:void 0;function n(o){var i=r.call(o,s),l=o[s];try{o[s]=void 0;var c=!0}catch{}var u=a.call(o);return c&&(i?o[s]=l:delete o[s]),u}return P=n,P}var x,J;function ne(){if(J)return x;J=1;var t=Object.prototype,e=t.toString;function r(a){return e.call(a)}return x=r,x}var D,Y;function bt(){if(Y)return D;Y=1;var t=dt(),e=ie(),r=ne(),a="[object Null]",s="[object Undefined]",n=t?t.toStringTag:void 0;function o(i){return i==null?i===void 0?s:a:n&&n in Object(i)?e(i):r(i)}return D=o,D}var R,X;function se(){if(X)return R;X=1;var t=Array.isArray;return R=t,R}var I,Z;function $t(){if(Z)return I;Z=1;function t(e){return e!=null&&typeof e=="object"}return I=t,I}var M,tt;function ae(){if(tt)return M;tt=1;var t=bt(),e=se(),r=$t(),a="[object String]";function s(n){return typeof n=="string"||!e(n)&&r(n)&&t(n)==a}return M=s,M}ae();var z,et;function le(){if(et)return z;et=1;function t(e,r){return function(a){return e(r(a))}}return z=t,z}var B,rt;function ce(){if(rt)return B;rt=1;var t=le(),e=t(Object.getPrototypeOf,Object);return B=e,B}var E,ot;function ue(){if(ot)return E;ot=1;var t=bt(),e=ce(),r=$t(),a="[object Object]",s=Function.prototype,n=Object.prototype,o=s.toString,i=n.hasOwnProperty,l=o.call(Object);function c(u){if(!r(u)||t(u)!=a)return!1;var f=e(u);if(f===null)return!0;var g=i.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==l}return E=c,E}ue();var Ct={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},wt={0:8203,1:8204,2:8205,3:65279};new Array(4).fill(String.fromCodePoint(wt[0])).join("");Object.fromEntries(Object.entries(wt).map(t=>t.reverse()));Object.fromEntries(Object.entries(Ct).map(t=>t.reverse()));`${Object.values(Ct).map(t=>`\\u{${t.toString(16)}}`).join("")}`;var L,it;function fe(){if(it)return L;it=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return L=function(r,a,s){if(e.call(a)!=="[object Function]")throw new TypeError("iterator must be a function");var n=r.length;if(n===+n)for(var o=0;o<n;o++)a.call(s,r[o],o,r);else for(var i in r)t.call(r,i)&&a.call(s,r[i],i,r)},L}var V,nt;function ge(){if(nt)return V;nt=1;var t=fe();V=e;function e(r,a,s){if(arguments.length===3)return e.set(r,a,s);if(arguments.length===2)return e.get(r,a);var n=e.bind(e,r);for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o].bind(n,r));return n}return e.get=function(r,a){for(var s=Array.isArray(a)?a:e.parse(a),n=0;n<s.length;++n){var o=s[n];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r},e.set=function(r,a,s){var n=Array.isArray(a)?a:e.parse(a),o=n[0];if(n.length===0)throw Error("Can not set the root object");for(var i=0;i<n.length-1;++i){var l=n[i];typeof l!="string"&&typeof l!="number"&&(l=String(l)),!(l==="__proto__"||l==="constructor"||l==="prototype")&&(l==="-"&&Array.isArray(r)&&(l=r.length),o=n[i+1],l in r||(o.match(/^(\d+|-)$/)?r[l]=[]:r[l]={}),r=r[l])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=s,this},e.remove=function(r,a){var s=Array.isArray(a)?a:e.parse(a),n=s[s.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+a+'"');var o=e.get(r,s.slice(0,-1));if(Array.isArray(o)){var i=+n;if(n===""&&isNaN(i))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(o,i,1)}else delete o[n]},e.dict=function(r,a){var s={};return e.walk(r,function(n,o){s[o]=n},a),s},e.walk=function(r,a,s){var n=[];s=s||function(o){var i=Object.prototype.toString.call(o);return i==="[object Object]"||i==="[object Array]"},(function o(i){t(i,function(l,c){n.push(String(c)),s(l)?o(l):a(l,e.compile(n)),n.pop()})})(r)},e.has=function(r,a){try{e.get(r,a)}catch{return!1}return!0},e.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(e.unescape)},e.compile=function(r){return r.length===0?"":"/"+r.map(e.escape).join("/")},V}ge();var w={exports:{}},st;function pe(){return st||(st=1,(function(t,e){e=t.exports=r,e.getSerialize=a;function r(s,n,o,i){return JSON.stringify(s,a(n,i),o)}function a(s,n){var o=[],i=[];return n==null&&(n=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?i.splice(u,1/0,l):i.push(l),~o.indexOf(c)&&(c=n.call(this,l,c))}else o.push(c);return s==null?c:s.call(this,l,c)}}})(w,w.exports)),w.exports}pe();class y{static _clientParams;static get clientParams(){if(!this._clientParams)throw new Error("Client is not configured");return this._clientParams}static configure(e){this._clientParams={...e,environment:e.environment??"master"}}static async graphqlQuery(e,r={}){const{space:a,accessToken:s,environment:n="master"}=this.clientParams,o=await fetch(`https://graphql.contentful.com/content/v1/spaces/${a}/environments/${n}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({query:e,variables:r})});if(!o.ok){const l=await o.text();throw new Error(`GraphQL request failed: ${o.status} ${o.statusText}
|
|
2
|
+
${l}`)}const i=await o.json();if(i.errors)throw new Error(`GraphQL errors: ${JSON.stringify(i.errors,null,2)}`);return i.data}}const he=async({slot:t,page:e=1,size:r=20,platform:a,marketCode:s,locale:n})=>{const o=Math.max(1,Math.floor(e)),i=Math.max(1,Math.floor(r)),l=["$slot: String!","$limit: Int!","$skip: Int!"],c={slot:t,limit:i,skip:(o-1)*i},u=["{ slot: $slot }"];a&&(l.push("$platform: String!"),c.platform=a,u.push("{ platform_contains_some: [$platform] }")),s&&(l.push("$marketCode: String!"),c.marketCode=s,u.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),n&&(l.push("$locale: String!"),c.locale=n,u.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const f=`(${l.join(", ")})`,g=`(
|
|
3
3
|
limit: $limit
|
|
4
4
|
skip: $skip
|
|
5
5
|
where: {
|
|
@@ -45,7 +45,7 @@ query${f} {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
`,{bannerCollectionCollection:m}=await y.graphqlQuery(h,{...c});return{page:o,total:m.total,size:
|
|
48
|
+
`,{bannerCollectionCollection:m}=await y.graphqlQuery(h,{...c});return{page:o,total:m.total,size:i,items:m.items}};class $ extends Response{constructor(...e){super(e[0]??"Not Found",{status:404,...e[1]})}}const me=async({marketCode:t,locale:e,collectionId:r,categoryId:a,page:s=1,size:n=20}={})=>{const o=Math.max(1,Math.floor(s)),i=Math.max(1,Math.floor(n));if(r){const d=`
|
|
49
49
|
query($collectionId: String!, $limit: Int!, $skip: Int!) {
|
|
50
50
|
blogCollectionCollection(limit: 1 where: { sys: { id: $collectionId } }) {
|
|
51
51
|
items {
|
|
@@ -71,7 +71,7 @@ query($collectionId: String!, $limit: Int!, $skip: Int!) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`,{blogCollectionCollection:b}=await y.graphqlQuery(d,{collectionId:r,limit:
|
|
74
|
+
`,{blogCollectionCollection:b}=await y.graphqlQuery(d,{collectionId:r,limit:i,skip:(o-1)*i}),k=b.items.at(0);if(!k)throw new $;return{page:o,total:k.postsCollection?.total??0,size:i,items:k.postsCollection?.items??[]}}const l=["$limit: Int!","$skip: Int!"],c={limit:i,skip:(o-1)*i},u=["limit: $limit","skip: $skip"],f=[];t&&(l.push("$marketCode: String!"),c.marketCode=t,f.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),e&&(l.push("$locale: String!"),c.locale=e,f.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }")),a&&(l.push("$categoryId: String!"),c.categoryId=a,f.push("{ categories: { sys: { id: $categoryId } } }")),f.length&&u.push(`where: {
|
|
75
75
|
AND: [
|
|
76
76
|
${f.join(`
|
|
77
77
|
`)}
|
|
@@ -101,7 +101,7 @@ query${g} {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
`,{blogPostCollection:p}=await y.graphqlQuery(m,{...c});return{page:o,total:p.total,size:
|
|
104
|
+
`,{blogPostCollection:p}=await y.graphqlQuery(m,{...c});return{page:o,total:p.total,size:i,items:p.items}},ye=async({id:t,slug:e,marketCode:r,locale:a})=>{const s=[],n={},o=[];if(t)s.push("$id: String!"),n.id=t,o.push("{ sys: { id: $id } }");else if(e)s.push("$slug: String!"),n.slug=e,o.push("{ slug: $slug }");else throw new Error("Either id or slug is required.");r&&(s.push("$marketCode: String!"),n.marketCode=r,o.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(s.push("$locale: String!"),n.locale=a,o.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const i=`(${s.join(", ")})`,l=`(
|
|
105
105
|
limit: 1
|
|
106
106
|
where: {
|
|
107
107
|
AND: [
|
|
@@ -110,7 +110,7 @@ query${g} {
|
|
|
110
110
|
]
|
|
111
111
|
}
|
|
112
112
|
)`,c=`
|
|
113
|
-
query${
|
|
113
|
+
query${i} {
|
|
114
114
|
blogPostCollection${l} {
|
|
115
115
|
items {
|
|
116
116
|
sys {
|
|
@@ -169,7 +169,7 @@ query${n} {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`,{blogPostCollection:u}=await y.graphqlQuery(c,{...
|
|
172
|
+
`,{blogPostCollection:u}=await y.graphqlQuery(c,{...n}),f=u.items.at(0);if(!f)throw new $;return f},de=async({marketCode:t,locale:e,page:r=1,size:a=20}={})=>{const s=Math.max(1,Math.floor(r)),n=Math.max(1,Math.floor(a)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=["limit: $limit","skip: $skip"],c=[];t&&(o.push("$marketCode: String!"),i.marketCode=t,c.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),e&&(o.push("$locale: String!"),i.locale=e,c.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }")),c.length&&l.push(`where: {
|
|
173
173
|
AND: [
|
|
174
174
|
${c.join(`
|
|
175
175
|
`)}
|
|
@@ -190,7 +190,7 @@ query${u} {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
`,{blogCategoryCollection:h}=await y.graphqlQuery(g,{...
|
|
193
|
+
`,{blogCategoryCollection:h}=await y.graphqlQuery(g,{...i});return{page:s,total:h.total,size:n,items:h.items}},be=async({id:t,slug:e,marketCode:r,locale:a})=>{const s=[],n={},o=[];if(t)s.push("$id: String!"),n.id=t,o.push("{ sys: { id: $id } }");else if(e)s.push("$slug: String!"),n.slug=e,o.push("{ slug: $slug }");else throw new Error("Either id or slug is required.");r&&(s.push("$marketCode: String!"),n.marketCode=r,o.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(s.push("$locale: String!"),n.locale=a,o.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const i=`(${s.join(", ")})`,l=`(
|
|
194
194
|
limit: 1
|
|
195
195
|
where: {
|
|
196
196
|
AND: [
|
|
@@ -199,7 +199,7 @@ query${u} {
|
|
|
199
199
|
]
|
|
200
200
|
}
|
|
201
201
|
)`,c=`
|
|
202
|
-
query${
|
|
202
|
+
query${i} {
|
|
203
203
|
blogCategoryCollection${l} {
|
|
204
204
|
items {
|
|
205
205
|
sys {
|
|
@@ -228,7 +228,7 @@ query${n} {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
`,{blogCategoryCollection:u}=await y.graphqlQuery(c,{...
|
|
231
|
+
`,{blogCategoryCollection:u}=await y.graphqlQuery(c,{...n}),f=u.items.at(0);if(!f)throw new $;return f},$e=async({marketCode:t,locale:e,page:r=1,size:a=20}={})=>{const s=Math.max(1,Math.floor(r)),n=Math.max(1,Math.floor(a)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=["limit: $limit","skip: $skip"],c=[];t&&(o.push("$marketCode: String!"),i.marketCode=t,c.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),e&&(o.push("$locale: String!"),i.locale=e,c.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }")),c.length&&l.push(`where: {
|
|
232
232
|
AND: [
|
|
233
233
|
${c.join(`
|
|
234
234
|
`)}
|
|
@@ -254,7 +254,7 @@ query${u} {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
`,{blogCollectionCollection:h}=await y.graphqlQuery(g,{...
|
|
257
|
+
`,{blogCollectionCollection:h}=await y.graphqlQuery(g,{...i});return{page:s,total:h.total,size:n,items:h.items}},Ce=async({page:t=1,size:e=20,marketCode:r,locale:a}={})=>{const s=Math.max(1,Math.floor(t)),n=Math.max(1,Math.floor(e)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=[];r&&(o.push("$marketCode: String!"),i.marketCode=r,l.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(o.push("$locale: String!"),i.locale=a,l.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const c=`(${o.join(", ")})`,u=l.length?`(
|
|
258
258
|
limit: $limit
|
|
259
259
|
skip: $skip
|
|
260
260
|
where: {
|
|
@@ -302,7 +302,7 @@ query${c} {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
`,{brandCollectionCollection:g}=await y.graphqlQuery(f,{...
|
|
305
|
+
`,{brandCollectionCollection:g}=await y.graphqlQuery(f,{...i});return{page:s,total:g.total,size:n,items:g.items}},we=async({marketCode:t,locale:e,page:r=1,size:a=20}={})=>{const s=Math.max(1,Math.floor(r)),n=Math.max(1,Math.floor(a)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=["limit: $limit","skip: $skip"],c=[];t&&(o.push("$marketCode: String!"),i.marketCode=t,c.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),e&&(o.push("$locale: String!"),i.locale=e,c.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }")),c.length&&l.push(`where: {
|
|
306
306
|
AND: [
|
|
307
307
|
${c.join(`
|
|
308
308
|
`)}
|
|
@@ -333,7 +333,7 @@ query${u} {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
`,{documentationCategoryCollection:h}=await y.graphqlQuery(g,{...
|
|
336
|
+
`,{documentationCategoryCollection:h}=await y.graphqlQuery(g,{...i});return{page:s,total:h.total,size:n,items:h.items}},ve=async({id:t,slug:e,marketCode:r,locale:a})=>{const s=[],n={},o=[];if(t)s.push("$id: String!"),n.id=t,o.push("{ sys: { id: $id } }");else if(e)s.push("$slug: String!"),n.slug=e,o.push("{ slug: $slug }");else throw new Error("Either id or slug is required.");r&&(s.push("$marketCode: String!"),n.marketCode=r,o.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(s.push("$locale: String!"),n.locale=a,o.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const i=`(${s.join(", ")})`,l=`(
|
|
337
337
|
limit: 1
|
|
338
338
|
where: {
|
|
339
339
|
AND: [
|
|
@@ -342,7 +342,7 @@ query${u} {
|
|
|
342
342
|
]
|
|
343
343
|
}
|
|
344
344
|
)`,c=`
|
|
345
|
-
query${
|
|
345
|
+
query${i} {
|
|
346
346
|
documentationCategoryCollection${l} {
|
|
347
347
|
items {
|
|
348
348
|
sys {
|
|
@@ -363,12 +363,12 @@ query${n} {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
`,{documentationCategoryCollection:u}=await y.graphqlQuery(c,{...
|
|
366
|
+
`,{documentationCategoryCollection:u}=await y.graphqlQuery(c,{...n}),f=u.items.at(0);if(!f)throw new $;return f},Se=async({marketCode:t,locale:e,categorySlug:r,page:a=1,size:s=20}={})=>{const n=Math.max(1,Math.floor(a)),o=Math.max(1,Math.floor(s)),i=["$limit: Int!","$skip: Int!"],l={limit:o,skip:(n-1)*o},c=["limit: $limit","skip: $skip"],u=[];t&&(i.push("$marketCode: String!"),l.marketCode=t,u.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),e&&(i.push("$locale: String!"),l.locale=e,u.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }")),r&&(i.push("$categorySlug: String!"),l.categorySlug=r,u.push("{ category: { slug: $categorySlug } }")),u.length&&c.push(`where: {
|
|
367
367
|
AND: [
|
|
368
368
|
${u.join(`
|
|
369
369
|
`)}
|
|
370
370
|
]
|
|
371
|
-
}`);const f=
|
|
371
|
+
}`);const f=i.length?`(${i.join(", ")})`:"",g=c.length?`(
|
|
372
372
|
${c.join(`
|
|
373
373
|
`)}
|
|
374
374
|
)`:"",h=`
|
|
@@ -401,7 +401,7 @@ query${f} {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
`,{documentationArticleCollection:m}=await y.graphqlQuery(h,{...l});return{page:
|
|
404
|
+
`,{documentationArticleCollection:m}=await y.graphqlQuery(h,{...l});return{page:n,total:m.total,size:o,items:m.items}},ke=async({id:t,slug:e,marketCode:r,locale:a})=>{const s=[],n={},o=[];if(t)s.push("$id: String!"),n.id=t,o.push("{ sys: { id: $id } }");else if(e)s.push("$slug: String!"),n.slug=e,o.push("{ slug: $slug }");else throw new Error("Either id or slug is required.");r&&(s.push("$marketCode: String!"),n.marketCode=r,o.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(s.push("$locale: String!"),n.locale=a,o.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const i=`(${s.join(", ")})`,l=`(
|
|
405
405
|
limit: 1
|
|
406
406
|
where: {
|
|
407
407
|
AND: [
|
|
@@ -410,7 +410,7 @@ query${f} {
|
|
|
410
410
|
]
|
|
411
411
|
}
|
|
412
412
|
)`,c=`
|
|
413
|
-
query${
|
|
413
|
+
query${i} {
|
|
414
414
|
documentationArticleCollection${l} {
|
|
415
415
|
items {
|
|
416
416
|
sys {
|
|
@@ -462,7 +462,7 @@ query${n} {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
`,{documentationArticleCollection:u}=await y.graphqlQuery(c,{...
|
|
465
|
+
`,{documentationArticleCollection:u}=await y.graphqlQuery(c,{...n}),f=u.items.at(0);if(!f)throw new $;return f},Ae=async({page:t=1,size:e=20,marketCode:r,locale:a}={})=>{const s=Math.max(1,Math.floor(t)),n=Math.max(1,Math.floor(e)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=[];r&&(o.push("$marketCode: String!"),i.marketCode=r,l.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(o.push("$locale: String!"),i.locale=a,l.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const c=o.length?`(${o.join(", ")})`:"",u=l.length?`(
|
|
466
466
|
limit: $limit
|
|
467
467
|
skip: $skip
|
|
468
468
|
order: order_ASC
|
|
@@ -501,7 +501,7 @@ query${c} {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
`,{hyperlinkCollectionCollection:g}=await y.graphqlQuery(f,{...
|
|
504
|
+
`,{hyperlinkCollectionCollection:g}=await y.graphqlQuery(f,{...i});return{page:s,total:g.total,size:n,items:g.items}},Oe=async({page:t=1,size:e=20,marketCode:r,locale:a}={})=>{const s=Math.max(1,Math.floor(t)),n=Math.max(1,Math.floor(e)),o=["$limit: Int!","$skip: Int!"],i={limit:n,skip:(s-1)*n},l=[];r&&(o.push("$marketCode: String!"),i.marketCode=r,l.push("{ OR: [{ marketsCollection_exists: false }, { markets: { code: $marketCode } }] }")),a&&(o.push("$locale: String!"),i.locale=a,l.push("{ OR: [{ locale_exists: false }, { locale: $locale }] }"));const c=`(${o.join(", ")})`,u=l.length?`(
|
|
505
505
|
limit: $limit
|
|
506
506
|
skip: $skip
|
|
507
507
|
where: {
|
|
@@ -527,4 +527,4 @@ query${c} {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
`,{keywordCollectionCollection:g}=await y.graphqlQuery(f,{...
|
|
530
|
+
`,{keywordCollectionCollection:g}=await y.graphqlQuery(f,{...i});return{page:s,total:g.total,size:n,items:g.items}};exports.ContentfulSDK=y;exports.getBannerCollections=he;exports.getBlogCategories=de;exports.getBlogCategoryDetail=be;exports.getBlogCollections=$e;exports.getBlogPostDetail=ye;exports.getBlogPosts=me;exports.getBrandCollections=Ce;exports.getDocArticleDetail=ke;exports.getDocArticles=Se;exports.getDocCategories=we;exports.getDocCategoryDetail=ve;exports.getHyperlinkCollections=Ae;exports.getKeywordCollections=Oe;
|