@qrvey/utils 1.9.0-1 → 1.9.0-3

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.9.0-1*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.9.0-3*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -18,11 +18,14 @@ function getTokensFromFilters(filters, options) {
18
18
  const i18nService = options.i18nService;
19
19
  const settings = {
20
20
  translate: i18nService.translate.bind(i18nService),
21
+ addEnableds: true,
21
22
  };
22
23
  const getValue = (valueItem) => {
23
- var _a;
24
+ var _a, _b;
24
25
  if (valueItem.value) {
25
- return ((_a = valueItem.displayed) !== null && _a !== void 0 ? _a : true) ? valueItem.value : "";
26
+ return ((_a = valueItem.displayed) !== null && _a !== void 0 ? _a : true) && ((_b = valueItem.enabled) !== null && _b !== void 0 ? _b : true)
27
+ ? valueItem.value
28
+ : "";
26
29
  }
27
30
  else if (valueItem.imageUrl) {
28
31
  return `(${i18nService.translate("filter.value_container.no_label")})`;
@@ -13,4 +13,5 @@ exports.APP_DATASET_TYPE_LIST = [
13
13
  APP_TYPE_1.APP_TYPE.MS_SQL_LIVE,
14
14
  APP_TYPE_1.APP_TYPE.MYSQL_LIVE,
15
15
  APP_TYPE_1.APP_TYPE.ORACLE_LIVE,
16
+ APP_TYPE_1.APP_TYPE.LIVE,
16
17
  ];
@@ -12,5 +12,6 @@ export declare enum APP_TYPE {
12
12
  SURVEY = "SURVEY",
13
13
  FORM = "FORM",
14
14
  ONLINEFORM = "ONLINEFORM",
15
- QUIZ = "QUIZ"
15
+ QUIZ = "QUIZ",
16
+ LIVE = "LIVE"
16
17
  }
@@ -17,4 +17,5 @@ var APP_TYPE;
17
17
  APP_TYPE["FORM"] = "FORM";
18
18
  APP_TYPE["ONLINEFORM"] = "ONLINEFORM";
19
19
  APP_TYPE["QUIZ"] = "QUIZ";
20
+ APP_TYPE["LIVE"] = "LIVE";
20
21
  })(APP_TYPE = exports.APP_TYPE || (exports.APP_TYPE = {}));
@@ -23,7 +23,7 @@ class ChartsApi {
23
23
  data.logic = data.filters;
24
24
  delete data.filters;
25
25
  }
26
- return Request_1.default.post(Object.assign(Object.assign({}, this.config), { endpoint: newEndpoint ? UCHART_ENDPOINT_1.UCHART_ENDPOINT : CHART_ENDPOINT_1.CHART_ENDPOINT, signal }), "/results", data);
26
+ return Request_1.default.post(Object.assign(Object.assign({}, this.config), { endpoint: newEndpoint ? UCHART_ENDPOINT_1.UCHART_ENDPOINT : CHART_ENDPOINT_1.CHART_ENDPOINT, signal }), "", data);
27
27
  }
28
28
  getResultsPagination(data, ignoreSignal = false) {
29
29
  const signal = ignoreSignal ? undefined : this.createSignal();
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CHART_ENDPOINT = void 0;
4
4
  exports.CHART_ENDPOINT = {
5
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/chart",
5
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/chart/results",
6
6
  version: 4,
7
7
  };
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UCHART_ENDPOINT = void 0;
4
4
  exports.UCHART_ENDPOINT = {
5
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/uchart",
6
- version: 4,
5
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytics/results/chart",
6
+ version: 5,
7
7
  };
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UCHART_PAGINATION_ENDPOINT = void 0;
4
4
  exports.UCHART_PAGINATION_ENDPOINT = {
5
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/uchart/results/pagination",
6
- version: 4,
5
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytics/results/groups",
6
+ version: 5,
7
7
  };
@@ -15,11 +15,14 @@ export function getTokensFromFilters(filters, options) {
15
15
  const i18nService = options.i18nService;
16
16
  const settings = {
17
17
  translate: i18nService.translate.bind(i18nService),
18
+ addEnableds: true,
18
19
  };
19
20
  const getValue = (valueItem) => {
20
- var _a;
21
+ var _a, _b;
21
22
  if (valueItem.value) {
22
- return ((_a = valueItem.displayed) !== null && _a !== void 0 ? _a : true) ? valueItem.value : "";
23
+ return ((_a = valueItem.displayed) !== null && _a !== void 0 ? _a : true) && ((_b = valueItem.enabled) !== null && _b !== void 0 ? _b : true)
24
+ ? valueItem.value
25
+ : "";
23
26
  }
24
27
  else if (valueItem.imageUrl) {
25
28
  return `(${i18nService.translate("filter.value_container.no_label")})`;
@@ -10,4 +10,5 @@ export const APP_DATASET_TYPE_LIST = [
10
10
  APP_TYPE.MS_SQL_LIVE,
11
11
  APP_TYPE.MYSQL_LIVE,
12
12
  APP_TYPE.ORACLE_LIVE,
13
+ APP_TYPE.LIVE,
13
14
  ];
@@ -12,5 +12,6 @@ export declare enum APP_TYPE {
12
12
  SURVEY = "SURVEY",
13
13
  FORM = "FORM",
14
14
  ONLINEFORM = "ONLINEFORM",
15
- QUIZ = "QUIZ"
15
+ QUIZ = "QUIZ",
16
+ LIVE = "LIVE"
16
17
  }
@@ -14,4 +14,5 @@ export var APP_TYPE;
14
14
  APP_TYPE["FORM"] = "FORM";
15
15
  APP_TYPE["ONLINEFORM"] = "ONLINEFORM";
16
16
  APP_TYPE["QUIZ"] = "QUIZ";
17
+ APP_TYPE["LIVE"] = "LIVE";
17
18
  })(APP_TYPE || (APP_TYPE = {}));
@@ -18,7 +18,7 @@ export default class ChartsApi {
18
18
  data.logic = data.filters;
19
19
  delete data.filters;
20
20
  }
21
- return Request.post(Object.assign(Object.assign({}, this.config), { endpoint: newEndpoint ? UCHART_ENDPOINT : CHART_ENDPOINT, signal }), "/results", data);
21
+ return Request.post(Object.assign(Object.assign({}, this.config), { endpoint: newEndpoint ? UCHART_ENDPOINT : CHART_ENDPOINT, signal }), "", data);
22
22
  }
23
23
  getResultsPagination(data, ignoreSignal = false) {
24
24
  const signal = ignoreSignal ? undefined : this.createSignal();
@@ -1,4 +1,4 @@
1
1
  export const CHART_ENDPOINT = {
2
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/chart",
2
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/chart/results",
3
3
  version: 4,
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export const UCHART_ENDPOINT = {
2
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/uchart",
3
- version: 4,
2
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytics/results/chart",
3
+ version: 5,
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export const UCHART_PAGINATION_ENDPOINT = {
2
- uri: "/app/:app_id/qrvey/:qrvey_id/analytiq/uchart/results/pagination",
3
- version: 4,
2
+ uri: "/app/:app_id/qrvey/:qrvey_id/analytics/results/groups",
3
+ version: 5,
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.9.0-1",
3
+ "version": "1.9.0-3",
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",