-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathqix_generated.go
More file actions
16123 lines (15342 loc) · 568 KB
/
qix_generated.go
File metadata and controls
16123 lines (15342 loc) · 568 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by QIX generator (./schema/generate.go) for Qlik Associative Engine version 12.2636.0 . DO NOT EDIT.
package enigma
import (
"context"
"encoding/json"
)
// Version of the schema used to generate the enigma.go QIX API
const QIX_SCHEMA_VERSION = "12.2636.0"
// Deprecated: This will be removed in a future version
type AlfaNumString struct {
// Calculated value.
String string `json:"qString,omitempty"`
// Is set to true if the value is a numeric.
IsNum bool `json:"qIsNum,omitempty"`
}
type AlternateStateData struct {
// Name of the alternate state.
// Default is current selections: $
StateName string `json:"qStateName,omitempty"`
// List of the selections.
FieldItems []*BookmarkFieldItem `json:"qFieldItems,omitempty"`
}
type AppEntry struct {
// Identifier of the app.
ID string `json:"qID,omitempty"`
// Title of the app.
Title string `json:"qTitle,omitempty"`
// Path of the app.
Path string `json:"qPath,omitempty"`
// Last reload time of the app.
LastReloadTime string `json:"qLastReloadTime,omitempty"`
// Is set to true if the app is read-only.
ReadOnly bool `json:"qReadOnly,omitempty"`
// Meta data.
Meta *NxMeta `json:"qMeta,omitempty"`
// App thumbnail.
Thumbnail *StaticContentUrl `json:"qThumbnail,omitempty"`
FileSize int `json:"qFileSize,omitempty"`
// If true the app has section access configured.
HasSectionAccess bool `json:"qHasSectionAccess,omitempty"`
}
// Lists the app objects. Is the layout for AppObjectListDef.
// An app object is a generic object created at app level.
type AppObjectList struct {
// Information about the list of dimensions.
Items []*NxContainerEntry `json:"qItems,omitempty"`
}
// Defines the list of objects in an app.
// An app object is a generic object created at app level.
type AppObjectListDef struct {
// Type of the app list.
Type string `json:"qType,omitempty"`
// Data that you want to include in the app list definition.
// You need to enter the paths to the information you want to retrieve.
Data json.RawMessage `json:"qData,omitempty"`
}
type AppScript struct {
// Script text.
Script string `json:"qScript,omitempty"`
// Information about publishing and permissions.
// This parameter is optional.
Meta *NxMeta `json:"qMeta,omitempty"`
// True if user is temporarily locked from modifying the script. Meta contains the ID of the last modifier. Only applicable to QCS.
IsLocked bool `json:"qIsLocked,omitempty"`
}
// Stability: experimental
type AppScriptMeta struct {
// Information about publishing and permissions.
// This parameter is optional.
Meta *NxMeta `json:"qMeta,omitempty"`
// True if user is temporarily locked from modifying the script. Meta contains the ID of the last modifier. Only applicable to QCS.
IsLocked bool `json:"qIsLocked,omitempty"`
}
// Stability: experimental
type ApplyGroupStateWarning struct {
// Group state that could not be applied.
State *GroupState `json:"qState,omitempty"`
// Nature of the warning.
//
// One of:
//
// • group_missing or GROUP_MISSING
//
// • group_not_applicable or GROUP_NOT_APPLICABLE
//
// • fielddef_missing or FIELDDEF_MISSING
Type string `json:"qType,omitempty"`
}
// Result of applying GroupState to multiple cyclic groups.
// Stability: experimental
type ApplyGroupStatesResult struct {
// When true, the operation was successful.
ApplySuccess bool `json:"qApplySuccess,omitempty"`
// Lists which states failed to be applied and why.
Warnings []*ApplyGroupStateWarning `json:"qWarnings,omitempty"`
}
type ArrayOfNxValuePoint []*NxPivotValuePoint
type AssociationScore struct {
// Pair of fields.
// _< FieldName1>_ / < FieldName2>
// Where:
// < FieldName1 > is a field in the table 1 (defined in qTable1 )
// < FieldName2 > is a field in the table 2 (defined in qTable2 )
// If the field is a synthetic key, the name of the field is preceded by [Synthetic key]: .
FieldPairName string `json:"qFieldPairName,omitempty"`
// Flag used to interpret calculated scores.
// One of the following values or sum of values that apply:
//
// • 0: The cardinal ratio cannot be zero but the symbol score and the row score can be zero.
//
// • -1: The fields do not have the same type.
//
// • -2: The number of rows of the field FieldName1 is zero.
//
// • -4: The number of distinct values of the field FieldName1 is zero.
//
// • -8: The number of rows of the field FieldName2 is zero.
//
// • -16: The number of distinct values of the field FieldName2 is zero.
//
// Example:
// The number of rows of the field FieldName1 is zero, and the number of distinct values of the field FieldName2 is zero, then qScoreSummary is -18.
ScoreSummary int `json:"qScoreSummary,omitempty"`
// Association information about the field FieldName1 defined in qFieldPairName .
Field1Scores *FieldScores `json:"qField1Scores,omitempty"`
// Association information about the field FieldName2 defined in qFieldPairName .
Field2Scores *FieldScores `json:"qField2Scores,omitempty"`
}
type BNFDef struct {
// Array of token references that all together build up the definition of the current token.
// Generally, if the array is not empty, the definition is a BNF rule (_qIsBnfRule_ is set to true). However, some BNF rules do have an empty array (_qIsBnfRule_ is set to true, but qBnf is empty).
Bnf []int `json:"qBnf,omitempty"`
// Number of the current token definition.
Nbr int `json:"qNbr,omitempty"`
// Number of the parent rule definition.
PNbr int `json:"qPNbr,omitempty"`
// Reference identifier to a function described in the documentation. The identifier is stored in the definition of the token containing the function name.
// Is not used in Qlik Sense.
HelpId int `json:"qHelpId,omitempty"`
// Token name.
// One of:
//
// • A rule name
//
// • An identifier
//
// • A literal value
Name string `json:"qName,omitempty"`
// Literal string of the token.
// Examples: 'Round' and '('.
Str string `json:"qStr,omitempty"`
// If set to true, a list of related rule tokens is assigned to qBnf .
// This parameter is optional. The default value is false.
IsBnfRule bool `json:"qIsBnfRule,omitempty"`
// If set to true, the definition specifies a script statement.
// This parameter is optional. The default value is false.
ScriptStatement bool `json:"qScriptStatement,omitempty"`
// If set to true, the definition specifies a control statement.
// This parameter is optional. The default value is false.
ControlStatement bool `json:"qControlStatement,omitempty"`
// If set to true, the definition specifies a literal token.
// This parameter is optional. The default value is false.
BnfLiteral bool `json:"qBnfLiteral,omitempty"`
// If set to true, the definition is related to a Qlik Sense function. It cannot be an aggregation function.
// This parameter is optional. The default value is false.
QvFunc bool `json:"qQvFunc,omitempty"`
// If set to true, the definition is related to an aggregation function.
// This parameter is optional. The default value is false.
AggrFunc bool `json:"qAggrFunc,omitempty"`
// Group of the function.
//
// One of:
//
// • ALL or FUNC_GROUP_ALL
//
// • U or FUNC_GROUP_UNKNOWN
//
// • NONE or FUNC_GROUP_NONE
//
// • AGGR or FUNC_GROUP_AGGR
//
// • NUM or FUNC_GROUP_NUMERIC
//
// • RNG or FUNC_GROUP_RANGE
//
// • EXP or FUNC_GROUP_EXPONENTIAL_AND_LOGARITHMIC
//
// • TRIG or FUNC_GROUP_TRIGONOMETRIC_AND_HYPERBOLIC
//
// • FIN or FUNC_GROUP_FINANCIAL
//
// • MATH or FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE
//
// • COUNT or FUNC_GROUP_COUNTER
//
// • STR or FUNC_GROUP_STRING
//
// • MAPP or FUNC_GROUP_MAPPING
//
// • RCRD or FUNC_GROUP_INTER_RECORD
//
// • CND or FUNC_GROUP_CONDITIONAL
//
// • LOG or FUNC_GROUP_LOGICAL
//
// • NULL or FUNC_GROUP_NULL
//
// • SYS or FUNC_GROUP_SYSTEM
//
// • FILE or FUNC_GROUP_FILE
//
// • TBL or FUNC_GROUP_TABLE
//
// • DATE or FUNC_GROUP_DATE_AND_TIME
//
// • NUMI or FUNC_GROUP_NUMBER_INTERPRET
//
// • FRMT or FUNC_GROUP_FORMATTING
//
// • CLR or FUNC_GROUP_COLOR
//
// • RNK or FUNC_GROUP_RANKING
//
// • GEO or FUNC_GROUP_GEO
//
// • EXT or FUNC_GROUP_EXTERNAL
//
// • PROB or FUNC_GROUP_PROBABILITY
//
// • ARRAY or FUNC_GROUP_ARRAY
//
// • LEG or FUNC_GROUP_LEGACY
//
// • DB or FUNC_GROUP_DB_NATIVE
//
// • WINDOW or FUNC_GROUP_WINDOW
FG string `json:"qFG,omitempty"`
// If set to true, the definition is related to a field.
// This parameter is optional. The default value is false.
FieldFlag bool `json:"qFieldFlag,omitempty"`
// Type of the data.
//
// One of:
//
// • N or NOT_META
//
// • D or META_DOC_NAME
//
// • R or META_RET_TYPE
//
// • V or META_DEFAULT_VALUE
MT string `json:"qMT,omitempty"`
// Indicates whether a script statement, a chart or a script function is deprecated (not recommended for use).
// If set to true, the script statement or the function is not recommended for use in Qlik Sense.
// This parameter is optional. The default value is false.
Depr bool `json:"qDepr,omitempty"`
// List of groups the function belongs to.
FGList []string `json:"qFGList,omitempty"`
}
type Bookmark struct {
Id string `json:"qId,omitempty"`
Name string `json:"qName,omitempty"`
UtcModifyTime Float64 `json:"qUtcModifyTime,omitempty"`
UtcRecallTime Float64 `json:"qUtcRecallTime,omitempty"`
RecallCount int `json:"qRecallCount,omitempty"`
ApplyAdditive bool `json:"qApplyAdditive,omitempty"`
FieldItems []*BookmarkFieldItem `json:"qFieldItems,omitempty"`
VariableItems []*BookmarkVariableItem `json:"qVariableItems,omitempty"`
SheetId string `json:"qSheetId,omitempty"`
Objects []*LayoutBookmarkData `json:"qObjects,omitempty"`
ApplyLayoutState bool `json:"qApplyLayoutState,omitempty"`
ShowPopupInfo bool `json:"qShowPopupInfo,omitempty"`
InfoText string `json:"qInfoText,omitempty"`
Owner string `json:"qOwner,omitempty"`
Groups []*GroupBookmarkData `json:"qGroups,omitempty"`
Show *CondDef `json:"qShow,omitempty"`
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
ApplyInputFieldValues *bool `json:"qApplyInputFieldValues,omitempty"`
InputFieldItems []*InputFieldItem `json:"qInputFieldItems,omitempty"`
ObjectsLayout []*ExtendedLayoutBookmarkData `json:"qObjectsLayout,omitempty"`
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
IncludeSelectionState *bool `json:"qIncludeSelectionState,omitempty"`
IncludeScrollPosition bool `json:"qIncludeScrollPosition,omitempty"`
AlternateStateData []*AlternateStateData `json:"qAlternateStateData,omitempty"`
ForAnnotations bool `json:"qForAnnotations,omitempty"`
IncludeAllVariables bool `json:"qIncludeAllVariables,omitempty"`
}
// Stability: experimental
type BookmarkApplyAndVerifyResult struct {
// Apply successfully or not *
ApplySuccess bool `json:"qApplySuccess,omitempty"`
// Field values verfication result *
Warnings []*BookmarkFieldVerifyWarning `json:"qWarnings,omitempty"`
// Result of applying group states (if any).
GroupStateResult *ApplyGroupStatesResult `json:"qGroupStateResult,omitempty"`
}
type BookmarkFieldItem struct {
// Name and type of the field.
Def *FieldDefEx `json:"qDef,omitempty"`
// Indicates if the field is locked.
// Default is false.
Locked bool `json:"qLocked,omitempty"`
// Information on the selections criteria.
SelectInfo *SelectInfo `json:"qSelectInfo,omitempty"`
Values []*FieldValue `json:"qValues,omitempty"`
// List of excluded values.
// Either the list of selected values or the list of excluded values is displayed.
ExcludedValues []*FieldValue `json:"qExcludedValues,omitempty"`
// If set to true, selections within a list object are made in AND mode; If you have a list object that lists all customers, by selecting Customer 1 and Customer 2 while in and-mode, all records that are associated with Customer 1 and Customer 2 are selected.
// The default value is false; selections within a list object are made in OR mode. If you have a list object that lists all customers, by selecting Customer 1 and Customer 2 while in or-mode, all records that are associated with either Customer 1 or Customer 2 are selected.
// This parameter is not returned if set to false.
AndMode bool `json:"qAndMode,omitempty"`
// If set to true, the field has always one selection (not 0 and not more than 1). If another value is selected, the previous one is unselected.
// The default value is false. This parameter is not returned if set to false.
OneAndOnlyOne bool `json:"qOneAndOnlyOne,omitempty"`
// Count of selected values. Indicates if the Values field is loaded.
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
ValuesCount *int `json:"qValuesCount,omitempty"`
// Count of excluded values. Indicates if the ExcludedValues field is loaded.
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
ExcludedValuesCount *int `json:"qExcludedValuesCount,omitempty"`
}
// Defines the range of the bookmark fields that are returned.
type BookmarkFieldPage struct {
// The start value of the range.
StartIndex int `json:"qStartIndex,omitempty"`
// The end value of the range.
EndIndex int `json:"qEndIndex,omitempty"`
}
type BookmarkFieldPageEx struct {
// The name of the selected state.
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
StateName *string `json:"qStateName,omitempty"`
// The start value of the range.
StartIndex int `json:"qStartIndex,omitempty"`
// The end value of the range.
EndIndex int `json:"qEndIndex,omitempty"`
}
// Stability: experimental
type BookmarkFieldVerifyWarning struct {
// Alternate State *
State string `json:"qState,omitempty"`
// Field Name *
Field string `json:"qField,omitempty"`
// Field/values verfication result *
// Defines result of ApplyAndVerify.
// One of:
//
// • NOT_VERIFIED
//
// • FIELD_VALUE_MATCH_ALL
//
// • FIELD_MISSING
//
// • FIELD_VALUE_MISSING
//
// • STATE_MISSING
VerifyResult string `json:"qVerifyResult,omitempty"`
MissingValues []string `json:"qMissingValues,omitempty"`
}
// Lists the bookmarks. Is the layout for BookmarkListDef.
type BookmarkList struct {
// Information about the list of bookmarks.
Items []*NxContainerEntry `json:"qItems,omitempty"`
}
// Defines the list of bookmarks.
type BookmarkListDef struct {
// Type of the list.
Type string `json:"qType,omitempty"`
// Data
Data json.RawMessage `json:"qData,omitempty"`
// Include the bookmark patches. Patches can be very large and may make the list result unmanageable.
IncludePatches bool `json:"qIncludePatches,omitempty"`
}
type BookmarkStateFieldPages struct {
// Bookmark field pages for different states.
StatePages []*BookmarkFieldPageEx `json:"qStatePages,omitempty"`
}
type BookmarkVariableItem struct {
// Name of the variable.
Name string `json:"qName,omitempty"`
// Value of the variable.
Value *FieldValue `json:"qValue,omitempty"`
// The Reporting mode definition of the variable.
Definition string `json:"qDefinition,omitempty"`
}
type CalendarStrings struct {
// List of short day names.
DayNames []string `json:"qDayNames,omitempty"`
// List of short month names.
MonthNames []string `json:"qMonthNames,omitempty"`
// List of long day names.
LongDayNames []string `json:"qLongDayNames,omitempty"`
// List of long month names.
LongMonthNames []string `json:"qLongMonthNames,omitempty"`
}
type CharRange struct {
// Position of the first search occurrence.
CharPos int `json:"qCharPos,omitempty"`
// Number of occurrences found.
CharCount int `json:"qCharCount,omitempty"`
}
// Lists the children of a generic object. Is the layout for ChildListDef.
// ChildList is used by the GetLayout Method to list the children of a generic object.
type ChildList struct {
// Information about the items in the app object.
Items []*NxContainerEntry `json:"qItems,omitempty"`
}
// Defines the list of children of a generic object.
// What is defined in ChildListDef has an impact on what the GetLayout method returns. See Example for more information.
type ChildListDef struct {
// Data that you want to include in the child list definition.
// You need to enter the paths to the information you want to retrieve.
Data json.RawMessage `json:"qData,omitempty"`
}
type CodePage struct {
// Number of the code page.
Number int `json:"qNumber,omitempty"`
// Name of the code page.
Name string `json:"qName,omitempty"`
// Description of the code page.
Description string `json:"qDescription,omitempty"`
}
type CondDef struct {
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
Always *bool `json:"qAlways,omitempty"`
Expression *ValueExpr `json:"qExpression,omitempty"`
}
type Connection struct {
// Identifier of the connection.
// Is generated by the engine and is unique.
Id string `json:"qId,omitempty"`
// Name of the connection.
// This parameter is mandatory and must be set when creating or modifying a connection.
Name string `json:"qName,omitempty"`
// One of:
//
// • ODBC CONNECT TO [<provider name>]
//
// • OLEDB CONNECT TO [<provider name>]
//
// • CUSTOM CONNECT TO [<provider name>]
//
// • "<local absolute or relative path, UNC path>"
//
// • "<URL>"
//
// Connection string.
// This parameter is mandatory and must be set when creating or modifying a connection.
ConnectionString string `json:"qConnectionString,omitempty"`
// One of:
//
// • ODBC
//
// • OLEDB
//
// • <Name of the custom connection file>
//
// • folder
//
// • internet
//
// Type of the connection.
// This parameter is mandatory and must be set when creating or modifying a connection.
// For ODBC, OLEDB and custom connections, the engine checks that the connection type matches the connection string.
// The type is not case sensitive.
Type string `json:"qType,omitempty"`
// Name of the user who creates the connection.
// This parameter is optional; it is only used for OLEDB, ODBC and CUSTOM connections.
// A call to GetConnection Method does not return the user name.
UserName string `json:"qUserName,omitempty"`
// Password of the user who creates the connection.
// This parameter is optional; it is only used for OLEDB, ODBC and CUSTOM connections.
// A call to GetConnection Method does not return the password.
Password string `json:"qPassword,omitempty"`
// Is generated by the engine.
// Creation date of the connection or last modification date of the connection.
ModifiedDate string `json:"qModifiedDate,omitempty"`
// Information about the connection.
Meta *NxMeta `json:"qMeta,omitempty"`
// Select which user credentials to use to connect to the source.
//
// • LOG_ON_SERVICE_USER: Disables
//
// • LOG_ON_CURRENT_USER: Enables
//
// One of:
//
// • LOG_ON_SERVICE_USER
//
// • LOG_ON_CURRENT_USER
LogOn string `json:"qLogOn,omitempty"`
}
type ContentLibraryList struct {
// Information about the content library.
Items []*ContentLibraryListItem `json:"qItems,omitempty"`
}
type ContentLibraryListItem struct {
// Name of the library.
Name string `json:"qName,omitempty"`
// Is set to true if the library is specific to the app (not a global content library).
AppSpecific bool `json:"qAppSpecific,omitempty"`
// Information about publishing and permissions.
Meta *NxMeta `json:"qMeta,omitempty"`
}
type CustomConnector struct {
// Name of the custom connector file.
Provider string `json:"qProvider,omitempty"`
// Name of the parent folder that contains the custom connector file.
Parent string `json:"qParent,omitempty"`
// Name of the custom connector as displayed in the Qlik interface.
DisplayName string `json:"qDisplayName,omitempty"`
// Mode of the machine (64 or 32 bits).
//
// One of:
//
// • CONNECT_DEFAULT
//
// • CONNECT_64
//
// • CONNECT_32
MachineMode string `json:"qMachineMode,omitempty"`
SupportFileStreaming bool `json:"qSupportFileStreaming,omitempty"`
}
type CyclicGroupPosition struct {
// Target cyclic group.
Info *NxInfo `json:"qInfo,omitempty"`
// Active field of the cyclic group, identified by a zero-based index.
ActiveField int `json:"qActiveField,omitempty"`
}
type DataField struct {
// Name of the field.
Name string `json:"qName,omitempty"`
// Is set to true if the field is a primary key.
IsKey bool `json:"qIsKey,omitempty"`
// Is shown for fixed records.
// _qOriginalFieldName_ and qName are identical if no field names are used in the file.
// _qOriginalFieldName_ differs from qName if embedded file names are used in the file.
OriginalFieldName string `json:"qOriginalFieldName,omitempty"`
}
type DataRecord struct {
// List of values inside the table.
// The first values (in result/qPreview/0/qValues ) correspond to the field names in the table.
// The following values (from result/qPreview/1/qValues ) are the values of the fields in the table.
Values []string `json:"qValues,omitempty"`
}
type DataTable struct {
// Name of the table.
Name string `json:"qName,omitempty"`
// Type of the table.
// For example: Table or View.
Type string `json:"qType,omitempty"`
}
type DataTableEx struct {
// Name of the table.
Name string `json:"qName,omitempty"`
// List of the fields in the table.
Fields []*DataField `json:"qFields,omitempty"`
// List of format specification items, within brackets.
// Examples of specification items:
//
// • file type
//
// • embedded labels, no labels
//
// • table is <table name>
FormatSpec string `json:"qFormatSpec,omitempty"`
}
type Database struct {
// Name of the database.
Name string `json:"qName,omitempty"`
// Is set to true if the database is set by default.
IsDefault bool `json:"qIsDefault,omitempty"`
}
type DatabaseInfo struct {
// Name of the product accessed by the provider.
DBMSName string `json:"qDBMSName,omitempty"`
// If set to true, it means that the data source contains some databases.
DBUsage bool `json:"qDBUsage,omitempty"`
// If set to true, it means that the data source contains some owners.
OwnerUsage bool `json:"qOwnerUsage,omitempty"`
// Character string used after the database name.
// Example with separator " . ":
// FROM LinkedTablesData.dbo.Months
// Where:
//
// • LinkedTablesData is the database name
//
// • dbo is the owner name
//
// • Months is the table name
DBSeparator string `json:"qDBSeparator,omitempty"`
// Character string used after the owner name.
// Example with separator " . ":
// FROM LinkedTablesData.dbo.Months
// Where:
//
// • LinkedTablesData is the database name
//
// • dbo is the owner name
//
// • Months is the table name
OwnerSeparator string `json:"qOwnerSeparator,omitempty"`
// If set to true, it means that the database is displayed first, before the owners and tables.
DBFirst bool `json:"qDBFirst,omitempty"`
// Prefix used with field, database or owner names that contain special characters or keywords.
QuotePreffix string `json:"qQuotePreffix,omitempty"`
// Suffix used with field, database or owner names that contain special characters or keywords.
QuoteSuffix string `json:"qQuoteSuffix,omitempty"`
// List of the special characters.
SpecialChars string `json:"qSpecialChars,omitempty"`
// Name of the default database.
DefaultDatabase string `json:"qDefaultDatabase,omitempty"`
// List of the script keywords.
Keywords []string `json:"qKeywords,omitempty"`
}
type DatabaseOwner struct {
// Name of the owner.
Name string `json:"qName,omitempty"`
}
type DelimiterInfo struct {
// Name of the delimiter.
// Example:
// "Tab_DELIMITER"
Name string `json:"qName,omitempty"`
// Representation of the delimiter value that is used in the script.
// Example:
// "'\t'"
ScriptCode string `json:"qScriptCode,omitempty"`
// Delimiter character number used by the engine to determine how to separate the values.
Number int `json:"qNumber,omitempty"`
// Is set to true if multiple spaces are used to separate the values.
IsMultiple bool `json:"qIsMultiple,omitempty"`
}
type DerivedFieldsInTableData struct {
// Name of the derived definition.
DefinitionName string `json:"qDefinitionName,omitempty"`
// List of tags.
Tags []string `json:"qTags,omitempty"`
// Is set to true is the derived field is in use.
Active bool `json:"qActive,omitempty"`
}
// Lists the dimensions. Is the layout for DimensionListDef.
type DimensionList struct {
// Information about the list of dimensions.
Items []*NxContainerEntry `json:"qItems,omitempty"`
}
// Defines the lists of dimensions.
type DimensionListDef struct {
// Type of the list.
Type string `json:"qType,omitempty"`
// Data
Data json.RawMessage `json:"qData,omitempty"`
}
// The DimensionReference structure points to a GenericDimension.
// Stability: experimental
type DimensionReference struct {
// Identifier of the associated dimension.
Id string `json:"qId,omitempty"`
// Text label.
Label string `json:"qLabel,omitempty"`
}
// Parameters for a reload.
type DoReloadExParams struct {
// 0: for default mode.
// 1: for ABEND; the reload of the script ends if an error occurs.
// 2: for ignore; the reload of the script continues even if an error is detected in the script.
Mode int `json:"qMode,omitempty"`
// Set to true for partial reload.
// The default value is false.
Partial bool `json:"qPartial,omitempty"`
// Set to true to debug reload.
// The default value is false.
Debug bool `json:"qDebug,omitempty"`
// Optional reload ID.
// ID will be automatically generated if not set.
ReloadId string `json:"qReloadId,omitempty"`
// Set to true to skip Store statements.
// The default value is false.
SkipStore bool `json:"qSkipStore,omitempty"`
// If greater than or equal 0, defines max number of rows loaded from a data source.
// When set to nil the default value is used, when set to point at a value that value is used (including golang zero values)
RowLimit *int `json:"qRowLimit,omitempty"`
}
// The result and path to script log for a reload.
type DoReloadExResult struct {
// The reload is successful if True.
Success bool `json:"qSuccess,omitempty"`
// Path to the script log file.
ScriptLogFile string `json:"qScriptLogFile,omitempty"`
// true if memory limits were exhausted during reload.
EndedWithMemoryConstraint bool `json:"qEndedWithMemoryConstraint,omitempty"`
// Number of read rows during a reload
NbrOfLoadedRows int `json:"qNbrOfLoadedRows,omitempty"`
// Number of stored rows from a reload
NbrOfStoredRows int `json:"qNbrOfStoredRows,omitempty"`
// Extra information (if available) in case reload was not successful.
FailureData *FailureData `json:"qFailureData,omitempty"`
}
type DocListEntry struct {
// Name of the app.
DocName string `json:"qDocName,omitempty"`
// Not used.
ConnectedUsers int `json:"qConnectedUsers,omitempty"`
// Last modified time stamp of the app.
// This property is used only with Qlik Sense Desktop.
// It is set to 0 for Qlik Sense Enterprise.
FileTime Float64 `json:"qFileTime,omitempty"`
// Size of remote app.
// This property is used only with Qlik Sense Desktop.
// It is set to 0 for Qlik Sense Enterprise.
FileSize Float64 `json:"qFileSize,omitempty"`
// Identifier of the app.
//
// • In Qlik Sense Desktop, the identifier is the path and name of the app.
//
// • In Qlik Sense Enterprise, the identifier is the app's GUID.
DocId string `json:"qDocId,omitempty"`
// Meta data related to the app.
Meta *NxMeta `json:"qMeta,omitempty"`
// Last reload time of the app.
LastReloadTime string `json:"qLastReloadTime,omitempty"`
// If set to true, the app is read-only.
ReadOnly bool `json:"qReadOnly,omitempty"`
// Title of the app.
Title string `json:"qTitle,omitempty"`
// Thumbnail of the app.
Thumbnail *StaticContentUrl `json:"qThumbnail,omitempty"`
// If true the app has section access configured.
HasSectionAccess bool `json:"qHasSectionAccess,omitempty"`
// Is the app a Direct Query app?
IsDirectQueryMode bool `json:"qIsDirectQueryMode,omitempty"`
// One of:
//
// • ANALYTICS
//
// • DATA_PREPARATION
//
// • DATAFLOW_PREP
//
// • SINGLE_TABLE_PREP
Usage string `json:"qUsage,omitempty"`
}
type DriveInfo struct {
// Value of the drive.
// Examples:
// C:\\\, E:\\\
Drive string `json:"qDrive,omitempty"`
// Type of the drive.
// _Fixed_ means physical drive.
Type string `json:"qType,omitempty"`
// Name of the drive.
Name string `json:"qName,omitempty"`
// Information about the drive type.
//
// One of:
//
// • REMOVABLE
//
// • FIXED
//
// • NETWORK
//
// • CD_ROM
//
// • RAM
//
// • UNKNOWN_TYPE
TypeIdentifier string `json:"qTypeIdentifier,omitempty"`
UnnamedDrive bool `json:"qUnnamedDrive,omitempty"`
}
type EditorBreakpoint struct {
// Name of the breakpoint.
BufferName string `json:"qbufferName,omitempty"`
// Line number in the script where the breakpoint is set.
LineIx int `json:"qlineIx,omitempty"`
// If set to true then the breakpoint is enabled (in use).
Enabled bool `json:"qEnabled,omitempty"`
}
// Renders the embedded snapshot in an object.
// The following is returned:
//
// • Any dynamic properties defined in the bookmark
//
// • Any properties defined in qEmbeddedSnapshot
//
// Properties:
//
// "qEmbeddedSnapshot": {}
type EmbeddedSnapshot struct {
}
// Defines the embedded snapshot in a generic object.
//
// Properties:
//
// "EmbeddedSnapshotDef": {}
type EmbeddedSnapshotDef struct {
}
type ErrorData struct {
// Detailed information about the error message.
ErrorString string `json:"qErrorString,omitempty"`
// Line termination characters.
LineEnd string `json:"qLineEnd,omitempty"`
// Script statement where the error occurs.
Line string `json:"qLine,omitempty"`
// Type of the error messages.
//
// One of:
//
// • EDC_ERROR
//
// • EDC_WARNING
//
// • EDC_CIRCULAR_REFERENCE
ErrorDataCode string `json:"qErrorDataCode,omitempty"`
Message *ProgressMessage `json:"qMessage,omitempty"`
}
type ExpansionData struct {
ExcludeList bool `json:"qExcludeList,omitempty"`
Pos *PositionMark `json:"qPos,omitempty"`
}
type ExtendedLayoutBookmarkData struct {
Id string `json:"qId,omitempty"`
Active bool `json:"qActive,omitempty"`
ShowMode byte `json:"qShowMode,omitempty"`
ScrollPos *ScrollPosition `json:"qScrollPos,omitempty"`
ExpansionInfo []*ExpansionData `json:"qExpansionInfo,omitempty"`
LeftCollapsed bool `json:"qLeftCollapsed,omitempty"`
TopCollapsed bool `json:"qTopCollapsed,omitempty"`
SortData []*InterFieldSortData `json:"qSortData,omitempty"`
DimensionGroupPos []*GroupStateInfo `json:"qDimensionGroupPos,omitempty"`
ExpressionGroupPos []*GroupStateInfo `json:"qExpressionGroupPos,omitempty"`
UseGraphMode bool `json:"qUseGraphMode,omitempty"`
// One of:
//
// • GRAPH_MODE_BAR
//
// • GRAPH_MODE_PIE
//
// • GRAPH_MODE_PIVOTTABLE
//
// • GRAPH_MODE_SCATTER
//
// • GRAPH_MODE_LINE
//
// • GRAPH_MODE_STRAIGHTTABLE
//
// • GRAPH_MODE_COMBO
//
// • GRAPH_MODE_RADAR
//
// • GRAPH_MODE_GAUGE
//
// • GRAPH_MODE_GRID
//
// • GRAPH_MODE_BLOCK
//
// • GRAPH_MODE_FUNNEL
//
// • GRAPH_MODE_MEKKO
//
// • GRAPH_MODE_LAST
GraphMode string `json:"qGraphMode,omitempty"`
ActiveContainerChildObjectId string `json:"qActiveContainerChildObjectId,omitempty"`
ExtendedPivotState *ExtendedPivotStateData `json:"qExtendedPivotState,omitempty"`
}
type ExtendedPivotStateData struct {
ExpressionPosition byte `json:"qExpressionPosition,omitempty"`
NumberOfLeftDimensions byte `json:"qNumberOfLeftDimensions,omitempty"`
DimensionNames []string `json:"qDimensionNames,omitempty"`
EnableConditions []string `json:"qEnableConditions,omitempty"`
}
// Obsolete, use qrs API's to fetch extensions.
type ExtensionList struct {
Items []string `json:"qItems,omitempty"`
}
// Obsolete, use qrs API's to fetch extensions.
type ExtensionListDef struct {
}
type FailureData struct {
// Array of errors accumulated during reload.
Errors []*ReloadError `json:"qErrors,omitempty"`
}
// Sets the formatting of a field.
// The properties of qFieldAttributes and the formatting mechanism are described below.
//
// Formatting mechanism:
//
// The formatting mechanism depends on the type set in qType, as shown below:
// In case of inconsistencies between the type and the format pattern, the format pattern takes precedence over the type.
//
// Type is DATE, TIME, TIMESTAMP or INTERVAL:
//
// The following applies:
//
// • If a format pattern is defined in qFmt , the formatting is as defined in qFmt .
//
// • If qFmt is empty, the formatting is defined by the number interpretation variables included at the top of the script ( TimeFormat , DateFormat , TimeStampFormat ).
//
// • The properties qDec , qThou , qnDec , qUseThou are not used.
//
// Type is INTEGER:
//
// The following applies:
//
// • 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 ).
//
// • 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 .
//
// Type is REAL:
//
// The following applies:
//
// • 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 ).
//
// • 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.
//
// • 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.
//
// • 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.
//
// Type is FIX:
//
// The following applies:
//
// • 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 ).
//
// • 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.
//
// Type is MONEY:
//
// The following applies:
//
// • 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 ).
//
// • 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 ).
//