@livechat/developer-studio-api 3.4.1 → 3.4.4

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.d.mts CHANGED
@@ -4937,6 +4937,7 @@ interface ApplicationAutoReviewDto {
4937
4937
  isRatioValid: boolean;
4938
4938
  };
4939
4939
  screenshots: {
4940
+ areEmpty: boolean;
4940
4941
  areNsfw: boolean;
4941
4942
  areRatiosValid: boolean;
4942
4943
  };
@@ -4985,6 +4986,7 @@ declare const getEmptyAppAutoReview: () => {
4985
4986
  isRatioValid: boolean;
4986
4987
  };
4987
4988
  screenshots: {
4989
+ areEmpty: boolean;
4988
4990
  areNsfw: boolean;
4989
4991
  areRatiosValid: boolean;
4990
4992
  };
package/dist/index.d.ts CHANGED
@@ -4937,6 +4937,7 @@ interface ApplicationAutoReviewDto {
4937
4937
  isRatioValid: boolean;
4938
4938
  };
4939
4939
  screenshots: {
4940
+ areEmpty: boolean;
4940
4941
  areNsfw: boolean;
4941
4942
  areRatiosValid: boolean;
4942
4943
  };
@@ -4985,6 +4986,7 @@ declare const getEmptyAppAutoReview: () => {
4985
4986
  isRatioValid: boolean;
4986
4987
  };
4987
4988
  screenshots: {
4989
+ areEmpty: boolean;
4988
4990
  areNsfw: boolean;
4989
4991
  areRatiosValid: boolean;
4990
4992
  };
package/dist/index.js CHANGED
@@ -2644,69 +2644,69 @@ adapterClientInstance.interceptors.response.use(
2644
2644
  }
2645
2645
  );
