@qlik/api 0.0.9 → 0.0.10

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.
Files changed (145) hide show
  1. package/api-keys.d.mts +9 -0
  2. package/api-keys.d.ts +9 -0
  3. package/api-keys.js +10 -10
  4. package/api-keys.mjs +2 -2
  5. package/apps.d.mts +125 -1
  6. package/apps.d.ts +125 -1
  7. package/apps.js +46 -46
  8. package/apps.mjs +2 -2
  9. package/audits.d.mts +13 -0
  10. package/audits.d.ts +13 -0
  11. package/audits.js +9 -9
  12. package/audits.mjs +2 -2
  13. package/auth.js +3 -3
  14. package/auth.mjs +2 -2
  15. package/automations.d.mts +8 -0
  16. package/automations.d.ts +8 -0
  17. package/automations.js +21 -21
  18. package/automations.mjs +2 -2
  19. package/brands.d.mts +15 -0
  20. package/brands.d.ts +15 -0
  21. package/brands.js +15 -15
  22. package/brands.mjs +2 -2
  23. package/chunks/{YDB23Q56.mjs → 34FMVD4C.mjs} +164 -20
  24. package/chunks/{PQ4OWSWX.js → 37PLWNAN.js} +44 -56
  25. package/chunks/{AULTUQC4.js → 3MHXEHLQ.js} +2 -2
  26. package/chunks/{AU62SBT4.mjs → 42LZKDDD.mjs} +1 -1
  27. package/chunks/{AGASWXYW.js → AVQ3WHH7.js} +167 -23
  28. package/chunks/{W2I5OQA5.js → FG5GDUSZ.js} +3 -3
  29. package/chunks/{EHZ6H6TD.mjs → FUU5VIC4.mjs} +1 -1
  30. package/chunks/{L7DRRU3T.mjs → HFNJ3ERI.mjs} +2 -2
  31. package/chunks/{POR3DZIU.mjs → HWZC3PIL.mjs} +1 -1
  32. package/chunks/{XY3AC335.js → ILOY5QEA.js} +4 -4
  33. package/chunks/{K4YCNLTC.mjs → KEPPVUY3.mjs} +1 -1
  34. package/chunks/{WQHUX4R2.mjs → MMUU2CQM.mjs} +1 -1
  35. package/chunks/{VLLTA4EY.mjs → O5POHH2Q.mjs} +3 -3
  36. package/chunks/{EL2GSPZZ.js → QMWU5E4D.js} +3 -3
  37. package/chunks/RMNAO4DP.js +17 -0
  38. package/chunks/SUYUL6MB.js +41 -0
  39. package/chunks/{KDW6ZD2R.mjs → VMS4MOCI.mjs} +42 -54
  40. package/chunks/{F7GJTDIU.js → WCJ4JQHA.js} +8 -8
  41. package/collections.d.mts +29 -1
  42. package/collections.d.ts +29 -1
  43. package/collections.js +14 -14
  44. package/collections.mjs +2 -2
  45. package/csp-origins.js +9 -9
  46. package/csp-origins.mjs +2 -2
  47. package/data-assets.js +8 -8
  48. package/data-assets.mjs +2 -2
  49. package/data-connections.d.mts +12 -1
  50. package/data-connections.d.ts +12 -1
  51. package/data-connections.js +12 -12
  52. package/data-connections.mjs +2 -2
  53. package/data-credentials.d.mts +5 -0
  54. package/data-credentials.d.ts +5 -0
  55. package/data-credentials.js +7 -7
  56. package/data-credentials.mjs +2 -2
  57. package/data-files.d.mts +6 -0
  58. package/data-files.d.ts +6 -0
  59. package/data-files.js +15 -15
  60. package/data-files.mjs +2 -2
  61. package/extensions.d.mts +12 -0
  62. package/extensions.d.ts +12 -0
  63. package/extensions.js +10 -10
  64. package/extensions.mjs +2 -2
  65. package/glossaries.d.mts +50 -0
  66. package/glossaries.d.ts +50 -0
  67. package/glossaries.js +27 -27
  68. package/glossaries.mjs +2 -2
  69. package/groups.d.mts +39 -0
  70. package/groups.d.ts +39 -0
  71. package/groups.js +11 -11
  72. package/groups.mjs +2 -2
  73. package/identity-providers.d.mts +42 -0
  74. package/identity-providers.d.ts +42 -0
  75. package/identity-providers.js +11 -11
  76. package/identity-providers.mjs +2 -2
  77. package/index.js +8 -8
  78. package/index.mjs +4 -4
  79. package/items.d.mts +32 -1
  80. package/items.d.ts +32 -1
  81. package/items.js +11 -11
  82. package/items.mjs +2 -2
  83. package/licenses.d.mts +7 -4
  84. package/licenses.d.ts +7 -4
  85. package/licenses.js +12 -12
  86. package/licenses.mjs +2 -2
  87. package/package.json +1 -1
  88. package/qix.d.mts +1 -1
  89. package/qix.d.ts +1 -1
  90. package/qix.js +3 -3
  91. package/qix.mjs +2 -2
  92. package/quotas.d.mts +3 -0
  93. package/quotas.d.ts +3 -0
  94. package/quotas.js +5 -5
  95. package/quotas.mjs +2 -2
  96. package/reload-tasks.d.mts +6 -3
  97. package/reload-tasks.d.ts +6 -3
  98. package/reload-tasks.js +8 -8
  99. package/reload-tasks.mjs +2 -2
  100. package/reloads.d.mts +9 -0
  101. package/reloads.d.ts +9 -0
  102. package/reloads.js +7 -7
  103. package/reloads.mjs +2 -2
  104. package/roles.d.mts +10 -1
  105. package/roles.d.ts +10 -1
  106. package/roles.js +5 -5
  107. package/roles.mjs +2 -2
  108. package/spaces.d.mts +37 -5
  109. package/spaces.d.ts +37 -5
  110. package/spaces.js +15 -15
  111. package/spaces.mjs +2 -2
  112. package/temp-contents.d.mts +6 -0
  113. package/temp-contents.d.ts +6 -0
  114. package/temp-contents.js +6 -6
  115. package/temp-contents.mjs +2 -2
  116. package/tenants.d.mts +12 -0
  117. package/tenants.d.ts +12 -0
  118. package/tenants.js +9 -9
  119. package/tenants.mjs +2 -2
  120. package/themes.d.mts +9 -0
  121. package/themes.d.ts +9 -0
  122. package/themes.js +10 -10
  123. package/themes.mjs +2 -2
  124. package/transports.d.mts +9 -0
  125. package/transports.d.ts +9 -0
  126. package/transports.js +9 -9
  127. package/transports.mjs +2 -2
  128. package/users.d.mts +85 -14
  129. package/users.d.ts +85 -14
  130. package/users.js +13 -13
  131. package/users.mjs +2 -2
  132. package/web-integrations.d.mts +18 -0
  133. package/web-integrations.d.ts +18 -0
  134. package/web-integrations.js +8 -8
  135. package/web-integrations.mjs +2 -2
  136. package/web-notifications.d.mts +18 -0
  137. package/web-notifications.d.ts +18 -0
  138. package/web-notifications.js +9 -9
  139. package/web-notifications.mjs +2 -2
  140. package/webhooks.d.mts +3 -0
  141. package/webhooks.d.ts +3 -0
  142. package/webhooks.js +13 -13
  143. package/webhooks.mjs +2 -2
  144. package/chunks/37STYSYC.js +0 -41
  145. package/chunks/VC2LAFLZ.js +0 -17
package/api-keys.d.mts CHANGED
@@ -33,6 +33,9 @@ type ApiKeyBody = {
33
33
  /** Type of the subject. */
34
34
  subType?: string;
35
35
  };
36
+ /**
37
+ * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
38
+ */
36
39
  type ApiKeyConfigPatch = {
37
40
  /** The operation to be performed. */
38
41
  op: "replace";
@@ -41,6 +44,9 @@ type ApiKeyConfigPatch = {
41
44
  /** The value to be used for this operation. */
42
45
  value: unknown;
43
46
  };
47
+ /**
48
+ * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
49
+ */
44
50
  type ApiKeyPatch = {
45
51
  /** The operation to be performed. */
46
52
  op: "replace";
@@ -83,6 +89,9 @@ type ApiKeysConfig = {
83
89
  };
84
90
  type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
85
91
  type ApiKeysPatchSchema = ApiKeyPatch[];
92
+ /**
93
+ * An error object.
94
+ */
86
95
  type Error = {
87
96
  /** The error code. */
88
97
  code: string;
package/api-keys.d.ts CHANGED
@@ -33,6 +33,9 @@ type ApiKeyBody = {
33
33
  /** Type of the subject. */
34
34
  subType?: string;
35
35
  };
36
+ /**
37
+ * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
38
+ */
36
39
  type ApiKeyConfigPatch = {
37
40
  /** The operation to be performed. */
38
41
  op: "replace";
@@ -41,6 +44,9 @@ type ApiKeyConfigPatch = {
41
44
  /** The value to be used for this operation. */
42
45
  value: unknown;
43
46
  };
47
+ /**
48
+ * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
49
+ */
44
50
  type ApiKeyPatch = {
45
51
  /** The operation to be performed. */
46
52
  op: "replace";
@@ -83,6 +89,9 @@ type ApiKeysConfig = {
83
89
  };
84
90
  type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
85
91
  type ApiKeysPatchSchema = ApiKeyPatch[];
92
+ /**
93
+ * An error object.
94
+ */
86
95
  type Error = {
87
96
  /** The error code. */
88
97
  code: string;
package/api-keys.js CHANGED
@@ -1,31 +1,31 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _EL2GSPZZjs = require('./chunks/EL2GSPZZ.js');
5
- require('./chunks/W2I5OQA5.js');
4
+ var _QMWU5E4Djs = require('./chunks/QMWU5E4D.js');
5
+ require('./chunks/FG5GDUSZ.js');
6
6
  require('./chunks/4HB3TAEO.js');
7
7
 
8
8
  // src/public/rest/api-keys.ts
9
- var getApiKeys = async (query, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
9
+ var getApiKeys = async (query, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/api-keys",
12
12
  query,
13
13
  options
14
14
  });
15
- var createApiKey = async (body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
15
+ var createApiKey = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/api-keys",
18
18
  body,
19
19
  contentType: "application/json",
20
20
  options
21
21
  });
22
- var getApiKeysConfig = async (tenantId, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
22
+ var getApiKeysConfig = async (tenantId, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
23
23
  method: "get",
24
24
  pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
25
25
  pathVariables: { tenantId },
26
26
  options
27
27
  });
28
- var patchApiKeysConfig = async (tenantId, body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
28
+ var patchApiKeysConfig = async (tenantId, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
29
29
  method: "patch",
30
30
  pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
31
31
  pathVariables: { tenantId },
@@ -33,19 +33,19 @@ var patchApiKeysConfig = async (tenantId, body, options) => _EL2GSPZZjs.invokeFe
33
33
  contentType: "application/json",
34
34
  options
35
35
  });
36
- var deleteApiKey = async (id, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
36
+ var deleteApiKey = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
37
37
  method: "delete",
38
38
  pathTemplate: "/api/v1/api-keys/{id}",
39
39
  pathVariables: { id },
40
40
  options
41
41
  });
42
- var getApiKey = async (id, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
42
+ var getApiKey = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
43
43
  method: "get",
44
44
  pathTemplate: "/api/v1/api-keys/{id}",
45
45
  pathVariables: { id },
46
46
  options
47
47
  });
48
- var patchApiKey = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(void 0, "api-keys", {
48
+ var patchApiKey = async (id, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "api-keys", {
49
49
  method: "patch",
50
50
  pathTemplate: "/api/v1/api-keys/{id}",
51
51
  pathVariables: { id },
@@ -54,7 +54,7 @@ var patchApiKey = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(void
54
54
  options
55
55
  });
56
56
  function clearCache() {
57
- return _EL2GSPZZjs.clearApiCache.call(void 0, "api-keys");
57
+ return _QMWU5E4Djs.clearApiCache.call(void 0, "api-keys");
58
58
  }
59
59
  var apiKeysExport = {
60
60
  getApiKeys,
package/api-keys.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/POR3DZIU.mjs";
5
- import "./chunks/VLLTA4EY.mjs";
4
+ } from "./chunks/HWZC3PIL.mjs";
5
+ import "./chunks/O5POHH2Q.mjs";
6
6
  import "./chunks/VSY5YIQY.mjs";
7
7
 
8
8
  // src/public/rest/api-keys.ts
package/apps.d.mts CHANGED
@@ -71,6 +71,48 @@ type AnalysisModelResponseDetail = {
71
71
  isLogicalModelEnabled?: boolean;
72
72
  masterItems?: AnalysisModelItemMasterItem[];
73
73
  };
74
+ /**
75
+ * Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.
76
+ * In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,
77
+ * you can utilize below three approaches, also you can set language parameter in headers as part of accept-language.
78
+ * Examples:
79
+ * ```
80
+ * {
81
+ * 'text': 'show me sales by product'
82
+ * }
83
+ * ```
84
+ * ```
85
+ * {
86
+ * 'fields': [
87
+ * {
88
+ * 'name': 'product'
89
+ * }
90
+ * ],
91
+ * 'libItems': [
92
+ * {
93
+ * libId: 'NwQfJ'
94
+ * }
95
+ * ]
96
+ * }
97
+ * ```
98
+ * ```
99
+ * {
100
+ * 'fields': [
101
+ * {
102
+ * 'name': 'product'
103
+ * }
104
+ * ],
105
+ * 'libItems': [
106
+ * {
107
+ * 'libId': 'NwQfJ'
108
+ * }
109
+ * ],
110
+ * 'targetAnalysis': {
111
+ * 'id': 'rank-rank'
112
+ * }
113
+ * }
114
+ * ```
115
+ */
74
116
  type AnalysisRecommendRequest = RecommendNaturalLangQuery | RecommendItems;
75
117
  type AnalysisRecommendationResponse = {
76
118
  data?: AnalysisRecommendationResponseDetail[];
@@ -115,8 +157,17 @@ type AppUpdateAttributes = {
115
157
  /** The name (title) of the application. */
116
158
  name?: string;
117
159
  };
160
+ /**
161
+ * Chart type given to current recommendation
162
+ */
118
163
  type ChartType = "barchart" | "combochart" | "distributionplot" | "kpi" | "linechart" | "map" | "scatterplot" | "table";
164
+ /**
165
+ * classification defines the default role that attribute can play in an analysis
166
+ */
119
167
  type Classifications = ("dimension" | "measure" | "temporal" | "city" | "address" | "boolean" | "country" | "date" | "email" | "geographical" | "geoPoint" | "geoPolygon" | "hour" | "latitude" | "monetary" | "ordinal" | "percentage" | "postalCode" | "quarter" | "stateProvince" | "timestamp" | "week" | "weekDay" | "year" | "yearDay")[];
168
+ /**
169
+ * Upper and lower bounds for items of specific classification types
170
+ */
120
171
  type CompositionMinMax = {
121
172
  max?: number;
122
173
  min?: number;
@@ -139,6 +190,9 @@ type DataModelMetadata = {
139
190
  tables_profiling_data?: TableProfilingData[];
140
191
  usage?: UsageEnum;
141
192
  };
193
+ /**
194
+ * An error object.
195
+ */
142
196
  type Error = {
143
197
  /** The error code. */
144
198
  code: string;
@@ -167,6 +221,45 @@ type EvaluatorError = {
167
221
  }[];
168
222
  };
169
223
  type FieldAttrType = "U" | "A" | "I" | "R" | "F" | "M" | "D" | "T" | "TS" | "IV";
224
+ /**
225
+ * Sets the formatting of a field.
226
+ * The properties of _qFieldAttributes_ and the formatting mechanism are described below.
227
+ *
228
+ * ### Formatting mechanism
229
+ * The formatting mechanism depends on the type set in _qType,_ as shown below:
230
+ * <div class=note>In case of inconsistencies between the type and the format pattern, the format pattern takes precedence over the type.</div>
231
+ *
232
+ * ### Type is DATE, TIME, TIMESTAMP or INTERVAL
233
+ * The following applies:
234
+ * * If a format pattern is defined in _qFmt_ , the formatting is as defined in _qFmt_ .
235
+ * * If _qFmt_ is empty, the formatting is defined by the number interpretation variables included at the top of the script ( _TimeFormat_ , _DateFormat_ , _TimeStampFormat_ ).
236
+ * * The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ are not used.
237
+ *
238
+ * ### Type is INTEGER
239
+ * The following applies:
240
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the formatting mechanism uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
241
+ * * If no format pattern is defined in _qFmt_ , no formatting is applied. The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ and the number interpretation variables defined in the script are not used .
242
+ *
243
+ * ### Type is REAL
244
+ * The following applies:
245
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
246
+ * * If no format pattern is defined in _qFmt_ , and if the value is almost an integer value (for example, 14,000012), the value is formatted as an integer. The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ are not used.
247
+ * * If no format pattern is defined in _qFmt_ , and if _qnDec_ is defined and not 0, the property _qDec_ is used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
248
+ * * If no format pattern is defined in _qFmt_ , and if _qnDec_ is 0, the number of decimals is 14 and the property _qDec_ is used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
249
+ *
250
+ * ### Type is FIX
251
+ * The following applies:
252
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
253
+ * * If no format pattern is defined in _qFmt_ , the properties _qDec_ and _qnDec_ are used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
254
+ *
255
+ * ### Type is MONEY
256
+ * The following applies:
257
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of any script ( _MoneyDecimalSep_ and _MoneyThousandSep_ ).
258
+ * * If no format pattern is defined in _qFmt_ , the engine uses the number interpretation variables included at the top of the script ( _MoneyDecimalSep_ and _MoneyThousandSep_ ).
259
+ *
260
+ * ### Type is ASCII
261
+ * No formatting, _qFmt_ is ignored.
262
+ */
170
263
  type FieldAttributes = {
171
264
  /** Defines the decimal separator.
172
265
  * Example: **.** */
@@ -348,6 +441,9 @@ type Filter = {
348
441
  ownerId?: string;
349
442
  readonly updatedAt?: string;
350
443
  };
444
+ /**
445
+ * Error occured during the Filter creation.
446
+ */
351
447
  type FilterError = {
352
448
  /** The unique code for the error
353
449
  *
@@ -372,6 +468,9 @@ type FilterError = {
372
468
  /** A summary in english explaining what went wrong. */
373
469
  title: string;
374
470
  };
471
+ /**
472
+ * Errors occured during the Filter creation.
473
+ */
375
474
  type FilterErrors = {
376
475
  errors: FilterError[];
377
476
  };
@@ -456,6 +555,9 @@ type HardwareMeta = {
456
555
  type Href = {
457
556
  href?: string;
458
557
  };
558
+ /**
559
+ * Contains dynamic JSON data specified by the client.
560
+ */
459
561
  type JsonObject = unknown;
460
562
  type LastReloadMetadata = {
461
563
  /** Number of CPU milliseconds it took to reload the app. */
@@ -502,6 +604,9 @@ type NavigationLinks = {
502
604
  next?: NavigationLink;
503
605
  prev?: NavigationLink;
504
606
  };
607
+ /**
608
+ * Application attributes and user privileges.
609
+ */
505
610
  type NxApp = {
506
611
  /** App attributes. This structure can also contain extra user-defined attributes. */
507
612
  attributes?: NxAttributes;
@@ -530,6 +635,9 @@ type NxAppCreatePrivileges = {
530
635
  /** Type of resource. For example, sheet, story, bookmark, etc. */
531
636
  resource?: string;
532
637
  };
638
+ /**
639
+ * Application object attributes and user privileges.
640
+ */
533
641
  type NxAppObject = {
534
642
  /** App object attributes. This structure can also contain extra user-defined attributes. */
535
643
  attributes?: NxObjectAttributes;
@@ -545,6 +653,9 @@ type NxAppObject = {
545
653
  * * change_owner */
546
654
  privileges?: string[];
547
655
  };
656
+ /**
657
+ * App attributes. This structure can also contain extra user-defined attributes.
658
+ */
548
659
  type NxAttributes = {
549
660
  /** The date and time when the app was created. */
550
661
  createdDate?: string;
@@ -570,7 +681,8 @@ type NxAttributes = {
570
681
  name?: string;
571
682
  /** The Origin App ID for published apps. */
572
683
  originAppId?: string;
573
- /** Deprecated. Use user api to fetch user metadata. */
684
+ /** @deprecated
685
+ * Deprecated. Use user api to fetch user metadata. */
574
686
  owner?: string;
575
687
  /** Identifier of the app owner. */
576
688
  ownerId?: string;
@@ -582,6 +694,9 @@ type NxAttributes = {
582
694
  thumbnail?: string;
583
695
  usage?: UsageEnum;
584
696
  };
697
+ /**
698
+ * App object attributes. This structure can also contain extra user-defined attributes.
699
+ */
585
700
  type NxObjectAttributes = {
586
701
  /** True if the object is approved. */
587
702
  approved?: boolean;
@@ -614,6 +729,9 @@ type NxPatch = {
614
729
  Value?: string;
615
730
  };
616
731
  type NxPatchOperationType = "add" | "remove" | "replace";
732
+ /**
733
+ * Contains break down of the asked question in the form of tokens with their classification.
734
+ */
617
735
  type PartialNluInfo = {
618
736
  /** Qlik sense application field selected for given token or phrase */
619
737
  fieldName?: string;
@@ -637,6 +755,9 @@ type PublishApp = {
637
755
  spaceId?: string;
638
756
  };
639
757
  type PublishData = "source" | "target";
758
+ /**
759
+ * structure for providing fields in recommendation request, user can retrieve the fields using insight-analyses/model endpoint
760
+ */
640
761
  type RecommendFieldItem = {
641
762
  name?: string;
642
763
  overrides?: FieldOverride;
@@ -649,6 +770,9 @@ type RecommendItems = {
649
770
  id?: string;
650
771
  };
651
772
  };
773
+ /**
774
+ * structure for providing master items in recommendation request, user can retrieve the libId of master item using insight-analyses/model endpoint
775
+ */
652
776
  type RecommendMasterItem = {
653
777
  libId?: string;
654
778
  overrides?: {
package/apps.d.ts CHANGED
@@ -71,6 +71,48 @@ type AnalysisModelResponseDetail = {
71
71
  isLogicalModelEnabled?: boolean;
72
72
  masterItems?: AnalysisModelItemMasterItem[];
73
73
  };
74
+ /**
75
+ * Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.
76
+ * In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,
77
+ * you can utilize below three approaches, also you can set language parameter in headers as part of accept-language.
78
+ * Examples:
79
+ * ```
80
+ * {
81
+ * 'text': 'show me sales by product'
82
+ * }
83
+ * ```
84
+ * ```
85
+ * {
86
+ * 'fields': [
87
+ * {
88
+ * 'name': 'product'
89
+ * }
90
+ * ],
91
+ * 'libItems': [
92
+ * {
93
+ * libId: 'NwQfJ'
94
+ * }
95
+ * ]
96
+ * }
97
+ * ```
98
+ * ```
99
+ * {
100
+ * 'fields': [
101
+ * {
102
+ * 'name': 'product'
103
+ * }
104
+ * ],
105
+ * 'libItems': [
106
+ * {
107
+ * 'libId': 'NwQfJ'
108
+ * }
109
+ * ],
110
+ * 'targetAnalysis': {
111
+ * 'id': 'rank-rank'
112
+ * }
113
+ * }
114
+ * ```
115
+ */
74
116
  type AnalysisRecommendRequest = RecommendNaturalLangQuery | RecommendItems;
75
117
  type AnalysisRecommendationResponse = {
76
118
  data?: AnalysisRecommendationResponseDetail[];
@@ -115,8 +157,17 @@ type AppUpdateAttributes = {
115
157
  /** The name (title) of the application. */
116
158
  name?: string;
117
159
  };
160
+ /**
161
+ * Chart type given to current recommendation
162
+ */
118
163
  type ChartType = "barchart" | "combochart" | "distributionplot" | "kpi" | "linechart" | "map" | "scatterplot" | "table";
164
+ /**
165
+ * classification defines the default role that attribute can play in an analysis
166
+ */
119
167
  type Classifications = ("dimension" | "measure" | "temporal" | "city" | "address" | "boolean" | "country" | "date" | "email" | "geographical" | "geoPoint" | "geoPolygon" | "hour" | "latitude" | "monetary" | "ordinal" | "percentage" | "postalCode" | "quarter" | "stateProvince" | "timestamp" | "week" | "weekDay" | "year" | "yearDay")[];
168
+ /**
169
+ * Upper and lower bounds for items of specific classification types
170
+ */
120
171
  type CompositionMinMax = {
121
172
  max?: number;
122
173
  min?: number;
@@ -139,6 +190,9 @@ type DataModelMetadata = {
139
190
  tables_profiling_data?: TableProfilingData[];
140
191
  usage?: UsageEnum;
141
192
  };
193
+ /**
194
+ * An error object.
195
+ */
142
196
  type Error = {
143
197
  /** The error code. */
144
198
  code: string;
@@ -167,6 +221,45 @@ type EvaluatorError = {
167
221
  }[];
168
222
  };
169
223
  type FieldAttrType = "U" | "A" | "I" | "R" | "F" | "M" | "D" | "T" | "TS" | "IV";
224
+ /**
225
+ * Sets the formatting of a field.
226
+ * The properties of _qFieldAttributes_ and the formatting mechanism are described below.
227
+ *
228
+ * ### Formatting mechanism
229
+ * The formatting mechanism depends on the type set in _qType,_ as shown below:
230
+ * <div class=note>In case of inconsistencies between the type and the format pattern, the format pattern takes precedence over the type.</div>
231
+ *
232
+ * ### Type is DATE, TIME, TIMESTAMP or INTERVAL
233
+ * The following applies:
234
+ * * If a format pattern is defined in _qFmt_ , the formatting is as defined in _qFmt_ .
235
+ * * If _qFmt_ is empty, the formatting is defined by the number interpretation variables included at the top of the script ( _TimeFormat_ , _DateFormat_ , _TimeStampFormat_ ).
236
+ * * The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ are not used.
237
+ *
238
+ * ### Type is INTEGER
239
+ * The following applies:
240
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the formatting mechanism uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
241
+ * * If no format pattern is defined in _qFmt_ , no formatting is applied. The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ and the number interpretation variables defined in the script are not used .
242
+ *
243
+ * ### Type is REAL
244
+ * The following applies:
245
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
246
+ * * If no format pattern is defined in _qFmt_ , and if the value is almost an integer value (for example, 14,000012), the value is formatted as an integer. The properties _qDec_ , _qThou_ , _qnDec_ , _qUseThou_ are not used.
247
+ * * If no format pattern is defined in _qFmt_ , and if _qnDec_ is defined and not 0, the property _qDec_ is used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
248
+ * * If no format pattern is defined in _qFmt_ , and if _qnDec_ is 0, the number of decimals is 14 and the property _qDec_ is used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
249
+ *
250
+ * ### Type is FIX
251
+ * The following applies:
252
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( _DecimalSep_ and _ThousandSep_ ).
253
+ * * If no format pattern is defined in _qFmt_ , the properties _qDec_ and _qnDec_ are used. If _qDec_ is not defined, the variable _DecimalSep_ defined at the top of the script is used.
254
+ *
255
+ * ### Type is MONEY
256
+ * The following applies:
257
+ * * If a format pattern is defined in _qFmt_ , the engine looks at the values set in _qDec_ and _qThou_ . If these properties are not defined, the engine uses the number interpretation variables included at the top of any script ( _MoneyDecimalSep_ and _MoneyThousandSep_ ).
258
+ * * If no format pattern is defined in _qFmt_ , the engine uses the number interpretation variables included at the top of the script ( _MoneyDecimalSep_ and _MoneyThousandSep_ ).
259
+ *
260
+ * ### Type is ASCII
261
+ * No formatting, _qFmt_ is ignored.
262
+ */
170
263
  type FieldAttributes = {
171
264
  /** Defines the decimal separator.
172
265
  * Example: **.** */
@@ -348,6 +441,9 @@ type Filter = {
348
441
  ownerId?: string;
349
442
  readonly updatedAt?: string;
350
443
  };
444
+ /**
445
+ * Error occured during the Filter creation.
446
+ */
351
447
  type FilterError = {
352
448
  /** The unique code for the error
353
449
  *
@@ -372,6 +468,9 @@ type FilterError = {
372
468
  /** A summary in english explaining what went wrong. */
373
469
  title: string;
374
470
  };
471
+ /**
472
+ * Errors occured during the Filter creation.
473
+ */
375
474
  type FilterErrors = {
376
475
  errors: FilterError[];
377
476
  };
@@ -456,6 +555,9 @@ type HardwareMeta = {
456
555
  type Href = {
457
556
  href?: string;
458
557
  };
558
+ /**
559
+ * Contains dynamic JSON data specified by the client.
560
+ */
459
561
  type JsonObject = unknown;
460
562
  type LastReloadMetadata = {
461
563
  /** Number of CPU milliseconds it took to reload the app. */
@@ -502,6 +604,9 @@ type NavigationLinks = {
502
604
  next?: NavigationLink;
503
605
  prev?: NavigationLink;
504
606
  };
607
+ /**
608
+ * Application attributes and user privileges.
609
+ */
505
610
  type NxApp = {
506
611
  /** App attributes. This structure can also contain extra user-defined attributes. */
507
612
  attributes?: NxAttributes;
@@ -530,6 +635,9 @@ type NxAppCreatePrivileges = {
530
635
  /** Type of resource. For example, sheet, story, bookmark, etc. */
531
636
  resource?: string;
532
637
  };
638
+ /**
639
+ * Application object attributes and user privileges.
640
+ */
533
641
  type NxAppObject = {
534
642
  /** App object attributes. This structure can also contain extra user-defined attributes. */
535
643
  attributes?: NxObjectAttributes;
@@ -545,6 +653,9 @@ type NxAppObject = {
545
653
  * * change_owner */
546
654
  privileges?: string[];
547
655
  };
656
+ /**
657
+ * App attributes. This structure can also contain extra user-defined attributes.
658
+ */
548
659
  type NxAttributes = {
549
660
  /** The date and time when the app was created. */
550
661
  createdDate?: string;
@@ -570,7 +681,8 @@ type NxAttributes = {
570
681
  name?: string;
571
682
  /** The Origin App ID for published apps. */
572
683
  originAppId?: string;
573
- /** Deprecated. Use user api to fetch user metadata. */
684
+ /** @deprecated
685
+ * Deprecated. Use user api to fetch user metadata. */
574
686
  owner?: string;
575
687
  /** Identifier of the app owner. */
576
688
  ownerId?: string;
@@ -582,6 +694,9 @@ type NxAttributes = {
582
694
  thumbnail?: string;
583
695
  usage?: UsageEnum;
584
696
  };
697
+ /**
698
+ * App object attributes. This structure can also contain extra user-defined attributes.
699
+ */
585
700
  type NxObjectAttributes = {
586
701
  /** True if the object is approved. */
587
702
  approved?: boolean;
@@ -614,6 +729,9 @@ type NxPatch = {
614
729
  Value?: string;
615
730
  };
616
731
  type NxPatchOperationType = "add" | "remove" | "replace";
732
+ /**
733
+ * Contains break down of the asked question in the form of tokens with their classification.
734
+ */
617
735
  type PartialNluInfo = {
618
736
  /** Qlik sense application field selected for given token or phrase */
619
737
  fieldName?: string;
@@ -637,6 +755,9 @@ type PublishApp = {
637
755
  spaceId?: string;
638
756
  };
639
757
  type PublishData = "source" | "target";
758
+ /**
759
+ * structure for providing fields in recommendation request, user can retrieve the fields using insight-analyses/model endpoint
760
+ */
640
761
  type RecommendFieldItem = {
641
762
  name?: string;
642
763
  overrides?: FieldOverride;
@@ -649,6 +770,9 @@ type RecommendItems = {
649
770
  id?: string;
650
771
  };
651
772
  };
773
+ /**
774
+ * structure for providing master items in recommendation request, user can retrieve the libId of master item using insight-analyses/model endpoint
775
+ */
652
776
  type RecommendMasterItem = {
653
777
  libId?: string;
654
778
  overrides?: {