@looker/sdk 22.20.0 → 23.0.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 (60) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/lib/3.1/funcs.js +4 -1075
  4. package/lib/3.1/funcs.js.map +1 -1
  5. package/lib/3.1/methods.js +3 -720
  6. package/lib/3.1/methods.js.map +1 -1
  7. package/lib/3.1/methodsInterface.js +1 -1
  8. package/lib/3.1/methodsInterface.js.map +1 -1
  9. package/lib/3.1/models.d.ts +30 -0
  10. package/lib/3.1/models.js +0 -33
  11. package/lib/3.1/models.js.map +1 -1
  12. package/lib/3.1/streams.js +3 -720
  13. package/lib/3.1/streams.js.map +1 -1
  14. package/lib/4.0/funcs.js +5 -1298
  15. package/lib/4.0/funcs.js.map +1 -1
  16. package/lib/4.0/methods.js +3 -868
  17. package/lib/4.0/methods.js.map +1 -1
  18. package/lib/4.0/methodsInterface.js +1 -1
  19. package/lib/4.0/methodsInterface.js.map +1 -1
  20. package/lib/4.0/models.d.ts +49 -0
  21. package/lib/4.0/models.js +0 -43
  22. package/lib/4.0/models.js.map +1 -1
  23. package/lib/4.0/streams.js +3 -868
  24. package/lib/4.0/streams.js.map +1 -1
  25. package/lib/browserSdk.js +0 -9
  26. package/lib/browserSdk.js.map +1 -1
  27. package/lib/constants.d.ts +1 -1
  28. package/lib/constants.js +2 -2
  29. package/lib/constants.js.map +1 -1
  30. package/lib/esm/3.1/funcs.js +862 -854
  31. package/lib/esm/3.1/funcs.js.map +1 -1
  32. package/lib/esm/3.1/methods.js +152 -858
  33. package/lib/esm/3.1/methods.js.map +1 -1
  34. package/lib/esm/3.1/methodsInterface.js.map +1 -1
  35. package/lib/esm/3.1/models.js +57 -67
  36. package/lib/esm/3.1/models.js.map +1 -1
  37. package/lib/esm/3.1/streams.js +152 -858
  38. package/lib/esm/3.1/streams.js.map +1 -1
  39. package/lib/esm/4.0/funcs.js +1173 -1164
  40. package/lib/esm/4.0/funcs.js.map +1 -1
  41. package/lib/esm/4.0/methods.js +314 -1168
  42. package/lib/esm/4.0/methods.js.map +1 -1
  43. package/lib/esm/4.0/methodsInterface.js.map +1 -1
  44. package/lib/esm/4.0/models.js +72 -87
  45. package/lib/esm/4.0/models.js.map +1 -1
  46. package/lib/esm/4.0/streams.js +314 -1168
  47. package/lib/esm/4.0/streams.js.map +1 -1
  48. package/lib/esm/browserSdk.js +20 -14
  49. package/lib/esm/browserSdk.js.map +1 -1
  50. package/lib/esm/constants.js +10 -2
  51. package/lib/esm/constants.js.map +1 -1
  52. package/lib/esm/extensionSdk.js +12 -6
  53. package/lib/esm/extensionSdk.js.map +1 -1
  54. package/lib/esm/index.js +141 -17
  55. package/lib/esm/index.js.map +1 -1
  56. package/lib/extensionSdk.js +0 -4
  57. package/lib/extensionSdk.js.map +1 -1
  58. package/lib/index.js +20 -38
  59. package/lib/index.js.map +1 -1
  60. package/package.json +3 -3