2646
2646
  function getAdapterClientConfig(options = {}) {
2647
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
2647
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
2648
2648
  const currentHeaders = adapterClientInstance.defaults.headers;
2649
2649
  const headers = {
2650
2650
  platform: {
2651
- token: (_b = currentHeaders["x-adapter-platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
2651
+ token: ((_b = currentHeaders.Authorization) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token) ? `${(_d = (_c = options.platform) == null ? void 0 : _c.tokenType) != null ? _d : "Bearer"} ${(_e = options.platform) == null ? void 0 : _e.token}` : void 0
2652
2652
  },
2653
2653
  integrations: {
2654
2654
  github: {
2655
- app: (_d = currentHeaders["x-adapter-github-app-token"]) != null ? _d : (_c = options.github) == null ? void 0 : _c.appToken,
2656
- oauth: (_f = currentHeaders["x-adapter-github-oauth-token"]) != null ? _f : (_e = options.github) == null ? void 0 : _e.oauthToken
2655
+ app: (_g = currentHeaders["x-adapter-github-app-token"]) != null ? _g : (_f = options.github) == null ? void 0 : _f.appToken,
2656
+ oauth: (_i = currentHeaders["x-adapter-github-oauth-token"]) != null ? _i : (_h = options.github) == null ? void 0 : _h.oauthToken
2657
2657
  },
2658
- netlify: (_h = currentHeaders["x-adapter-netlify-token"]) != null ? _h : (_g = options.netlify) == null ? void 0 : _g.token,
2659
- vercel: (_j = currentHeaders["x-adapter-vercel-token"]) != null ? _j : (_i = options.vercel) == null ? void 0 : _i.token,
2660
- planetscale: (_l = currentHeaders["x-adapter-planetscale-token"]) != null ? _l : (_k = options.planetscale) == null ? void 0 : _k.token,
2661
- neon: (_n = currentHeaders["x-adapter-neon-token"]) != null ? _n : (_m = options.neon) == null ? void 0 : _m.token,
2662
- mailchimp: (_p = currentHeaders["x-adapter-mailchimp-token"]) != null ? _p : (_o = options.mailchimp) == null ? void 0 : _o.token,
2663
- mailchimpServer: (_r = currentHeaders["x-adapter-mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
2664
- shopify: (_t = currentHeaders["x-adapter-shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
2665
- shopifyShop: (_v = currentHeaders["x-adapter-shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop,
2666
- hubspot: (_x = currentHeaders["x-adapter-hubspot-token"]) != null ? _x : (_w = options.hubspot) == null ? void 0 : _w.token,
2667
- bigcommerce: (_z = currentHeaders["x-adapter-bigcommerce-token"]) != null ? _z : (_y = options.bigcommerce) == null ? void 0 : _y.token,
2668
- bigcommerceShop: (_B = currentHeaders["x-adapter-bigcommerce-shop"]) != null ? _B : (_A = options.bigcommerce) == null ? void 0 : _A.shop,
2669
- text: (_D = currentHeaders["x-adapter-text-token"]) != null ? _D : (_C = options.text) == null ? void 0 : _C.token
2658
+ netlify: (_k = currentHeaders["x-adapter-netlify-token"]) != null ? _k : (_j = options.netlify) == null ? void 0 : _j.token,
2659
+ vercel: (_m = currentHeaders["x-adapter-vercel-token"]) != null ? _m : (_l = options.vercel) == null ? void 0 : _l.token,
2660
+ planetscale: (_o = currentHeaders["x-adapter-planetscale-token"]) != null ? _o : (_n = options.planetscale) == null ? void 0 : _n.token,
2661
+ neon: (_q = currentHeaders["x-adapter-neon-token"]) != null ? _q : (_p = options.neon) == null ? void 0 : _p.token,
2662
+ mailchimp: (_s = currentHeaders["x-adapter-mailchimp-token"]) != null ? _s : (_r = options.mailchimp) == null ? void 0 : _r.token,
2663
+ mailchimpServer: (_u = currentHeaders["x-adapter-mailchimp-server"]) != null ? _u : (_t = options.mailchimp) == null ? void 0 : _t.server,
2664
+ shopify: (_w = currentHeaders["x-adapter-shopify-token"]) != null ? _w : (_v = options.shopify) == null ? void 0 : _v.token,
2665
+ shopifyShop: (_y = currentHeaders["x-adapter-shopify-shop"]) != null ? _y : (_x = options.shopify) == null ? void 0 : _x.shop,
2666
+ hubspot: (_A = currentHeaders["x-adapter-hubspot-token"]) != null ? _A : (_z = options.hubspot) == null ? void 0 : _z.token,
2667
+ bigcommerce: (_C = currentHeaders["x-adapter-bigcommerce-token"]) != null ? _C : (_B = options.bigcommerce) == null ? void 0 : _B.token,
2668
+ bigcommerceShop: (_E = currentHeaders["x-adapter-bigcommerce-shop"]) != null ? _E : (_D = options.bigcommerce) == null ? void 0 : _D.shop,
2669
+ text: (_G = currentHeaders["x-adapter-text-token"]) != null ? _G : (_F = options.text) == null ? void 0 : _F.token
2670
2670
  }
2671
2671
  };
2672
- if (currentHeaders["x-adapter-platform-token"]) {
2673
- currentHeaders["X-Region"] = (_E = getRegion(currentHeaders["x-adapter-platform-token"])) != null ? _E : void 0;
2672
+ if (currentHeaders.Authorization) {
2673
+ currentHeaders["X-Region"] = (_H = getRegion(currentHeaders.Authorization)) != null ? _H : void 0;
2674
2674
  }
2675
- if (((_F = options.ensureAuthorizationToken) == null ? void 0 : _F.platform) && !headers.platform.token) {
2675
+ if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.platform) && !headers.platform.token) {
2676
2676
  throw new UnauthorizeApiError("accounts");
2677
2677
  }
2678
- if (((_G = options.ensureAuthorizationToken) == null ? void 0 : _G.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
2678
+ if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
2679
2679
  throw new UnauthorizeApiError("github");
2680
2680
  }
2681
- if (((_H = options.ensureAuthorizationToken) == null ? void 0 : _H.vercel) && !headers.integrations.vercel) {
2681
+ if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.vercel) && !headers.integrations.vercel) {
2682
2682
  throw new UnauthorizeApiError("vercel");
2683
2683
  }
2684
- if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.netlify) && !headers.integrations.netlify) {
2684
+ if (((_L = options.ensureAuthorizationToken) == null ? void 0 : _L.netlify) && !headers.integrations.netlify) {
2685
2685
  throw new UnauthorizeApiError("netlify");
2686
2686
  }
2687
- if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.planetscale) && !headers.integrations.planetscale) {
2687
+ if (((_M = options.ensureAuthorizationToken) == null ? void 0 : _M.planetscale) && !headers.integrations.planetscale) {
2688
2688
  throw new UnauthorizeApiError("planetscale");
2689
2689
  }
2690
- if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.neon) && !headers.integrations.neon) {
2690
+ if (((_N = options.ensureAuthorizationToken) == null ? void 0 : _N.neon) && !headers.integrations.neon) {
2691
2691
  throw new UnauthorizeApiError("neon");
2692
2692
  }
2693
- if (((_L = options.ensureAuthorizationToken) == null ? void 0 : _L.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
2693
+ if (((_O = options.ensureAuthorizationToken) == null ? void 0 : _O.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
2694
2694
  throw new UnauthorizeApiError("mailchimp");
2695
2695
  }
2696
- if (((_M = options.ensureAuthorizationToken) == null ? void 0 : _M.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
2696
+ if (((_P = options.ensureAuthorizationToken) == null ? void 0 : _P.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
2697
2697
  throw new UnauthorizeApiError("shopify");
2698
2698
  }
2699
- if (((_N = options.ensureAuthorizationToken) == null ? void 0 : _N.hubspot) && !headers.integrations.hubspot) {
2699
+ if (((_Q = options.ensureAuthorizationToken) == null ? void 0 : _Q.hubspot) && !headers.integrations.hubspot) {
2700
2700
  throw new UnauthorizeApiError("hubspot");
2701
2701
  }
2702
- if (((_O = options.ensureAuthorizationToken) == null ? void 0 : _O.bigcommerce) && (!headers.integrations.bigcommerce || !headers.integrations.bigcommerceShop)) {
2702
+ if (((_R = options.ensureAuthorizationToken) == null ? void 0 : _R.bigcommerce) && (!headers.integrations.bigcommerce || !headers.integrations.bigcommerceShop)) {
2703
2703
  throw new UnauthorizeApiError("bigcommerce");
2704
2704
  }
2705
- if (((_P = options.ensureAuthorizationToken) == null ? void 0 : _P.text) && !headers.integrations.text) {
2705
+ if (((_S = options.ensureAuthorizationToken) == null ? void 0 : _S.text) && !headers.integrations.text) {
2706
2706
  throw new UnauthorizeApiError("text");
2707
2707
  }
2708
2708
  return {
2709
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.bigcommerce ? { "x-adapter-bigcommerce-token": headers.integrations.bigcommerce } : {}), headers.integrations.bigcommerceShop ? { "x-adapter-bigcommerce-shop": headers.integrations.bigcommerceShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
2709
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { Authorization: headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.bigcommerce ? { "x-adapter-bigcommerce-token": headers.integrations.bigcommerce } : {}), headers.integrations.bigcommerceShop ? { "x-adapter-bigcommerce-shop": headers.integrations.bigcommerceShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
2710
2710
  };
2711
2711
  }
2712
2712
  var getAdapterClientDefaultConfig = (authorization) => getAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
@@ -2729,51 +2729,51 @@ function initAdapterClient(baseUrl, tokens) {
2729
2729
  }
2730
2730
  }
2731
2731
  function updateAdapterClient(tokens) {
2732
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
2732
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
2733
2733
  const headers = adapterClientInstance.defaults.headers;
2734
2734
  if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
2735
- headers["x-adapter-platform-token"] = tokens.platform.token;
2735
+ headers.Authorization = `${(_b = tokens.platform.tokenType) != null ? _b : "Bearer"} ${tokens.platform.token}`;
2736
2736
  }
2737
- if ((_b = tokens == null ? void 0 : tokens.github) == null ? void 0 : _b.appToken) {
2737
+ if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.appToken) {
2738
2738
  headers["x-adapter-github-app-token"] = tokens.github.appToken;
2739
2739
  }
2740
- if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.oauthToken) {
2740
+ if ((_d = tokens == null ? void 0 : tokens.github) == null ? void 0 : _d.oauthToken) {
2741
2741
  headers["x-adapter-github-oauth-token"] = tokens.github.oauthToken;
2742
2742
  }
2743
- if ((_d = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _d.token) {
2743
+ if ((_e = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _e.token) {
2744
2744
  headers["x-adapter-netlify-token"] = tokens.netlify.token;
2745
2745
  }
2746
- if ((_e = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _e.token) {
2746
+ if ((_f = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _f.token) {
2747
2747
  headers["x-adapter-vercel-token"] = tokens.vercel.token;
2748
2748
  }
2749
- if ((_f = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _f.token) {
2749
+ if ((_g = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _g.token) {
2750
2750
  headers["x-adapter-planetscale-token"] = tokens.planetscale.token;
2751
2751
  }
2752
- if ((_g = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _g.token) {
2752
+ if ((_h = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _h.token) {
2753
2753
  headers["x-adapter-neon-token"] = tokens.neon.token;
2754
2754
  }
2755
- if ((_h = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _h.server) {
2755
+ if ((_i = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _i.server) {
2756
2756
  headers["x-adapter-mailchimp-server"] = tokens.mailchimp.server;
2757
2757
  }
2758
- if ((_i = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _i.token) {
2758
+ if ((_j = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _j.token) {
2759
2759
  headers["x-adapter-mailchimp-token"] = tokens.mailchimp.token;
2760
2760
  }
2761
- if ((_j = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _j.shop) {
2761
+ if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.shop) {
2762
2762
  headers["x-adapter-shopify-shop"] = tokens.shopify.shop;
2763
2763
  }
2764
- if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.token) {
2764
+ if ((_l = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _l.token) {
2765
2765
  headers["x-adapter-shopify-token"] = tokens.shopify.token;
2766
2766
  }
2767
- if ((_l = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _l.token) {
2767
+ if ((_m = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _m.token) {
2768
2768
  headers["x-adapter-hubspot-token"] = tokens.hubspot.token;
2769
2769
  }
2770
- if ((_m = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _m.shop) {
2770
+ if ((_n = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _n.shop) {
2771
2771
  headers["x-adapter-bigcommerce-shop"] = tokens.bigcommerce.shop;
2772
2772
  }
2773
- if ((_n = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _n.token) {
2773
+ if ((_o = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _o.token) {
2774
2774
  headers["x-adapter-bigcommerce-token"] = tokens.bigcommerce.token;
2775
2775
  }
2776
- if ((_o = tokens == null ? void 0 : tokens.text) == null ? void 0 : _o.token) {
2776
+ if ((_p = tokens == null ? void 0 : tokens.text) == null ? void 0 : _p.token) {
2777
2777
  headers["x-adapter-text-token"] = tokens.text.token;
2778
2778
  }
2779
2779
  }
@@ -2821,6 +2821,7 @@ var getEmptyAppAutoReview = () => ({
2821
2821
  isRatioValid: false
2822
2822
  },
2823
2823
  screenshots: {
2824
+ areEmpty: false,
2824
2825
  areNsfw: false,
2825
2826
  areRatiosValid: false
2826
2827
  }
package/dist/index.mjs CHANGED
@@ -2505,69 +2505,69 @@ adapterClientInstance.interceptors.response.use(
2505
2505
  }
2506
2506
  );
2507
2507
  function getAdapterClientConfig(options = {}) {
2508
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
2508
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
2509
2509
  const currentHeaders = adapterClientInstance.defaults.headers;
2510
2510
  const headers = {
2511
2511
  platform: {
2512
- token: (_b = currentHeaders["x-adapter-platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
2512
+ token: ((_b = currentHeaders.Authorization) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token) ? `${(_d = (_c = options.platform) == null ? void 0 : _c.tokenType) != null ? _d : "Bearer"} ${(_e = options.platform) == null ? void 0 : _e.token}` : void 0
2513
2513
  },
2514
2514
  integrations: {
2515
2515
  github: {
2516
- app: (_d = currentHeaders["x-adapter-github-app-token"]) != null ? _d : (_c = options.github) == null ? void 0 : _c.appToken,
2517
- oauth: (_f = currentHeaders["x-adapter-github-oauth-token"]) != null ? _f : (_e = options.github) == null ? void 0 : _e.oauthToken
2516
+ app: (_g = currentHeaders["x-adapter-github-app-token"]) != null ? _g : (_f = options.github) == null ? void 0 : _f.appToken,
2517
+ oauth: (_i = currentHeaders["x-adapter-github-oauth-token"]) != null ? _i : (_h = options.github) == null ? void 0 : _h.oauthToken
2518
2518
  },
2519
- netlify: (_h = currentHeaders["x-adapter-netlify-token"]) != null ? _h : (_g = options.netlify) == null ? void 0 : _g.token,
2520
- vercel: (_j = currentHeaders["x-adapter-vercel-token"]) != null ? _j : (_i = options.vercel) == null ? void 0 : _i.token,
2521
- planetscale: (_l = currentHeaders["x-adapter-planetscale-token"]) != null ? _l : (_k = options.planetscale) == null ? void 0 : _k.token,
2522
- neon: (_n = currentHeaders["x-adapter-neon-token"]) != null ? _n : (_m = options.neon) == null ? void 0 : _m.token,
2523
- mailchimp: (_p = currentHeaders["x-adapter-mailchimp-token"]) != null ? _p : (_o = options.mailchimp) == null ? void 0 : _o.token,
2524
- mailchimpServer: (_r = currentHeaders["x-adapter-mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
2525
- shopify: (_t = currentHeaders["x-adapter-shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
2526
- shopifyShop: (_v = currentHeaders["x-adapter-shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop,
2527
- hubspot: (_x = currentHeaders["x-adapter-hubspot-token"]) != null ? _x : (_w = options.hubspot) == null ? void 0 : _w.token,
2528
- bigcommerce: (_z = currentHeaders["x-adapter-bigcommerce-token"]) != null ? _z : (_y = options.bigcommerce) == null ? void 0 : _y.token,
2529
- bigcommerceShop: (_B = currentHeaders["x-adapter-bigcommerce-shop"]) != null ? _B : (_A = options.bigcommerce) == null ? void 0 : _A.shop,
2530
- text: (_D = currentHeaders["x-adapter-text-token"]) != null ? _D : (_C = options.text) == null ? void 0 : _C.token
2519
+ netlify: (_k = currentHeaders["x-adapter-netlify-token"]) != null ? _k : (_j = options.netlify) == null ? void 0 : _j.token,
2520
+ vercel: (_m = currentHeaders["x-adapter-vercel-token"]) != null ? _m : (_l = options.vercel) == null ? void 0 : _l.token,
2521
+ planetscale: (_o = currentHeaders["x-adapter-planetscale-token"]) != null ? _o : (_n = options.planetscale) == null ? void 0 : _n.token,
2522
+ neon: (_q = currentHeaders["x-adapter-neon-token"]) != null ? _q : (_p = options.neon) == null ? void 0 : _p.token,
2523
+ mailchimp: (_s = currentHeaders["x-adapter-mailchimp-token"]) != null ? _s : (_r = options.mailchimp) == null ? void 0 : _r.token,
2524
+ mailchimpServer: (_u = currentHeaders["x-adapter-mailchimp-server"]) != null ? _u : (_t = options.mailchimp) == null ? void 0 : _t.server,
2525
+ shopify: (_w = currentHeaders["x-adapter-shopify-token"]) != null ? _w : (_v = options.shopify) == null ? void 0 : _v.token,
2526
+ shopifyShop: (_y = currentHeaders["x-adapter-shopify-shop"]) != null ? _y : (_x = options.shopify) == null ? void 0 : _x.shop,
2527
+ hubspot: (_A = currentHeaders["x-adapter-hubspot-token"]) != null ? _A : (_z = options.hubspot) == null ? void 0 : _z.token,
2528
+ bigcommerce: (_C = currentHeaders["x-adapter-bigcommerce-token"]) != null ? _C : (_B = options.bigcommerce) == null ? void 0 : _B.token,
2529
+ bigcommerceShop: (_E = currentHeaders["x-adapter-bigcommerce-shop"]) != null ? _E : (_D = options.bigcommerce) == null ? void 0 : _D.shop,
2530
+ text: (_G = currentHeaders["x-adapter-text-token"]) != null ? _G : (_F = options.text) == null ? void 0 : _F.token
2531
2531
  }
2532
2532
  };
2533
- if (currentHeaders["x-adapter-platform-token"]) {
2534
- currentHeaders["X-Region"] = (_E = getRegion(currentHeaders["x-adapter-platform-token"])) != null ? _E : void 0;
2533
+ if (currentHeaders.Authorization) {
2534
+ currentHeaders["X-Region"] = (_H = getRegion(currentHeaders.Authorization)) != null ? _H : void 0;
2535
2535
  }
2536
- if (((_F = options.ensureAuthorizationToken) == null ? void 0 : _F.platform) && !headers.platform.token) {
2536
+ if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.platform) && !headers.platform.token) {
2537
2537
  throw new UnauthorizeApiError("accounts");
2538
2538
  }
2539
- if (((_G = options.ensureAuthorizationToken) == null ? void 0 : _G.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
2539
+ if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
2540
2540
  throw new UnauthorizeApiError("github");
2541
2541
  }
2542
- if (((_H = options.ensureAuthorizationToken) == null ? void 0 : _H.vercel) && !headers.integrations.vercel) {
2542
+ if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.vercel) && !headers.integrations.vercel) {
2543
2543
  throw new UnauthorizeApiError("vercel");
2544
2544
  }
2545
- if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.netlify) && !headers.integrations.netlify) {
2545
+ if (((_L = options.ensureAuthorizationToken) == null ? void 0 : _L.netlify) && !headers.integrations.netlify) {
2546
2546
  throw new UnauthorizeApiError("netlify");
2547
2547
  }
2548
- if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.planetscale) && !headers.integrations.planetscale) {
2548
+ if (((_M = options.ensureAuthorizationToken) == null ? void 0 : _M.planetscale) && !headers.integrations.planetscale) {
2549
2549
  throw new UnauthorizeApiError("planetscale");
2550
2550
  }
2551
- if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.neon) && !headers.integrations.neon) {
2551
+ if (((_N = options.ensureAuthorizationToken) == null ? void 0 : _N.neon) && !headers.integrations.neon) {
2552
2552
  throw new UnauthorizeApiError("neon");
2553
2553
  }
2554
- if (((_L = options.ensureAuthorizationToken) == null ? void 0 : _L.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
2554
+ if (((_O = options.ensureAuthorizationToken) == null ? void 0 : _O.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
2555
2555
  throw new UnauthorizeApiError("mailchimp");
2556
2556
  }
2557
- if (((_M = options.ensureAuthorizationToken) == null ? void 0 : _M.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
2557
+ if (((_P = options.ensureAuthorizationToken) == null ? void 0 : _P.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
2558
2558
  throw new UnauthorizeApiError("shopify");
2559
2559
  }
2560
- if (((_N = options.ensureAuthorizationToken) == null ? void 0 : _N.hubspot) && !headers.integrations.hubspot) {
2560
+ if (((_Q = options.ensureAuthorizationToken) == null ? void 0 : _Q.hubspot) && !headers.integrations.hubspot) {
2561
2561
  throw new UnauthorizeApiError("hubspot");
2562
2562
  }
2563
- if (((_O = options.ensureAuthorizationToken) == null ? void 0 : _O.bigcommerce) && (!headers.integrations.bigcommerce || !headers.integrations.bigcommerceShop)) {
2563
+ if (((_R = options.ensureAuthorizationToken) == null ? void 0 : _R.bigcommerce) && (!headers.integrations.bigcommerce || !headers.integrations.bigcommerceShop)) {
2564
2564
  throw new UnauthorizeApiError("bigcommerce");
2565
2565
  }
2566
- if (((_P = options.ensureAuthorizationToken) == null ? void 0 : _P.text) && !headers.integrations.text) {
2566
+ if (((_S = options.ensureAuthorizationToken) == null ? void 0 : _S.text) && !headers.integrations.text) {
2567
2567
  throw new UnauthorizeApiError("text");
2568
2568
  }
2569
2569
  return {
2570
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.bigcommerce ? { "x-adapter-bigcommerce-token": headers.integrations.bigcommerce } : {}), headers.integrations.bigcommerceShop ? { "x-adapter-bigcommerce-shop": headers.integrations.bigcommerceShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
2570
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { Authorization: headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.bigcommerce ? { "x-adapter-bigcommerce-token": headers.integrations.bigcommerce } : {}), headers.integrations.bigcommerceShop ? { "x-adapter-bigcommerce-shop": headers.integrations.bigcommerceShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
2571
2571
  };
2572
2572
  }
2573
2573
  var getAdapterClientDefaultConfig = (authorization) => getAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
@@ -2590,51 +2590,51 @@ function initAdapterClient(baseUrl, tokens) {
2590
2590
  }
2591
2591
  }
2592
2592
  function updateAdapterClient(tokens) {
2593
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
2593
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
2594
2594
  const headers = adapterClientInstance.defaults.headers;
2595
2595
  if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
2596
- headers["x-adapter-platform-token"] = tokens.platform.token;
2596
+ headers.Authorization = `${(_b = tokens.platform.tokenType) != null ? _b : "Bearer"} ${tokens.platform.token}`;
2597
2597
  }
2598
- if ((_b = tokens == null ? void 0 : tokens.github) == null ? void 0 : _b.appToken) {
2598
+ if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.appToken) {
2599
2599
  headers["x-adapter-github-app-token"] = tokens.github.appToken;
2600
2600
  }
2601
- if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.oauthToken) {
2601
+ if ((_d = tokens == null ? void 0 : tokens.github) == null ? void 0 : _d.oauthToken) {
2602
2602
  headers["x-adapter-github-oauth-token"] = tokens.github.oauthToken;
2603
2603
  }
2604
- if ((_d = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _d.token) {
2604
+ if ((_e = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _e.token) {
2605
2605
  headers["x-adapter-netlify-token"] = tokens.netlify.token;
2606
2606
  }
2607
- if ((_e = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _e.token) {
2607
+ if ((_f = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _f.token) {
2608
2608
  headers["x-adapter-vercel-token"] = tokens.vercel.token;
2609
2609
  }
2610
- if ((_f = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _f.token) {
2610
+ if ((_g = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _g.token) {
2611
2611
  headers["x-adapter-planetscale-token"] = tokens.planetscale.token;
2612
2612
  }
2613
- if ((_g = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _g.token) {
2613
+ if ((_h = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _h.token) {
2614
2614
  headers["x-adapter-neon-token"] = tokens.neon.token;
2615
2615
  }
2616
- if ((_h = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _h.server) {
2616
+ if ((_i = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _i.server) {
2617
2617
  headers["x-adapter-mailchimp-server"] = tokens.mailchimp.server;
2618
2618
  }
2619
- if ((_i = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _i.token) {
2619
+ if ((_j = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _j.token) {
2620
2620
  headers["x-adapter-mailchimp-token"] = tokens.mailchimp.token;
2621
2621
  }
2622
- if ((_j = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _j.shop) {
2622
+ if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.shop) {
2623
2623
  headers["x-adapter-shopify-shop"] = tokens.shopify.shop;
2624
2624
  }
2625
- if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.token) {
2625
+ if ((_l = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _l.token) {
2626
2626
  headers["x-adapter-shopify-token"] = tokens.shopify.token;
2627
2627
  }
2628
- if ((_l = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _l.token) {
2628
+ if ((_m = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _m.token) {
2629
2629
  headers["x-adapter-hubspot-token"] = tokens.hubspot.token;
2630
2630
  }
2631
- if ((_m = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _m.shop) {
2631
+ if ((_n = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _n.shop) {
2632
2632
  headers["x-adapter-bigcommerce-shop"] = tokens.bigcommerce.shop;
2633
2633
  }
2634
- if ((_n = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _n.token) {
2634
+ if ((_o = tokens == null ? void 0 : tokens.bigcommerce) == null ? void 0 : _o.token) {
2635
2635
  headers["x-adapter-bigcommerce-token"] = tokens.bigcommerce.token;
2636
2636
  }
2637
- if ((_o = tokens == null ? void 0 : tokens.text) == null ? void 0 : _o.token) {
2637
+ if ((_p = tokens == null ? void 0 : tokens.text) == null ? void 0 : _p.token) {
2638
2638
  headers["x-adapter-text-token"] = tokens.text.token;
2639
2639
  }
2640
2640
  }
@@ -2682,6 +2682,7 @@ var getEmptyAppAutoReview = () => ({
2682
2682
  isRatioValid: false
2683
2683
  },
2684
2684
  screenshots: {
2685
+ areEmpty: false,
2685
2686
  areNsfw: false,
2686
2687
  areRatiosValid: false
2687
2688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.4.1",
3
+ "version": "3.4.4",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "tsup": "^7.1.0",
22
22
  "typescript": "^5.1.6",
23
23
  "eslint-config-custom": "0.0.10",
24
- "utils": "0.0.4",
25
- "tsconfig": "0.0.1"
24
+ "tsconfig": "0.0.1",
25
+ "utils": "0.0.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup",