@qlik/api 1.31.0 → 1.33.0

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 (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +329 -0
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +113 -4
  78. package/index.js +626 -40
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +287 -0
  112. package/report-templates.js +94 -0
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +274 -0
  132. package/ui-config.js +91 -0
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/qix.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { H as HostConfig } from './auth-types-DqfMuSRX.js';
2
- import './invoke-fetch-types-Cq7bjkqn.js';
1
+ import { H as HostConfig } from './auth-types-Cj5bM3Yk.js';
3
2
 
4
- declare const QIX_SCHEMA_VERSION = "12.2409.0";
3
+ declare const QIX_SCHEMA_VERSION = "12.2459.0";
5
4
  type AlfaNumString = {
6
5
  /**
7
6
  * Calculated value.
@@ -441,6 +440,12 @@ type BookmarkList<QData> = {
441
440
  * Information about the list of bookmarks.
442
441
  */
443
442
  qItems?: NxContainerEntry<QData>[];
443
+ /**
444
+ * Hierarchy of groups and bookmarks, below the top level group pointed to by the qGroupId property.
445
+ *
446
+ * Stability: *experimental*
447
+ */
448
+ qHierarchy?: NxGroupMember[];
444
449
  };
445
450
  /**
446
451
  * Defines the list of bookmarks.
@@ -458,6 +463,12 @@ type BookmarkListDef = {
458
463
  * Include the bookmark patches. Patches can be very large and may make the list result unmanageable.
459
464
  */
460
465
  qIncludePatches?: boolean;
466
+ /**
467
+ * ID of separate generic object that holds an NxGroupDef, specifying a grouping and ordering of bookmarks.
468
+ *
469
+ * Stability: *experimental*
470
+ */
471
+ qGroupId?: string;
461
472
  };
462
473
  type BookmarkStateFieldPages = {
463
474
  /**
@@ -3972,6 +3983,48 @@ type NxGetObjectOptions = {
3972
3983
  */
3973
3984
  qData?: Record<string, string>;
3974
3985
  };
3986
+ /**
3987
+ * Defines the properties of an object group.
3988
+ *
3989
+ * Stability: *experimental*
3990
+ */
3991
+ type NxGroupDef = {
3992
+ /**
3993
+ * Specifies the class of the group's object members.
3994
+ *
3995
+ * One of:
3996
+ * * bookmark or MEMBER_BOOKMARK
3997
+ * * object or MEMBER_OBJECT
3998
+ */
3999
+ qClass?: NxGroupMemberClass;
4000
+ /**
4001
+ * Specifies the type of the group's object members.
4002
+ */
4003
+ qType?: string;
4004
+ /**
4005
+ * The group's label. Will be evaluated as an expression if it starts with '='.
4006
+ */
4007
+ qLabel?: string;
4008
+ /**
4009
+ * The objects and sub-groups that are members of the group.
4010
+ */
4011
+ qMemberIds?: NxGroupObjectId[];
4012
+ };
4013
+ type NxGroupMember = {
4014
+ qObjectId?: string;
4015
+ };
4016
+ type NxGroupMemberClass = "bookmark" | "MEMBER_BOOKMARK" | "object" | "MEMBER_OBJECT";
4017
+ /**
4018
+ * Holds the ID of a _NxGroupDef_'s member.
4019
+ * _GroupId_ holds the ID of a sub-group while _ObjectId_ holds the ID of an object.
4020
+ * Only one Id should be set. _GroupId_ takes precedence if both are set.
4021
+ *
4022
+ * Stability: *experimental*
4023
+ */
4024
+ type NxGroupObjectId = {
4025
+ qGroupId?: string;
4026
+ qObjectId?: string;
4027
+ };
3975
4028
  type NxGroupTail = {
3976
4029
  /**
3977
4030
  * Number of elements that are part of the previous tail.
@@ -8685,6 +8738,21 @@ type NativeDocFunctions<FieldRpcObject, GenericBookmarkRpcObject, GenericDimensi
8685
8738
  * Stability: *locked*
8686
8739
  */
8687
8740
  getObjects: <QData>(options: NxGetObjectOptions) => Promise<NxContainerEntry<QData>[]>;
8741
+ /**
8742
+ * Get or create a generic object at app level with a specific Id and Type.
8743
+ * Id and Type are specified in the GenericObjectProperties passed in.
8744
+ * All other fields in this parameter serve as default properties.
8745
+ * If the object does not exist with that Id, it is created and initialized from the default properties.
8746
+ * If the object already exists, it is not changed. The properties passed in are not used.
8747
+ * The call will fail if the Id is already used for another purpose, such as for an object of a different Type.
8748
+ *
8749
+ * Parameters:
8750
+ *
8751
+ * - `prop` - GenericObjectProperties with at least Info : { "qId": "&lt;identifier of the new generic object&gt;", "qType": "&lt;type of the new generic object&gt;" }
8752
+ *
8753
+ * Stability: *experimental*
8754
+ */
8755
+ getOrCreateObject: <CustomProperties = DefaultGenericObjectProperties, CustomGenericObject = GenericObjectRpcObject>(prop: CustomProperties) => Promise<CustomGenericObject>;
8688
8756
  /**
8689
8757
  * Gets values in script.
8690
8758
  *
@@ -9814,6 +9882,21 @@ type NativeGenericObjectFunctions<CustomProperties, CustomLayout, GenericObjectR
9814
9882
  * Stability: *locked*
9815
9883
  */
9816
9884
  acceptListObjectSearch: (path: string, toggleMode: boolean, softLock?: boolean) => Promise<void>;
9885
+ /**
9886
+ * You can use the AddGroupMembers method with any object that contains an object grouping definition.
9887
+ * This method allows you to add one or more members to an existing group of objects directly.
9888
+ *
9889
+ * Parameters:
9890
+ *
9891
+ * - `path` - Path to the definition of the object to be selected.
9892
+ * For exampleb _/qNxGroupDef_ .
9893
+ * - `members` - Array of IDs for the objects and/or subgroups to add to the group.
9894
+ * - `targetGroupId` - Name of the group the Members will be added to (if not the called object).
9895
+ * - `posId` - Id of the member whose position to insert into.
9896
+ *
9897
+ * Stability: *experimental*
9898
+ */
9899
+ addGroupMembers: (path: string, members: NxGroupObjectId[], targetGroupId?: string, posId?: string) => Promise<void>;
9817
9900
  /**
9818
9901
  * Applies a patch to the properties of an object. Allows an update to some of the properties.
9819
9902
  * It is possible to apply a patch to the properties of a generic object, that is not persistent. Such a patch is called a soft patch.
@@ -9938,6 +10021,20 @@ type NativeGenericObjectFunctions<CustomProperties, CustomLayout, GenericObjectR
9938
10021
  * Stability: *locked*
9939
10022
  */
9940
10023
  createChild: <CustomChildProperties = GenericObjectProperties, CustomGenericObject = GenericObjectRpcObject>(prop: CustomChildProperties, propForThis?: CustomProperties) => Promise<CustomGenericObject>;
10024
+ /**
10025
+ * You can use the CreateGroup method with any object that contains an object grouping definition.
10026
+ * This method allows you to create a new subgroup of objects directly and add it to a groups members.
10027
+ *
10028
+ * Parameters:
10029
+ *
10030
+ * - `path` - Path to the definition of the object to be selected.
10031
+ * For example _/qNxGroupDef_ .
10032
+ * - `groupDef` - Definition of the new group.
10033
+ * - `targetGroupId` - Id of the group to create the new subgroup in (if not the called object).
10034
+ *
10035
+ * Stability: *experimental*
10036
+ */
10037
+ createGroup: (path: string, groupDef: NxGroupDef, targetGroupId?: string) => Promise<string>;
9941
10038
  /**
9942
10039
  * Removes all children and all children to the children on an object.
9943
10040
  *
@@ -10557,6 +10654,35 @@ type NativeGenericObjectFunctions<CustomProperties, CustomLayout, GenericObjectR
10557
10654
  * Stability: *locked*
10558
10655
  */
10559
10656
  rangeSelectHyperCubeValues: (path: string, ranges: NxRangeSelectInfo[], columnsToSelect?: number[], orMode?: boolean, deselectOnlyOneSelected?: boolean) => Promise<boolean>;
10657
+ /**
10658
+ * You can use the RemoveGroup method with any object that contains an object grouping definition.
10659
+ * This method allows you to remove a group of objects directly.
10660
+ * This action only removes the group, not any of its members.
10661
+ *
10662
+ * Parameters:
10663
+ *
10664
+ * - `path` - Path to the definition of the object to be selected.
10665
+ * For example _/qNxGroupDef_ .
10666
+ * - `groupId` - Name of the group to be removed.
10667
+ * May not be an empty string.
10668
+ *
10669
+ * Stability: *experimental*
10670
+ */
10671
+ removeGroup: (path: string, groupId: string) => Promise<void>;
10672
+ /**
10673
+ * You can use the RemoveGroupMembers method with any object that contains an object grouping definition.
10674
+ * This method allows you to remove one or more members from an existing group of objects directly.
10675
+ *
10676
+ * Parameters:
10677
+ *
10678
+ * - `path` - Path to the definition of the object to be selected.
10679
+ * For example _/qNxGroupDef_ .
10680
+ * - `members` - Array of IDs for the objects and/or subgroups to remove from the group.
10681
+ * - `targetGroupId` - Name of the group the Members will be removed from (if not the called object).
10682
+ *
10683
+ * Stability: *experimental*
10684
+ */
10685
+ removeGroupMembers: (path: string, members: string[], targetGroupId?: string) => Promise<void>;
10560
10686
  /**
10561
10687
  * Resets all selections made in selection mode.
10562
10688
  *
@@ -10836,6 +10962,21 @@ type NativeGenericObjectFunctions<CustomProperties, CustomLayout, GenericObjectR
10836
10962
  * Stability: *locked*
10837
10963
  */
10838
10964
  setFullPropertyTree: (propEntry: GenericObjectEntry) => Promise<void>;
10965
+ /**
10966
+ * You can use the SetGroupLabel method with any object that contains an object grouping definition.
10967
+ * This method allows you to change the label of an existing group of objects directly.
10968
+ *
10969
+ * Parameters:
10970
+ *
10971
+ * - `path` - Path to the definition of the object to be selected.
10972
+ * For example _/qNxGroupDef_ .
10973
+ * - `newLabel` - New label for the group.
10974
+ * A label starting with an '=' will be evaluated as an expression.
10975
+ * - `targetGroupId` - Id of the group whose label will be set (if not the called object).
10976
+ *
10977
+ * Stability: *experimental*
10978
+ */
10979
+ setGroupLabel: (path: string, newLabel: string, targetGroupId?: string) => Promise<void>;
10839
10980
  /**
10840
10981
  * Sets some properties for a generic object.
10841
10982
  * <div class=note>The properties depends on the generic object type, see [properties](genericobject-property.html).</div>
@@ -12242,4 +12383,4 @@ declare const qix: QixAPI & {
12242
12383
  withHostConfig: (hostConfig: HostConfig | undefined) => QixAPI;
12243
12384
  };
12244
12385
 
12245
- export { type AlfaNumString, type AlternateStateData, type AnyGenericObjectLayout, type AnyGenericObjectProperties, type AppEntry, type AppObjectList, type AppObjectListDef, type AppScript, type AppScriptMeta, type AppSession, type ApplyGroupStateWarning, type ApplyGroupStateWarningType, type ApplyGroupStatesResult, type ArrayOfNxValuePoint, type AssociationScore, type BNFDef, type BNFDefMetaType, type BNFType, type Blob, type Bookmark, type BookmarkApplyAndVerifyResult, type BookmarkFieldItem, type BookmarkFieldPage, type BookmarkFieldPageEx, type BookmarkFieldVerifyResultState, type BookmarkFieldVerifyWarning, type BookmarkList, type BookmarkListData, type BookmarkListDef, type BookmarkListItem, type BookmarkStateFieldPages, type BookmarkVariableItem, type CalendarStrings, type CharEncodingType, type CharRange, type ChildList, type ChildListDef, type CloseProps, type CodePage, type CombinedWebSocketStateEvent, type CondDef, type Connection, type ContentLibraryList, type ContentLibraryListItem, type CurrentSelections, type CustomConnector, type CyclicGroupPosition, type DataField, type DataRecord, type DataTable, type DataTableEx, type Database, type DatabaseInfo, type DatabaseOwner, type DelimiterInfo, type DerivedFieldsInTableData, type DimensionList, type DimensionListData, type DimensionListDef, type DimensionListItem, type DimensionReference, type DoReloadExParams, type DoReloadExResult, type Doc, type DocAction, type DocListEntry, type DriveInfo, type DriveType, type DynamicAppViewListData, type DynamicAppViewListItem, type EditorBreakpoint, type EmbeddedSnapshot, type EmbeddedSnapshotDef, type ErrorData, type ErrorDataCode, type ExpandedFieldListItem, type ExpansionData, type ExtendedLayoutBookmarkData, type ExtendedPivotStateData, type ExtensionList, type ExtensionListDef, type FailureData, type Field, type FieldAttrType, type FieldAttributes, type FieldDefEx, type FieldDescription, type FieldInTableData, type FieldInTableProfilingData, type FieldList, type FieldListDef, type FieldListObject, type FieldOrColumn, type FieldScores, type FieldType, type FieldValue, type FileDataFormat, type FileType, type FilterInfo, type FilterType, type FolderItem, type FolderItemType, type FrequencyDistributionData, type FunctionGroup, type GenericBookmark, type GenericBookmarkEntry, type GenericBookmarkLayout, type GenericBookmarkProperties, type GenericConnectMachine, type GenericDimension, type GenericDimensionInfo, type GenericDimensionLayout, type GenericDimensionProperties, type GenericListObject, type GenericMeasure, type GenericMeasureLayout, type GenericMeasureProperties, type GenericObject, type GenericObjectEntry, type GenericObjectLayout, type GenericObjectLayoutAdditionalProperties, type GenericObjectLayoutNode, type GenericObjectLayoutNodeLevel2, type GenericObjectLayoutNodeLevel3, type GenericObjectLayoutNodeLevel4, type GenericObjectLayoutNodeLevel5, type GenericObjectLayoutNodeRec, type GenericObjectProperties, type GenericObjectPropertiesAdditionalProperties, type GenericObjectPropertiesNode, type GenericObjectPropertiesNodeLevel2, type GenericObjectPropertiesNodeLevel3, type GenericObjectPropertiesNodeLevel4, type GenericObjectPropertiesNodeLevel5, type GenericObjectPropertiesNodeRec, type GenericVariable, type GenericVariableConstraints, type GenericVariableLayout, type GenericVariableProperties, type GenericVariableType, type Global, type GraphMode, type GroupBookmarkData, type GroupState, type GroupStateInfo, type HyperCube, type HyperCubeDef, type InputFieldItem, type InterFieldSortData, type InteractDef, type InteractType, type KeyType, type LayoutBookmarkData, type LayoutExclude, type LayoutFieldInfo, type LineageInfo, type ListBoxProperties, type ListFunctions, type ListItem, type ListObject, type ListObjectDef, type LocaleInfo, type LogOnType, type MasterObjectListData, type MasterObjectListItem, type MeasureList, type MeasureListData, type MeasureListDef, type MeasureListItem, type MediaListDef, type MediaListItem, type MetaData, type ModalFunctions, type NativeDocFunctions, type NativeFieldFunctions, type NativeGenericBookmarkFunctions, type NativeGenericDimensionFunctions, type NativeGenericMeasureFunctions, type NativeGenericObjectFunctions, type NativeGenericVariableFunctions, type NativeGlobalFunctions, type NativeReactHooks, type NativeVariableFunctions, type NxAppLayout, type NxAppProperties, type NxAttrDimDef, type NxAttrDimInfo, type NxAttrExprDef, type NxAttrExprInfo, type NxAttributeDimValues, type NxAttributeExpressionValues, type NxAutoSortByStateDef, type NxAxisData, type NxAxisTicks, type NxBookmark, type NxCalcCond, type NxCardinalities, type NxCell, type NxCellPosition, type NxCellRows, type NxContainerEntry, type NxContinuousDataOptions, type NxContinuousMode, type NxContinuousRangeSelectInfo, type NxCurrentSelectionItem, type NxDataAreaPage, type NxDataPage, type NxDataReductionMode, type NxDerivedField, type NxDerivedFieldDescriptionList, type NxDerivedFieldsData, type NxDerivedGroup, type NxDimCellType, type NxDimension, type NxDimensionInfo, type NxDimensionType, type NxDownloadInfo, type NxDownloadOptions, type NxEngineVersion, type NxExportFileType, type NxExportState, type NxFeature, type NxFieldDescription, type NxFieldProperties, type NxFieldResourceId, type NxFieldSelectionInfo, type NxFieldSelectionMode, type NxFieldTableResourceId, type NxFrequencyMode, type NxGetBookmarkOptions, type NxGetObjectOptions, type NxGroupTail, type NxGrpType, type NxHighlightRanges, type NxHypercubeMode, type NxInfo, type NxInlineDimensionDef, type NxInlineMeasureDef, type NxLTrendlineType, type NxLayoutErrors, type NxLibraryDimension, type NxLibraryDimensionDef, type NxLibraryMeasure, type NxLibraryMeasureDef, type NxLinkedObjectInfo, type NxListObjectExpression, type NxListObjectExpressionDef, type NxLocalizedErrorCode, type NxLocalizedWarningCode, type NxMatchingFieldInfo, type NxMatchingFieldMode, type NxMeasure, type NxMeasureInfo, type NxMeta, type NxMetaDef, type NxMiniChart, type NxMiniChartCell, type NxMiniChartData, type NxMiniChartDef, type NxMiniChartRows, type NxMultiRangeSelectInfo, type NxPage, type NxPageTreeLevel, type NxPageTreeNode, type NxPatch, type NxPatchOperationType, type NxPatches, type NxPivotDimensionCell, type NxPivotPage, type NxPivotValuePoint, type NxRange, type NxRangeSelectInfo, type NxSelectionCell, type NxSelectionCellType, type NxSelectionInfo, type NxSimpleDimValue, type NxSimpleValue, type NxSortIndicatorType, type NxStackPage, type NxStackedPivotCell, type NxStateCounts, type NxStreamListEntry, type NxTempBookmarkOptions, type NxTickCell, type NxTreeDataOption, type NxTreeDimensionDef, type NxTreeDimensionInfo, type NxTreeMultiRangeSelectInfo, type NxTreeNode, type NxTreeRangeSelectInfo, type NxTreeValue, type NxTrendline, type NxTrendlineDef, type NxTrendlineMode, type NxValidationError, type NxVariableListItem, type NxVariableProperties, type NxViewPort, type ODAGAppLinkListData, type ODAGAppLinkListItem, type ObjectHelperFunctions, type ObjectInterface, type OdbcDsn, type OleDbProvider, type OpenAppSessionProps, type OtherLimitMode, type OtherMode, type OtherSortMode, type OtherTotalSpecProp, type Point, type PositionMark, type ProgressData, type ProgressMessage, type QFunction, QIX_SCHEMA_VERSION, type QMediaList, type QRange, type QixAPI, type RangeSelectInfo, type Rect, type ReloadError, type RpcObject, type SampleResult, type ScriptSyntaxError, type ScrollPosition, type SearchAssociationResult, type SearchAttribute, type SearchCharRange, type SearchCombinationOptions, type SearchContextType, type SearchFieldDictionary, type SearchFieldMatch, type SearchFieldMatchType, type SearchFieldMatchesItem, type SearchFieldSelectionMode, type SearchFieldValueItem, type SearchGroup, type SearchGroupItem, type SearchGroupItemMatch, type SearchGroupItemOptions, type SearchGroupItemType, type SearchGroupOptions, type SearchGroupType, type SearchMatchCombination, type SearchMatchCombinations, type SearchObjectOptions, type SearchPage, type SearchResult, type SearchSuggestItem, type SearchSuggestionResult, type SearchTermResult, type SearchValueOptions, type SearchValuePage, type SearchValueResult, type SelectInfo, type SelectionObject, type SelectionObjectDef, type SheetListData, type SheetListDataCell, type SheetListDataCellBounds, type SheetListItem, type Size, type SortCriteria, type SourceKeyRecord, type SpecialObjectFunctions, type StandardFunctions, type StateEnumType, type StateFieldValues, type StaticContentList, type StaticContentListItem, type StaticContentUrl, type StaticContentUrlDef, type StoryListData, type StoryListItem, type StringExpr, type StringExpression, type SymbolFrequency, type SymbolValue, type TableProfilingData, type TableRecord, type TableRow, type TableViewBroomPointSaveInfo, type TableViewConnectionPointSaveInfo, type TableViewCtlSaveInfo, type TableViewDlgSaveInfo, type TableViewSaveInfo, type TableViewTableWinSaveInfo, type TextMacro, type TotalMode, type TransformAppParameters, type TransformAppResult, type TreeData, type TreeDataDef, type UndoInfo, type UndoInfoDef, type UndoInfoObject, type UsageEnum, type UseAppHook, type ValueExpr, type ValueExpression, type VariableList, type VariableListData, type VariableListDef, type VariableListItem, type WebSocketEvent, type WorkloadType, qix as default, openAppSession, withHostConfig };
12386
+ export { type AlfaNumString, type AlternateStateData, type AnyGenericObjectLayout, type AnyGenericObjectProperties, type AppEntry, type AppObjectList, type AppObjectListDef, type AppScript, type AppScriptMeta, type AppSession, type ApplyGroupStateWarning, type ApplyGroupStateWarningType, type ApplyGroupStatesResult, type ArrayOfNxValuePoint, type AssociationScore, type BNFDef, type BNFDefMetaType, type BNFType, type Blob, type Bookmark, type BookmarkApplyAndVerifyResult, type BookmarkFieldItem, type BookmarkFieldPage, type BookmarkFieldPageEx, type BookmarkFieldVerifyResultState, type BookmarkFieldVerifyWarning, type BookmarkList, type BookmarkListData, type BookmarkListDef, type BookmarkListItem, type BookmarkStateFieldPages, type BookmarkVariableItem, type CalendarStrings, type CharEncodingType, type CharRange, type ChildList, type ChildListDef, type CloseProps, type CodePage, type CombinedWebSocketStateEvent, type CondDef, type Connection, type ContentLibraryList, type ContentLibraryListItem, type CurrentSelections, type CustomConnector, type CyclicGroupPosition, type DataField, type DataRecord, type DataTable, type DataTableEx, type Database, type DatabaseInfo, type DatabaseOwner, type DelimiterInfo, type DerivedFieldsInTableData, type DimensionList, type DimensionListData, type DimensionListDef, type DimensionListItem, type DimensionReference, type DoReloadExParams, type DoReloadExResult, type Doc, type DocAction, type DocListEntry, type DriveInfo, type DriveType, type DynamicAppViewListData, type DynamicAppViewListItem, type EditorBreakpoint, type EmbeddedSnapshot, type EmbeddedSnapshotDef, type ErrorData, type ErrorDataCode, type ExpandedFieldListItem, type ExpansionData, type ExtendedLayoutBookmarkData, type ExtendedPivotStateData, type ExtensionList, type ExtensionListDef, type FailureData, type Field, type FieldAttrType, type FieldAttributes, type FieldDefEx, type FieldDescription, type FieldInTableData, type FieldInTableProfilingData, type FieldList, type FieldListDef, type FieldListObject, type FieldOrColumn, type FieldScores, type FieldType, type FieldValue, type FileDataFormat, type FileType, type FilterInfo, type FilterType, type FolderItem, type FolderItemType, type FrequencyDistributionData, type FunctionGroup, type GenericBookmark, type GenericBookmarkEntry, type GenericBookmarkLayout, type GenericBookmarkProperties, type GenericConnectMachine, type GenericDimension, type GenericDimensionInfo, type GenericDimensionLayout, type GenericDimensionProperties, type GenericListObject, type GenericMeasure, type GenericMeasureLayout, type GenericMeasureProperties, type GenericObject, type GenericObjectEntry, type GenericObjectLayout, type GenericObjectLayoutAdditionalProperties, type GenericObjectLayoutNode, type GenericObjectLayoutNodeLevel2, type GenericObjectLayoutNodeLevel3, type GenericObjectLayoutNodeLevel4, type GenericObjectLayoutNodeLevel5, type GenericObjectLayoutNodeRec, type GenericObjectProperties, type GenericObjectPropertiesAdditionalProperties, type GenericObjectPropertiesNode, type GenericObjectPropertiesNodeLevel2, type GenericObjectPropertiesNodeLevel3, type GenericObjectPropertiesNodeLevel4, type GenericObjectPropertiesNodeLevel5, type GenericObjectPropertiesNodeRec, type GenericVariable, type GenericVariableConstraints, type GenericVariableLayout, type GenericVariableProperties, type GenericVariableType, type Global, type GraphMode, type GroupBookmarkData, type GroupState, type GroupStateInfo, type HyperCube, type HyperCubeDef, type InputFieldItem, type InterFieldSortData, type InteractDef, type InteractType, type KeyType, type LayoutBookmarkData, type LayoutExclude, type LayoutFieldInfo, type LineageInfo, type ListBoxProperties, type ListFunctions, type ListItem, type ListObject, type ListObjectDef, type LocaleInfo, type LogOnType, type MasterObjectListData, type MasterObjectListItem, type MeasureList, type MeasureListData, type MeasureListDef, type MeasureListItem, type MediaListDef, type MediaListItem, type MetaData, type ModalFunctions, type NativeDocFunctions, type NativeFieldFunctions, type NativeGenericBookmarkFunctions, type NativeGenericDimensionFunctions, type NativeGenericMeasureFunctions, type NativeGenericObjectFunctions, type NativeGenericVariableFunctions, type NativeGlobalFunctions, type NativeReactHooks, type NativeVariableFunctions, type NxAppLayout, type NxAppProperties, type NxAttrDimDef, type NxAttrDimInfo, type NxAttrExprDef, type NxAttrExprInfo, type NxAttributeDimValues, type NxAttributeExpressionValues, type NxAutoSortByStateDef, type NxAxisData, type NxAxisTicks, type NxBookmark, type NxCalcCond, type NxCardinalities, type NxCell, type NxCellPosition, type NxCellRows, type NxContainerEntry, type NxContinuousDataOptions, type NxContinuousMode, type NxContinuousRangeSelectInfo, type NxCurrentSelectionItem, type NxDataAreaPage, type NxDataPage, type NxDataReductionMode, type NxDerivedField, type NxDerivedFieldDescriptionList, type NxDerivedFieldsData, type NxDerivedGroup, type NxDimCellType, type NxDimension, type NxDimensionInfo, type NxDimensionType, type NxDownloadInfo, type NxDownloadOptions, type NxEngineVersion, type NxExportFileType, type NxExportState, type NxFeature, type NxFieldDescription, type NxFieldProperties, type NxFieldResourceId, type NxFieldSelectionInfo, type NxFieldSelectionMode, type NxFieldTableResourceId, type NxFrequencyMode, type NxGetBookmarkOptions, type NxGetObjectOptions, type NxGroupDef, type NxGroupMember, type NxGroupMemberClass, type NxGroupObjectId, type NxGroupTail, type NxGrpType, type NxHighlightRanges, type NxHypercubeMode, type NxInfo, type NxInlineDimensionDef, type NxInlineMeasureDef, type NxLTrendlineType, type NxLayoutErrors, type NxLibraryDimension, type NxLibraryDimensionDef, type NxLibraryMeasure, type NxLibraryMeasureDef, type NxLinkedObjectInfo, type NxListObjectExpression, type NxListObjectExpressionDef, type NxLocalizedErrorCode, type NxLocalizedWarningCode, type NxMatchingFieldInfo, type NxMatchingFieldMode, type NxMeasure, type NxMeasureInfo, type NxMeta, type NxMetaDef, type NxMiniChart, type NxMiniChartCell, type NxMiniChartData, type NxMiniChartDef, type NxMiniChartRows, type NxMultiRangeSelectInfo, type NxPage, type NxPageTreeLevel, type NxPageTreeNode, type NxPatch, type NxPatchOperationType, type NxPatches, type NxPivotDimensionCell, type NxPivotPage, type NxPivotValuePoint, type NxRange, type NxRangeSelectInfo, type NxSelectionCell, type NxSelectionCellType, type NxSelectionInfo, type NxSimpleDimValue, type NxSimpleValue, type NxSortIndicatorType, type NxStackPage, type NxStackedPivotCell, type NxStateCounts, type NxStreamListEntry, type NxTempBookmarkOptions, type NxTickCell, type NxTreeDataOption, type NxTreeDimensionDef, type NxTreeDimensionInfo, type NxTreeMultiRangeSelectInfo, type NxTreeNode, type NxTreeRangeSelectInfo, type NxTreeValue, type NxTrendline, type NxTrendlineDef, type NxTrendlineMode, type NxValidationError, type NxVariableListItem, type NxVariableProperties, type NxViewPort, type ODAGAppLinkListData, type ODAGAppLinkListItem, type ObjectHelperFunctions, type ObjectInterface, type OdbcDsn, type OleDbProvider, type OpenAppSessionProps, type OtherLimitMode, type OtherMode, type OtherSortMode, type OtherTotalSpecProp, type Point, type PositionMark, type ProgressData, type ProgressMessage, type QFunction, QIX_SCHEMA_VERSION, type QMediaList, type QRange, type QixAPI, type RangeSelectInfo, type Rect, type ReloadError, type RpcObject, type SampleResult, type ScriptSyntaxError, type ScrollPosition, type SearchAssociationResult, type SearchAttribute, type SearchCharRange, type SearchCombinationOptions, type SearchContextType, type SearchFieldDictionary, type SearchFieldMatch, type SearchFieldMatchType, type SearchFieldMatchesItem, type SearchFieldSelectionMode, type SearchFieldValueItem, type SearchGroup, type SearchGroupItem, type SearchGroupItemMatch, type SearchGroupItemOptions, type SearchGroupItemType, type SearchGroupOptions, type SearchGroupType, type SearchMatchCombination, type SearchMatchCombinations, type SearchObjectOptions, type SearchPage, type SearchResult, type SearchSuggestItem, type SearchSuggestionResult, type SearchTermResult, type SearchValueOptions, type SearchValuePage, type SearchValueResult, type SelectInfo, type SelectionObject, type SelectionObjectDef, type SheetListData, type SheetListDataCell, type SheetListDataCellBounds, type SheetListItem, type Size, type SortCriteria, type SourceKeyRecord, type SpecialObjectFunctions, type StandardFunctions, type StateEnumType, type StateFieldValues, type StaticContentList, type StaticContentListItem, type StaticContentUrl, type StaticContentUrlDef, type StoryListData, type StoryListItem, type StringExpr, type StringExpression, type SymbolFrequency, type SymbolValue, type TableProfilingData, type TableRecord, type TableRow, type TableViewBroomPointSaveInfo, type TableViewConnectionPointSaveInfo, type TableViewCtlSaveInfo, type TableViewDlgSaveInfo, type TableViewSaveInfo, type TableViewTableWinSaveInfo, type TextMacro, type TotalMode, type TransformAppParameters, type TransformAppResult, type TreeData, type TreeDataDef, type UndoInfo, type UndoInfoDef, type UndoInfoObject, type UsageEnum, type UseAppHook, type ValueExpr, type ValueExpression, type VariableList, type VariableListData, type VariableListDef, type VariableListItem, type WebSocketEvent, type WorkloadType, qix as default, openAppSession, withHostConfig };
package/qix.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  openAppSession,
3
3
  qix_default,
4
4
  withHostConfig
5
- } from "./chunks/KBSD75QL.js";
6
- import "./chunks/DLKLPD7T.js";
5
+ } from "./chunks/33GQY7N7.js";
6
+ import "./chunks/GPRUNZV4.js";
7
7
  export {
8
8
  qix_default as default,
9
9
  openAppSession,
package/questions.d.ts ADDED
@@ -0,0 +1,364 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ type Analysis = "breakdown" | "changePoint" | "comparison" | "contribution" | "correlation" | "fact" | "mutualInfo" | "rank" | "spike" | "trend" | "values";
5
+ type AnalysisGroup = "anomaly" | "brekadown" | "comparison" | "correl" | "fact" | "list" | "mutualInfo" | "rank";
6
+ /**
7
+ * Metadata for app
8
+ */
9
+ type AppMetadata = {
10
+ id?: string;
11
+ last_reload_date?: string;
12
+ limited_access?: boolean;
13
+ name?: string;
14
+ space_id?: string;
15
+ space_name?: string;
16
+ space_type?: string;
17
+ };
18
+ /**
19
+ * Chart type given to current recommendation
20
+ */
21
+ type ChartType = "barchart" | "combochart" | "distributionplot" | "kpi" | "linechart" | "map" | "scatterplot" | "table";
22
+ type ConversationalResponsePart = {
23
+ errorMessage?: string;
24
+ followupSentence?: string;
25
+ imageUrl?: string;
26
+ infoType?: string;
27
+ infoValues?: (string[] | QlikApp[])[];
28
+ narrative?: NarrativeResponse;
29
+ renderVisualization?: RenderVisualization;
30
+ sentence?: {
31
+ text?: string;
32
+ };
33
+ type?: string;
34
+ };
35
+ /**
36
+ * An error object.
37
+ */
38
+ type Error = {
39
+ /** The error code. */
40
+ code: string;
41
+ /** A human-readable explanation specific to this occurrence of the problem. */
42
+ detail?: string;
43
+ /** Additional properties relating to the error. */
44
+ meta?: unknown;
45
+ /** References to the source of the error. */
46
+ source?: {
47
+ /** The URI query parameter that caused the error. */
48
+ parameter?: string;
49
+ /** A JSON Pointer to the property that caused the error. */
50
+ pointer?: string;
51
+ };
52
+ /** Summary of the problem. */
53
+ title: string;
54
+ };
55
+ type Errors = {
56
+ errors?: Error[];
57
+ };
58
+ type Href = {
59
+ href?: string;
60
+ };
61
+ type Links = {
62
+ next?: Href;
63
+ prev?: Href;
64
+ self?: Href;
65
+ };
66
+ /**
67
+ * Visualisation recommendation specs for the query
68
+ */
69
+ type NLMetricRecommendation = {
70
+ analysis?: Analysis;
71
+ analysisGroup?: AnalysisGroup;
72
+ /** Chart type given to current recommendation */
73
+ chartType?: ChartType;
74
+ /** Dimension(s) considered for recommendation */
75
+ dims?: string[];
76
+ /** Measure(s) considered for recommendation */
77
+ msrs?: string[];
78
+ relevance?: number;
79
+ };
80
+ type NLMetricRecord = {
81
+ /** Qlik sense app id that is being used to answer the question */
82
+ appId: string;
83
+ /** Qlik sense app name that is being used to answer the question */
84
+ appName?: string;
85
+ apps?: AppMetadata[];
86
+ /** Source from which conversation is happening */
87
+ channelId?: string;
88
+ /** Chart type for given query. For insight advisor it would be 'native' and for insight advisor chat, it could be 'static' or 'responsive' */
89
+ chartType?: string;
90
+ /** Record created date */
91
+ createdAt: string;
92
+ /** Qlik sense user id who is interacting with insight advisor or insight advisor chat or third party api */
93
+ createdBy?: string;
94
+ feedback?: RecFeedback[];
95
+ /** Unique record id stored in database */
96
+ id: string;
97
+ /** Boolean value indicates whether given query is contextual or not. It would be false for insight advisor */
98
+ isContextualQuery?: boolean;
99
+ /** language selected for query from insight advisor or insight advisor chat or third party api */
100
+ lang?: string;
101
+ nluInfo?: PartialNluInfo[];
102
+ queryError?: boolean;
103
+ /** Refers to source from where narrative request is called */
104
+ queryOrigin?: "askQuestion" | "iaAnalysis" | "iaAssetsPanel";
105
+ /** Query asked by user in insight advisor or insight advisor or third party api */
106
+ queryText?: string;
107
+ /** Nature of query being asked during the conversation e.g. query, applist, measurelist, dimensionlist */
108
+ queryType?: "appList" | "appSuggested" | "dimensionList" | "exploreThisFurther" | "followup" | "greetings" | "measureList" | "query" | "sampleQuestion";
109
+ /** Unique id assigned to user query */
110
+ questionId: string;
111
+ recommendations?: NLMetricRecommendation[];
112
+ /** Provides info what was included in response for given query */
113
+ responses?: NLResponses;
114
+ /** Tokens from question parsed which are ignored */
115
+ stopWords?: string[];
116
+ /** Qlik sense tenant Id */
117
+ tenantId?: string;
118
+ /** Tokens parsed as entities but not matched with app's field/dimension/measure */
119
+ unmatchedEntities?: string[];
120
+ /** Record modified date */
121
+ updatedAt: string;
122
+ /** Version of the metric model */
123
+ version: string;
124
+ };
125
+ type NLMetricsRequest = {
126
+ /** The advanced filtering to use for the query. Refer to [RFC 7644](https://www.rfc-editor.org/rfc/rfc7644#section-3.4.2.2) for the syntax.
127
+ *
128
+ * Filter on createdAt and updatedAt fields are encouraged and support `eq`, `ne`, `gt`, `ge`, `lt`, `le` comparison operators along with `and` and `or` logical operators.
129
+ *
130
+ * Filter on tenantId field is not supported.
131
+ *
132
+ * `co`, `sw` and `ew` operators are not supported.
133
+ *
134
+ * Examples:
135
+ * ```
136
+ * appId eq 'appId1'
137
+ * ```
138
+ * ```
139
+ * (appId eq 'appId1' or appId eq 'appId2')
140
+ * ```
141
+ * ```
142
+ * (appId eq 'appId1' or appId eq 'appId2') and (createdAt gt '2022-08-03T00:00:00.000Z' and createdAt lt '2022-08-04T00:00:00.000Z')
143
+ * ```
144
+ *
145
+ * ```
146
+ * (appId eq 'appId1') and (createdAt ge '2022-08-03T00:00:00.000Z')
147
+ * ```
148
+ *
149
+ * ```
150
+ * (appId eq 'appId1') and (createdAt le '2022-08-23:59:59.000Z')
151
+ * ```
152
+ *
153
+ * ```
154
+ * (appId eq 'appId1') and (questionId eq '12345')
155
+ * ``` */
156
+ filter: string;
157
+ };
158
+ type NLMetricsResponse = {
159
+ data?: NLMetricRecord[];
160
+ links?: Links;
161
+ readonly meta?: {
162
+ /** The total number of metrics matching the current filter. */
163
+ total: number;
164
+ };
165
+ };
166
+ /**
167
+ * Provides info what was included in response for given query
168
+ */
169
+ type NLResponses = {
170
+ /** Chart was provided */
171
+ hasChart?: boolean;
172
+ /** Narrative was provided */
173
+ hasInsights?: boolean;
174
+ /** App list was provided */
175
+ hasMetadataApps?: boolean;
176
+ /** Dimensions list was provided */
177
+ hasMetadataDimensions?: boolean;
178
+ /** Measures list was provided */
179
+ hasMetadataMeasures?: boolean;
180
+ /** Sample questions was provided */
181
+ hasSampleQueries?: boolean;
182
+ /** Suggestion questions was provided */
183
+ hasSuggestions?: boolean;
184
+ };
185
+ type NarrativeResponse = {
186
+ text?: string;
187
+ };
188
+ type NluInfo = {
189
+ elements?: NluInfoElements[];
190
+ };
191
+ type NluInfoElements = {
192
+ entity?: boolean;
193
+ errorText?: string;
194
+ filterFieldName?: string;
195
+ filterText?: string;
196
+ isFilter?: boolean;
197
+ text?: string;
198
+ type?: string;
199
+ typeName?: string;
200
+ typeTranslated?: string;
201
+ };
202
+ /**
203
+ * Contains break down of the asked question in the form of tokens with their classification.
204
+ */
205
+ type PartialNluInfo = {
206
+ /** Qlik sense application field selected for given token or phrase */
207
+ fieldName?: string;
208
+ /** Filter value found from query */
209
+ fieldValue?: string;
210
+ /** Role of the token or phrase from query */
211
+ role?: "dimension" | "measure" | "date";
212
+ /** Matching token or phrase from query */
213
+ text?: string;
214
+ /** Type of token from query */
215
+ type?: "field" | "filter" | "master_dimension" | "master_measure" | "custom_analysis";
216
+ };
217
+ type QlikApp = {
218
+ id?: string;
219
+ name?: string;
220
+ };
221
+ type QueryCreate = {
222
+ app?: QlikApp;
223
+ /** Flag that clears the entity context. */
224
+ clearEntityContext?: boolean;
225
+ /** Flag that specifies either to enable converastion context. */
226
+ disableConversationContext?: boolean;
227
+ /** The flag specifies whether to disable follow-up recommendations. */
228
+ disableFollowups?: boolean;
229
+ /** Flag that specifies whether the narratives should be generated for the user query or not. */
230
+ disableNarrative?: boolean;
231
+ /** Flag that specifies whether visualization object should be provided or not. */
232
+ enableVisualizations?: boolean;
233
+ /** The language to assume when parsing, specified as an ISO-639-1 code.
234
+ * Defaults to 'en' (English). */
235
+ lang?: string;
236
+ /** property that contains the Id of the recommendation for which the response should be generated. */
237
+ recommendationId?: string;
238
+ /** The sentence that will be parsed. */
239
+ text: string;
240
+ /** Specify visualizationTypes for only which visualization object should be provided if enableVisualizations is set to true. For eg. ['linechart', 'barchart'] */
241
+ visualizationTypes?: string[];
242
+ };
243
+ /**
244
+ * The attributes of sentences.
245
+ */
246
+ type QueryCreated = {
247
+ apps?: QlikApp[];
248
+ /** A list of conversational responses. */
249
+ conversationalResponse?: QueryResponse[];
250
+ nluInfo?: NluInfo;
251
+ };
252
+ type QueryNotCreated = {
253
+ apps?: QlikApp[];
254
+ conversationalResponse?: QueryResponse;
255
+ errors?: Error[];
256
+ nluInfo?: NluInfo;
257
+ };
258
+ type QueryResponse = {
259
+ apps?: QlikApp[];
260
+ /** For contextual responses, this string contains a list of entities that are used to produce the response. */
261
+ contextInfo?: string;
262
+ /** The URL with the query injected to insight advisor of the app to which the query belongs. */
263
+ drillDownURI?: string;
264
+ responses?: ConversationalResponsePart[];
265
+ sentenceWithMatches?: string;
266
+ };
267
+ /**
268
+ * Any feedback from the user about a given recommendation
269
+ */
270
+ type RecFeedback = {
271
+ analysisType?: string;
272
+ chartType?: string;
273
+ comment?: string;
274
+ recommendationAddedToHub: boolean;
275
+ recommendationAddedToSheet: boolean;
276
+ recommendationDisliked: boolean;
277
+ recommendationLiked: boolean;
278
+ };
279
+ type RenderVisualization = {
280
+ /** Data object should be used to render visualization */
281
+ data?: unknown;
282
+ language?: string;
283
+ };
284
+ /**
285
+ * Returns the generated response for parsed chat queries, if no app was specified nor present in conversation context, suggests matching apps.
286
+ *
287
+ * @param body an object with the body content
288
+ * @throws AskQuestionsHttpError
289
+ */
290
+ declare function askQuestions(body: QueryCreate, options?: ApiCallOptions): Promise<AskQuestionsHttpResponse>;
291
+ type AskQuestionsHttpResponse = AskQuestions200HttpResponse | AskQuestions201HttpResponse;
292
+ type AskQuestions200HttpResponse = {
293
+ data: QueryNotCreated;
294
+ headers: Headers;
295
+ status: 200;
296
+ };
297
+ type AskQuestions201HttpResponse = {
298
+ data: QueryCreated;
299
+ headers: Headers;
300
+ status: 201;
301
+ };
302
+ type AskQuestionsHttpError = {
303
+ data: Errors;
304
+ headers: Headers;
305
+ status: number;
306
+ };
307
+ /**
308
+ * Returns NL metrics based on provided app IDs the user has access to.
309
+ *
310
+ * @param query an object with query parameters
311
+ * @param body an object with the body content
312
+ * @throws FilterQuestionsHttpError
313
+ */
314
+ declare function filterQuestions(query: {
315
+ /** The preferred number of entries returned */
316
+ limit?: number;
317
+ /** A cursor pointing to the page of data to retrieve. */
318
+ page?: string;
319
+ /** A single field from the data model on which to sort the response. The '+' or '-' operator may be used to specify ascending or desending order. */
320
+ sort?: "createdAt" | "updatedAt" | "+createdAt" | "+updatedAt" | "-createdAt" | "-updatedAt";
321
+ }, body: NLMetricsRequest, options?: ApiCallOptions): Promise<FilterQuestionsHttpResponse>;
322
+ type FilterQuestionsHttpResponse = {
323
+ data: NLMetricsResponse;
324
+ headers: Headers;
325
+ status: 200;
326
+ prev?: (options?: ApiCallOptions) => Promise<FilterQuestionsHttpResponse>;
327
+ next?: (options?: ApiCallOptions) => Promise<FilterQuestionsHttpResponse>;
328
+ };
329
+ type FilterQuestionsHttpError = {
330
+ data: Errors;
331
+ headers: Headers;
332
+ status: 400 | 401 | 422 | 500;
333
+ };
334
+ /**
335
+ * Clears the cache for questions api requests.
336
+ */
337
+ declare function clearCache(): void;
338
+ interface QuestionsAPI {
339
+ /**
340
+ * Returns the generated response for parsed chat queries, if no app was specified nor present in conversation context, suggests matching apps.
341
+ *
342
+ * @param body an object with the body content
343
+ * @throws AskQuestionsHttpError
344
+ */
345
+ askQuestions: typeof askQuestions;
346
+ /**
347
+ * Returns NL metrics based on provided app IDs the user has access to.
348
+ *
349
+ * @param query an object with query parameters
350
+ * @param body an object with the body content
351
+ * @throws FilterQuestionsHttpError
352
+ */
353
+ filterQuestions: typeof filterQuestions;
354
+ /**
355
+ * Clears the cache for questions api requests.
356
+ */
357
+ clearCache: typeof clearCache;
358
+ }
359
+ /**
360
+ * Functions for the questions api
361
+ */
362
+ declare const questionsExport: QuestionsAPI;
363
+
364
+ export { type Analysis, type AnalysisGroup, type AppMetadata, type AskQuestions200HttpResponse, type AskQuestions201HttpResponse, type AskQuestionsHttpError, type AskQuestionsHttpResponse, type ChartType, type ConversationalResponsePart, type Error, type Errors, type FilterQuestionsHttpError, type FilterQuestionsHttpResponse, type Href, type Links, type NLMetricRecommendation, type NLMetricRecord, type NLMetricsRequest, type NLMetricsResponse, type NLResponses, type NarrativeResponse, type NluInfo, type NluInfoElements, type PartialNluInfo, type QlikApp, type QueryCreate, type QueryCreated, type QueryNotCreated, type QueryResponse, type QuestionsAPI, type RecFeedback, type RenderVisualization, askQuestions, clearCache, questionsExport as default, filterQuestions };
package/questions.js ADDED
@@ -0,0 +1,38 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/questions.ts
9
+ async function askQuestions(body, options) {
10
+ return invokeFetch("questions", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/questions/actions/ask",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function filterQuestions(query, body, options) {
19
+ return invokeFetch("questions", {
20
+ method: "post",
21
+ pathTemplate: "/api/v1/questions/actions/filter",
22
+ query,
23
+ body,
24
+ contentType: "application/json",
25
+ options
26
+ });
27
+ }
28
+ function clearCache() {
29
+ return clearApiCache("questions");
30
+ }
31
+ var questionsExport = { askQuestions, filterQuestions, clearCache };
32
+ var questions_default = questionsExport;
33
+ export {
34
+ askQuestions,
35
+ clearCache,
36
+ questions_default as default,
37
+ filterQuestions
38
+ };