@@ -9,6 +9,10 @@ export interface IAlert {
9
9
  applied_dashboard_filters?: IAlertAppliedDashboardFilter[] | null;
10
10
  comparison_type: ComparisonType;
11
11
  cron: string;
12
+ custom_url_base?: string | null;
13
+ custom_url_params?: string | null;
14
+ custom_url_label?: string | null;
15
+ show_custom_url?: boolean;
12
16
  custom_title?: string | null;
13
17
  dashboard_element_id?: string | null;
14
18
  description?: string | null;
@@ -276,6 +280,10 @@ export interface IContentValidationAlert {
276
280
  id?: string;
277
281
  lookml_dashboard_id?: string | null;
278
282
  lookml_link_id?: string | null;
283
+ custom_url_base?: string | null;
284
+ custom_url_params?: string | null;
285
+ custom_url_label?: string | null;
286
+ show_custom_url?: boolean;
279
287
  custom_title?: string | null;
280
288
  }
281
289
  export interface IContentValidationDashboard {
@@ -301,6 +309,7 @@ export interface IContentValidationDashboardElement {
301
309
  title_text?: string | null;
302
310
  type?: string | null;
303
311
  rich_content_json?: string | null;
312
+ extension_id?: string | null;
304
313
  }
305
314
  export interface IContentValidationDashboardFilter {
306
315
  id?: string;
@@ -458,9 +467,11 @@ export interface ICredentialsEmail {
458
467
  created_at?: string | null;
459
468
  email?: string | null;
460
469
  forced_password_reset_at_next_login?: boolean;
470
+ user_id?: string | null;
461
471
  is_disabled?: boolean;
462
472
  logged_in_at?: string | null;
463
473
  password_reset_url?: string | null;
474
+ account_setup_url?: string | null;
464
475
  type?: string | null;
465
476
  url?: string | null;
466
477
  user_url?: string | null;
@@ -470,9 +481,11 @@ export interface ICredentialsEmailSearch {
470
481
  created_at?: string | null;
471
482
  email?: string | null;
472
483
  forced_password_reset_at_next_login?: boolean;
484
+ user_id?: string | null;
473
485
  is_disabled?: boolean;
474
486
  logged_in_at?: string | null;
475
487
  password_reset_url?: string | null;
488
+ account_setup_url?: string | null;
476
489
  type?: string | null;
477
490
  url?: string | null;
478
491
  user_url?: string | null;
@@ -890,14 +903,25 @@ export interface IDialectInfo {
890
903
  }
891
904
  export interface IDialectInfoOptions {
892
905
  additional_params?: boolean;
906
+ after_connect_statements?: boolean;
907
+ analytical_view_dataset?: boolean;
893
908
  auth?: boolean;
909
+ cost_estimate?: boolean;
910
+ disable_context_comment?: boolean;
894
911
  host?: boolean;
912
+ instance_name?: boolean;
913
+ max_billing_gigabytes?: boolean;
895
914
  oauth_credentials?: boolean;
915
+ pdts_for_oauth?: boolean;
916
+ port?: boolean;
896
917
  project_name?: boolean;
897
918
  schema?: boolean;
919
+ service_account_credentials?: boolean;
898
920
  ssl?: boolean;
899
921
  timezone?: boolean;
900
922
  tmp_table?: boolean;
923
+ tns?: boolean;
924
+ username?: boolean;
901
925
  username_required?: boolean;
902
926
  }
903
927
  export interface IDigestEmails {
@@ -2807,6 +2831,10 @@ export interface IScheduledPlan {
2807
2831
  scheduled_plan_destination?: IScheduledPlanDestination[] | null;
2808
2832
  run_once?: boolean;
2809
2833
  include_links?: boolean;
2834
+ custom_url_base?: string | null;
2835
+ custom_url_params?: string | null;
2836
+ custom_url_label?: string | null;
2837
+ show_custom_url?: boolean;
2810
2838
  pdf_paper_size?: string | null;
2811
2839
  pdf_landscape?: boolean;
2812
2840
  embed?: boolean;
@@ -2910,6 +2938,9 @@ export interface ISetting {
2910
2938
  timezone?: string;
2911
2939
  allow_user_timezones?: boolean;
2912
2940
  data_connector_default_enabled?: boolean;
2941
+ host_url?: string;
2942
+ override_warnings?: boolean;
2943
+ email_domain_allowlist?: string[];
2913
2944
  }
2914
2945
  export interface ISmtpNodeStatus {
2915
2946
  is_valid?: boolean;
@@ -2924,6 +2955,7 @@ export interface ISmtpSettings {
2924
2955
  port?: number;
2925
2956
  enable_starttls_auto?: boolean;
2926
2957
  ssl_version?: SslVersion | null;
2958
+ default_smtp?: boolean | null;
2927
2959
  }
2928
2960
  export interface ISmtpStatus {
2929
2961
  is_valid?: boolean;
@@ -3062,6 +3094,7 @@ export interface IThemeSettings {
3062
3094
  show_title?: boolean;
3063
3095
  text_tile_text_color?: string;
3064
3096
  tile_background_color?: string;
3097
+ text_tile_background_color?: string;
3065
3098
  tile_text_color?: string;
3066
3099
  title_color?: string;
3067
3100
  warn_button_color?: string;
@@ -3069,6 +3102,9 @@ export interface IThemeSettings {
3069
3102
  tile_shadow?: boolean;
3070
3103
  show_last_updated_indicator?: boolean;
3071
3104
  show_reload_data_icon?: boolean;
3105
+ show_dashboard_menu?: boolean;
3106
+ show_filters_toggle?: boolean;
3107
+ show_dashboard_header?: boolean;
3072
3108
  }
3073
3109
  export interface ITimezone {
3074
3110
  value?: string | null;
@@ -3246,6 +3282,10 @@ export interface IWriteAlert {
3246
3282
  applied_dashboard_filters?: IAlertAppliedDashboardFilter[] | null;
3247
3283
  comparison_type: ComparisonType | null;
3248
3284
  cron: string;
3285
+ custom_url_base?: string | null;
3286
+ custom_url_params?: string | null;
3287
+ custom_url_label?: string | null;
3288
+ show_custom_url?: boolean;
3249
3289
  custom_title?: string | null;
3250
3290
  dashboard_element_id?: string | null;
3251
3291
  description?: string | null;
@@ -3392,6 +3432,7 @@ export interface IWriteDashboardElement {
3392
3432
  title_text?: string | null;
3393
3433
  type?: string | null;
3394
3434
  rich_content_json?: string | null;
3435
+ extension_id?: string | null;
3395
3436
  }
3396
3437
  export interface IWriteDashboardFilter {
3397
3438
  name?: string | null;
@@ -3755,6 +3796,10 @@ export interface IWriteScheduledPlan {
3755
3796
  scheduled_plan_destination?: IScheduledPlanDestination[] | null;
3756
3797
  run_once?: boolean;
3757
3798
  include_links?: boolean;
3799
+ custom_url_base?: string | null;
3800
+ custom_url_params?: string | null;
3801
+ custom_url_label?: string | null;
3802
+ show_custom_url?: boolean;
3758
3803
  pdf_paper_size?: string | null;
3759
3804
  pdf_landscape?: boolean;
3760
3805
  embed?: boolean;
@@ -3780,6 +3825,9 @@ export interface IWriteSetting {
3780
3825
  timezone?: string;
3781
3826
  allow_user_timezones?: boolean;
3782
3827
  data_connector_default_enabled?: boolean;
3828
+ host_url?: string;
3829
+ override_warnings?: boolean;
3830
+ email_domain_allowlist?: string[] | null;
3783
3831
  }
3784
3832
  export interface IWriteSshServer {
3785
3833
  ssh_server_name?: string;
@@ -3789,6 +3837,7 @@ export interface IWriteSshServer {
3789
3837
  }
3790
3838
  export interface IWriteSshTunnel {
3791
3839
  ssh_server_id?: string;
3840
+ local_host_port?: number;
3792
3841
  database_host?: string;
3793
3842
  database_port?: number;
3794
3843
  }
package/lib/4.0/models.js CHANGED
@@ -6,25 +6,20 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.WeekStartDay = exports.UserAttributeFilterTypes = exports.SupportedVisualizationFormattings = exports.SupportedFormattings = exports.SupportedFormats = exports.SupportedDownloadSettings = exports.SupportedActionTypes = exports.SslVersion = exports.SecretType = exports.ResultFormat = exports.PullRequestMode = exports.PermissionType = exports.Name = exports.InvestigativeContentType = exports.Format = exports.FillStyle = exports.DeviceType = exports.DestinationType = exports.DependencyStatus = exports.ComparisonType = exports.Category = exports.Align = void 0;
7
7
  var Align;
8
8
  exports.Align = Align;
9
-
10
9
  (function (Align) {
11
10
  Align["left"] = "left";
12
11
  Align["right"] = "right";
13
12
  })(Align || (exports.Align = Align = {}));
14
-
15
13
  var Category;
16
14
  exports.Category = Category;
17
-
18
15
  (function (Category) {
19
16
  Category["parameter"] = "parameter";
20
17
  Category["filter"] = "filter";
21
18
  Category["measure"] = "measure";
22
19
  Category["dimension"] = "dimension";
23
20
  })(Category || (exports.Category = Category = {}));
24
-
25
21
  var ComparisonType;
26
22
  exports.ComparisonType = ComparisonType;
27
-
28
23
  (function (ComparisonType) {
29
24
  ComparisonType["EQUAL_TO"] = "EQUAL_TO";
30
25
  ComparisonType["GREATER_THAN"] = "GREATER_THAN";
@@ -35,59 +30,45 @@ exports.ComparisonType = ComparisonType;
35
30
  ComparisonType["DECREASES_BY"] = "DECREASES_BY";
36
31
  ComparisonType["CHANGES_BY"] = "CHANGES_BY";
37
32
  })(ComparisonType || (exports.ComparisonType = ComparisonType = {}));
38
-
39
33
  var DependencyStatus;
40
34
  exports.DependencyStatus = DependencyStatus;
41
-
42
35
  (function (DependencyStatus) {
43
36
  DependencyStatus["lock_optional"] = "lock_optional";
44
37
  DependencyStatus["lock_required"] = "lock_required";
45
38
  DependencyStatus["lock_error"] = "lock_error";
46
39
  DependencyStatus["install_none"] = "install_none";
47
40
  })(DependencyStatus || (exports.DependencyStatus = DependencyStatus = {}));
48
-
49
41
  var DestinationType;
50
42
  exports.DestinationType = DestinationType;
51
-
52
43
  (function (DestinationType) {
53
44
  DestinationType["EMAIL"] = "EMAIL";
54
45
  DestinationType["ACTION_HUB"] = "ACTION_HUB";
55
46
  })(DestinationType || (exports.DestinationType = DestinationType = {}));
56
-
57
47
  var DeviceType;
58
48
  exports.DeviceType = DeviceType;
59
-
60
49
  (function (DeviceType) {
61
50
  DeviceType["android"] = "android";
62
51
  DeviceType["ios"] = "ios";
63
52
  })(DeviceType || (exports.DeviceType = DeviceType = {}));
64
-
65
53
  var FillStyle;
66
54
  exports.FillStyle = FillStyle;
67
-
68
55
  (function (FillStyle) {
69
56
  FillStyle["enumeration"] = "enumeration";
70
57
  FillStyle["range"] = "range";
71
58
  })(FillStyle || (exports.FillStyle = FillStyle = {}));
72
-
73
59
  var Format;
74
60
  exports.Format = Format;
75
-
76
61
  (function (Format) {
77
62
  Format["topojson"] = "topojson";
78
63
  Format["vector_tile_region"] = "vector_tile_region";
79
64
  })(Format || (exports.Format = Format = {}));
80
-
81
65
  var InvestigativeContentType;
82
66
  exports.InvestigativeContentType = InvestigativeContentType;
83
-
84
67
  (function (InvestigativeContentType) {
85
68
  InvestigativeContentType["dashboard"] = "dashboard";
86
69
  })(InvestigativeContentType || (exports.InvestigativeContentType = InvestigativeContentType = {}));
87
-
88
70
  var Name;
89
71
  exports.Name = Name;
90
-
91
72
  (function (Name) {
92
73
  Name["day"] = "day";
93
74
  Name["hour"] = "hour";
@@ -100,28 +81,22 @@ exports.Name = Name;
100
81
  Name["quarter"] = "quarter";
101
82
  Name["year"] = "year";
102
83
  })(Name || (exports.Name = Name = {}));
103
-
104
84
  var PermissionType;
105
85
  exports.PermissionType = PermissionType;
106
-
107
86
  (function (PermissionType) {
108
87
  PermissionType["view"] = "view";
109
88
  PermissionType["edit"] = "edit";
110
89
  })(PermissionType || (exports.PermissionType = PermissionType = {}));
111
-
112
90
  var PullRequestMode;
113
91
  exports.PullRequestMode = PullRequestMode;
114
-
115
92
  (function (PullRequestMode) {
116
93
  PullRequestMode["off"] = "off";
117
94
  PullRequestMode["links"] = "links";
118
95
  PullRequestMode["recommended"] = "recommended";
119
96
  PullRequestMode["required"] = "required";
120
97
  })(PullRequestMode || (exports.PullRequestMode = PullRequestMode = {}));
121
-
122
98
  var ResultFormat;
123
99
  exports.ResultFormat = ResultFormat;
124
-
125
100
  (function (ResultFormat) {
126
101
  ResultFormat["inline_json"] = "inline_json";
127
102
  ResultFormat["json"] = "json";
@@ -134,45 +109,35 @@ exports.ResultFormat = ResultFormat;
134
109
  ResultFormat["xlsx"] = "xlsx";
135
110
  ResultFormat["gsxml"] = "gsxml";
136
111
  })(ResultFormat || (exports.ResultFormat = ResultFormat = {}));
137
-
138
112
  var SecretType;
139
113
  exports.SecretType = SecretType;
140
-
141
114
  (function (SecretType) {
142
115
  SecretType["SSO"] = "SSO";
143
116
  SecretType["JWT"] = "JWT";
144
117
  })(SecretType || (exports.SecretType = SecretType = {}));
145
-
146
118
  var SslVersion;
147
119
  exports.SslVersion = SslVersion;
148
-
149
120
  (function (SslVersion) {
150
121
  SslVersion["TLSv1_1"] = "TLSv1_1";
151
122
  SslVersion["SSLv23"] = "SSLv23";
152
123
  SslVersion["TLSv1_2"] = "TLSv1_2";
153
124
  })(SslVersion || (exports.SslVersion = SslVersion = {}));
154
-
155
125
  var SupportedActionTypes;
156
126
  exports.SupportedActionTypes = SupportedActionTypes;
157
-
158
127
  (function (SupportedActionTypes) {
159
128
  SupportedActionTypes["cell"] = "cell";
160
129
  SupportedActionTypes["query"] = "query";
161
130
  SupportedActionTypes["dashboard"] = "dashboard";
162
131
  SupportedActionTypes["none"] = "none";
163
132
  })(SupportedActionTypes || (exports.SupportedActionTypes = SupportedActionTypes = {}));
164
-
165
133
  var SupportedDownloadSettings;
166
134
  exports.SupportedDownloadSettings = SupportedDownloadSettings;
167
-
168
135
  (function (SupportedDownloadSettings) {
169
136
  SupportedDownloadSettings["push"] = "push";
170
137
  SupportedDownloadSettings["url"] = "url";
171
138
  })(SupportedDownloadSettings || (exports.SupportedDownloadSettings = SupportedDownloadSettings = {}));
172
-
173
139
  var SupportedFormats;
174
140
  exports.SupportedFormats = SupportedFormats;
175
-
176
141
  (function (SupportedFormats) {
177
142
  SupportedFormats["txt"] = "txt";
178
143
  SupportedFormats["csv"] = "csv";
@@ -188,26 +153,20 @@ exports.SupportedFormats = SupportedFormats;
188
153
  SupportedFormats["wysiwyg_png"] = "wysiwyg_png";
189
154
  SupportedFormats["csv_zip"] = "csv_zip";
190
155
  })(SupportedFormats || (exports.SupportedFormats = SupportedFormats = {}));
191
-
192
156
  var SupportedFormattings;
193
157
  exports.SupportedFormattings = SupportedFormattings;
194
-
195
158
  (function (SupportedFormattings) {
196
159
  SupportedFormattings["formatted"] = "formatted";
197
160
  SupportedFormattings["unformatted"] = "unformatted";
198
161
  })(SupportedFormattings || (exports.SupportedFormattings = SupportedFormattings = {}));
199
-
200
162
  var SupportedVisualizationFormattings;
201
163
  exports.SupportedVisualizationFormattings = SupportedVisualizationFormattings;
202
-
203
164
  (function (SupportedVisualizationFormattings) {
204
165
  SupportedVisualizationFormattings["apply"] = "apply";
205
166
  SupportedVisualizationFormattings["noapply"] = "noapply";
206
167
  })(SupportedVisualizationFormattings || (exports.SupportedVisualizationFormattings = SupportedVisualizationFormattings = {}));
207
-
208
168
  var UserAttributeFilterTypes;
209
169
  exports.UserAttributeFilterTypes = UserAttributeFilterTypes;
210
-
211
170
  (function (UserAttributeFilterTypes) {
212
171
  UserAttributeFilterTypes["advanced_filter_string"] = "advanced_filter_string";
213
172
  UserAttributeFilterTypes["advanced_filter_number"] = "advanced_filter_number";
@@ -219,10 +178,8 @@ exports.UserAttributeFilterTypes = UserAttributeFilterTypes;
219
178
  UserAttributeFilterTypes["yesno"] = "yesno";
220
179
  UserAttributeFilterTypes["zipcode"] = "zipcode";
221
180
  })(UserAttributeFilterTypes || (exports.UserAttributeFilterTypes = UserAttributeFilterTypes = {}));
222
-
223
181
  var WeekStartDay;
224
182
  exports.WeekStartDay = WeekStartDay;
225
-
226
183
  (function (WeekStartDay) {
227
184
  WeekStartDay["monday"] = "monday";
228
185
  WeekStartDay["tuesday"] = "tuesday";