@qrvey/utils 1.16.1-17 → 1.16.1-19

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.
@@ -270,7 +270,7 @@ exports.I18N_CHART_BUILDER_STYLE_OPTIONS = {
270
270
  title: "Body",
271
271
  alternate_color: "Alternate Color",
272
272
  alternate_bg_color: "Alternate BG Color",
273
- text_wrapping: "Text Wraping",
273
+ text_wrapping: "Text Wrapping",
274
274
  text_wrapping_normal: "Normal",
275
275
  text_wrapping_wrap: "Text Wrap",
276
276
  repeatable_rows: "Repeatable Rows",
@@ -8,6 +8,7 @@ const PLATFORM_CONFIG_ENDPOINT = {
8
8
  noUser: true,
9
9
  uri: "/platform/config",
10
10
  version: 1,
11
+ adminApiInverted: true,
11
12
  };
12
13
  function getPlatformConfig(config) {
13
14
  return Request_1.Request.get({
@@ -51,7 +51,8 @@ class Request {
51
51
  const admin = endpoint.admin ? "/admin" : "";
52
52
  const api = Request.getApiUrl(config);
53
53
  const user = Request.getUserUrl(config);
54
- const base = `${api}${admin}${version}${user}`;
54
+ const apiAdmin = !endpoint.adminApiInverted ? `${api}${admin}` : `${admin}${api}`;
55
+ const base = `${apiAdmin}${version}${user}`;
55
56
  _url = (config.domain || "") + base + endpoint.uri + _url;
56
57
  }
57
58
  return this.parseUrl(_url, config);
@@ -6,4 +6,5 @@ export interface IEndpointConfig {
6
6
  noVersion?: boolean;
7
7
  uri: string;
8
8
  version?: number;
9
+ adminApiInverted?: boolean;
9
10
  }
@@ -267,7 +267,7 @@ export const I18N_CHART_BUILDER_STYLE_OPTIONS = {
267
267
  title: "Body",
268
268
  alternate_color: "Alternate Color",
269
269
  alternate_bg_color: "Alternate BG Color",
270
- text_wrapping: "Text Wraping",
270
+ text_wrapping: "Text Wrapping",
271
271
  text_wrapping_normal: "Normal",
272
272
  text_wrapping_wrap: "Text Wrap",
273
273
  repeatable_rows: "Repeatable Rows",
@@ -5,6 +5,7 @@ const PLATFORM_CONFIG_ENDPOINT = {
5
5
  noUser: true,
6
6
  uri: "/platform/config",
7
7
  version: 1,
8
+ adminApiInverted: true,
8
9
  };
9
10
  export function getPlatformConfig(config) {
10
11
  return Request.get({
@@ -48,7 +48,8 @@ export class Request {
48
48
  const admin = endpoint.admin ? "/admin" : "";
49
49
  const api = Request.getApiUrl(config);
50
50
  const user = Request.getUserUrl(config);
51
- const base = `${api}${admin}${version}${user}`;
51
+ const apiAdmin = !endpoint.adminApiInverted ? `${api}${admin}` : `${admin}${api}`;
52
+ const base = `${apiAdmin}${version}${user}`;
52
53
  _url = (config.domain || "") + base + endpoint.uri + _url;
53
54
  }
54
55
  return this.parseUrl(_url, config);
@@ -6,4 +6,5 @@ export interface IEndpointConfig {
6
6
  noVersion?: boolean;
7
7
  uri: string;
8
8
  version?: number;
9
+ adminApiInverted?: boolean;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.16.1-17",
3
+ "version": "1.16.1-19",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",