@looker/sdk 21.10.2 → 21.18.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 (42) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/README.md +19 -5
  3. package/lib/3.1/funcs.d.ts +2 -2
  4. package/lib/3.1/funcs.js.map +1 -1
  5. package/lib/3.1/methods.d.ts +2 -2
  6. package/lib/3.1/methods.js.map +1 -1
  7. package/lib/3.1/methodsInterface.d.ts +4 -4
  8. package/lib/3.1/models.d.ts +8 -1
  9. package/lib/3.1/models.js.map +1 -1
  10. package/lib/3.1/streams.d.ts +3 -3
  11. package/lib/3.1/streams.js.map +1 -1
  12. package/lib/4.0/funcs.d.ts +18 -7
  13. package/lib/4.0/funcs.js +1334 -1166
  14. package/lib/4.0/funcs.js.map +1 -1
  15. package/lib/4.0/methods.d.ts +18 -7
  16. package/lib/4.0/methods.js +898 -774
  17. package/lib/4.0/methods.js.map +1 -1
  18. package/lib/4.0/methodsInterface.d.ts +20 -9
  19. package/lib/4.0/models.d.ts +176 -10
  20. package/lib/4.0/models.js +30 -1
  21. package/lib/4.0/models.js.map +1 -1
  22. package/lib/4.0/streams.d.ts +19 -8
  23. package/lib/4.0/streams.js +898 -774
  24. package/lib/4.0/streams.js.map +1 -1
  25. package/lib/constants.d.ts +1 -1
  26. package/lib/constants.js +1 -1
  27. package/lib/constants.js.map +1 -1
  28. package/lib/esm/3.1/funcs.js.map +1 -1
  29. package/lib/esm/3.1/methods.js.map +1 -1
  30. package/lib/esm/3.1/models.js.map +1 -1
  31. package/lib/esm/3.1/streams.js.map +1 -1
  32. package/lib/esm/4.0/funcs.js +1295 -1160
  33. package/lib/esm/4.0/funcs.js.map +1 -1
  34. package/lib/esm/4.0/methods.js +898 -774
  35. package/lib/esm/4.0/methods.js.map +1 -1
  36. package/lib/esm/4.0/models.js +26 -0
  37. package/lib/esm/4.0/models.js.map +1 -1
  38. package/lib/esm/4.0/streams.js +898 -774
  39. package/lib/esm/4.0/streams.js.map +1 -1
  40. package/lib/esm/constants.js +1 -1
  41. package/lib/esm/constants.js.map +1 -1
  42. package/package.json +3 -3
@@ -1,6 +1,13 @@
1
- import type { DelimArray, IDictionary, ITransportSettings, SDKResponse } from '@looker/sdk-rtl';
2
- import type { IAccessToken, IApiSession, IApiVersion, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, ICommand, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateEmbedUserRequest, ICreateFolder, ICreateOAuthApplicationUserStateRequest, ICreateOAuthApplicationUserStateResponse, ICredentialsApi3, ICredentialsEmail, ICredentialsEmbed, ICredentialsGoogle, ICredentialsLDAP, ICredentialsLookerOpenid, ICredentialsOIDC, ICredentialsSaml, ICredentialsTotp, ICustomWelcomeEmail, IDashboard, IDashboardAggregateTableLookml, IDashboardBase, IDashboardElement, IDashboardFilter, IDashboardLayout, IDashboardLayoutComponent, IDashboardLookml, IDataActionForm, IDataActionRequest, IDataActionResponse, IDatagroup, IDBConnection, IDBConnectionTestResult, IDependencyGraph, IDialectInfo, IDigestEmails, IDigestEmailSend, IEmbedParams, IEmbedSsoParams, IEmbedUrlResponse, IError, IExternalOauthApplication, IFolder, IGitBranch, IGitConnectionTest, IGitConnectionTestResult, IGroup, IGroupHierarchy, IGroupIdForGroupInclusion, IGroupIdForGroupUserInclusion, IGroupSearch, IHomepageSection, IIntegration, IIntegrationHub, IIntegrationTestResult, IInternalHelpResources, IInternalHelpResourcesContent, ILDAPConfig, ILDAPConfigTestResult, ILegacyFeature, ILocale, ILook, ILookmlModel, ILookmlModelExplore, ILookmlTest, ILookmlTestResult, ILookWithQuery, IManifest, IMergeQuery, IMobileSettings, IModel, IModelFieldSuggestions, IModelSet, IOauthClientApp, IOIDCConfig, IPasswordConfig, IPermission, IPermissionSet, IProject, IProjectFile, IProjectValidation, IProjectValidationCache, IProjectWorkspace, IQuery, IQueryTask, IRenderTask, IRepositoryCredential, IRequestActiveThemes, IRequestAllBoardItems, IRequestAllBoardSections, IRequestAllExternalOauthApplications, IRequestAllGroups, IRequestAllGroupUsers, IRequestAllIntegrations, IRequestAllRoles, IRequestAllScheduledPlans, IRequestAllUsers, IRequestConnectionColumns, IRequestConnectionSchemas, IRequestConnectionSearchColumns, IRequestConnectionTables, IRequestContentThumbnail, IRequestCreateDashboardRenderTask, IRequestCreateQueryTask, IRequestCreateUserCredentialsEmailPasswordReset, IRequestDeployRefToProduction, IRequestFolderChildren, IRequestFolderChildrenSearch, IRequestGetAllCommands, IRequestGraphDerivedTablesForModel, IRequestLogin, IRequestModelFieldnameSuggestions, IRequestRoleUsers, IRequestRunGitConnectionTest, IRequestRunInlineQuery, IRequestRunLook, IRequestRunLookmlTest, IRequestRunQuery, IRequestScheduledPlansForDashboard, IRequestScheduledPlansForLook, IRequestScheduledPlansForLookmlDashboard, IRequestSearchBoards, IRequestSearchContentFavorites, IRequestSearchContentViews, IRequestSearchDashboardElements, IRequestSearchDashboards, IRequestSearchFolders, IRequestSearchGroups, IRequestSearchLooks, IRequestSearchModelSets, IRequestSearchRoles, IRequestSearchThemes, IRequestSearchUserLoginLockouts, IRequestSearchUsers, IRequestSearchUsersNames, IRequestTagRef, IRequestUserAttributeUserValues, IRequestUserRoles, IRole, IRoleSearch, IRunningQueries, ISamlConfig, ISamlMetadataParseResult, IScheduledPlan, ISchema, ISchemaColumns, ISchemaTables, ISession, ISessionConfig, ISqlQuery, ISqlQueryCreate, ISshPublicKey, ISshServer, ISshTunnel, ITheme, ITimezone, IUpdateCommand, IUpdateFolder, IUser, IUserAttribute, IUserAttributeGroupValue, IUserAttributeWithValue, IUserLoginLockout, IUserPublic, IValidationError, IWelcomeEmailTest, IWhitelabelConfiguration, IWorkspace, IWriteApiSession, IWriteBackupConfiguration, IWriteBoard, IWriteBoardItem, IWriteBoardSection, IWriteColorCollection, IWriteCommand, IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, IWriteCredentialsEmail, IWriteCustomWelcomeEmail, IWriteDashboard, IWriteDashboardElement, IWriteDashboardFilter, IWriteDashboardLayout, IWriteDashboardLayoutComponent, IWriteDatagroup, IWriteDBConnection, IWriteExternalOauthApplication, IWriteGitBranch, IWriteGroup, IWriteIntegration, IWriteIntegrationHub, IWriteInternalHelpResources, IWriteInternalHelpResourcesContent, IWriteLDAPConfig, IWriteLegacyFeature, IWriteLookmlModel, IWriteLookWithQuery, IWriteMergeQuery, IWriteModelSet, IWriteOauthClientApp, IWriteOIDCConfig, IWritePasswordConfig, IWritePermissionSet, IWriteProject, IWriteQuery, IWriteRepositoryCredential, IWriteRole, IWriteSamlConfig, IWriteScheduledPlan, IWriteSessionConfig, IWriteSshServer, IWriteSshTunnel, IWriteTheme, IWriteUser, IWriteUserAttribute, IWriteUserAttributeWithValue, IWriteWhitelabelConfiguration } from './models';
3
- export interface ILooker40SDK {
1
+ import type { DelimArray, IDictionary, IAPIMethods, ITransportSettings, SDKResponse } from '@looker/sdk-rtl';
2
+ import type { IAccessToken, IAlert, IAlertPatch, IApiSession, IApiVersion, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, ICommand, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateEmbedUserRequest, ICreateFolder, ICreateOAuthApplicationUserStateRequest, ICreateOAuthApplicationUserStateResponse, ICredentialsApi3, ICredentialsEmail, ICredentialsEmailSearch, ICredentialsEmbed, ICredentialsGoogle, ICredentialsLDAP, ICredentialsLookerOpenid, ICredentialsOIDC, ICredentialsSaml, ICredentialsTotp, ICustomWelcomeEmail, IDashboard, IDashboardAggregateTableLookml, IDashboardBase, IDashboardElement, IDashboardFilter, IDashboardLayout, IDashboardLayoutComponent, IDashboardLookml, IDataActionForm, IDataActionRequest, IDataActionResponse, IDatagroup, IDBConnection, IDBConnectionTestResult, IDependencyGraph, IDialectInfo, IDigestEmails, IDigestEmailSend, IEmbedParams, IEmbedSsoParams, IEmbedUrlResponse, IError, IExternalOauthApplication, IFolder, IGitBranch, IGitConnectionTest, IGitConnectionTestResult, IGroup, IGroupHierarchy, IGroupIdForGroupInclusion, IGroupIdForGroupUserInclusion, IGroupSearch, IHomepageSection, IIntegration, IIntegrationHub, IIntegrationTestResult, IInternalHelpResources, IInternalHelpResourcesContent, ILDAPConfig, ILDAPConfigTestResult, ILegacyFeature, ILocale, ILook, ILookmlModel, ILookmlModelExplore, ILookmlTest, ILookmlTestResult, ILookWithQuery, IManifest, IMergeQuery, IMobileSettings, IModel, IModelFieldSuggestions, IModelSet, IOauthClientApp, IOIDCConfig, IPasswordConfig, IPermission, IPermissionSet, IProject, IProjectFile, IProjectValidation, IProjectValidationCache, IProjectWorkspace, IQuery, IQueryTask, IRenderTask, IRepositoryCredential, IRequestActiveThemes, IRequestAllBoardItems, IRequestAllBoardSections, IRequestAllExternalOauthApplications, IRequestAllGroups, IRequestAllGroupUsers, IRequestAllIntegrations, IRequestAllLookmlModels, IRequestAllRoles, IRequestAllScheduledPlans, IRequestAllUsers, IRequestConnectionColumns, IRequestConnectionSchemas, IRequestConnectionSearchColumns, IRequestConnectionTables, IRequestContentThumbnail, IRequestCreateDashboardRenderTask, IRequestCreateQueryTask, IRequestCreateUserCredentialsEmailPasswordReset, IRequestDeployRefToProduction, IRequestFolderChildren, IRequestFolderChildrenSearch, IRequestGetAllCommands, IRequestGraphDerivedTablesForModel, IRequestLogin, IRequestModelFieldnameSuggestions, IRequestRoleUsers, IRequestRunGitConnectionTest, IRequestRunInlineQuery, IRequestRunLook, IRequestRunLookmlTest, IRequestRunQuery, IRequestScheduledPlansForDashboard, IRequestScheduledPlansForLook, IRequestScheduledPlansForLookmlDashboard, IRequestSearchAlerts, IRequestSearchBoards, IRequestSearchContentFavorites, IRequestSearchContentViews, IRequestSearchCredentialsEmail, IRequestSearchDashboardElements, IRequestSearchDashboards, IRequestSearchFolders, IRequestSearchGroups, IRequestSearchLooks, IRequestSearchModelSets, IRequestSearchRoles, IRequestSearchThemes, IRequestSearchUserLoginLockouts, IRequestSearchUsers, IRequestSearchUsersNames, IRequestTagRef, IRequestUserAttributeUserValues, IRequestUserRoles, IRole, IRoleSearch, IRunningQueries, ISamlConfig, ISamlMetadataParseResult, IScheduledPlan, ISchema, ISchemaColumns, ISchemaTables, ISession, ISessionConfig, ISetting, ISqlQuery, ISqlQueryCreate, ISshPublicKey, ISshServer, ISshTunnel, ITheme, ITimezone, IUpdateCommand, IUpdateFolder, IUser, IUserAttribute, IUserAttributeGroupValue, IUserAttributeWithValue, IUserEmailOnly, IUserLoginLockout, IUserPublic, IValidationError, IWelcomeEmailTest, IWhitelabelConfiguration, IWorkspace, IWriteAlert, IWriteApiSession, IWriteBackupConfiguration, IWriteBoard, IWriteBoardItem, IWriteBoardSection, IWriteColorCollection, IWriteCommand, IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, IWriteDashboardFilter, IWriteDashboardLayout, IWriteDashboardLayoutComponent, IWriteDatagroup, IWriteDBConnection, IWriteExternalOauthApplication, IWriteGitBranch, IWriteGroup, IWriteIntegration, IWriteIntegrationHub, IWriteInternalHelpResources, IWriteInternalHelpResourcesContent, IWriteLDAPConfig, IWriteLegacyFeature, IWriteLookmlModel, IWriteLookWithQuery, IWriteMergeQuery, IWriteModelSet, IWriteOauthClientApp, IWriteOIDCConfig, IWritePasswordConfig, IWritePermissionSet, IWriteProject, IWriteQuery, IWriteRepositoryCredential, IWriteRole, IWriteSamlConfig, IWriteScheduledPlan, IWriteSessionConfig, IWriteSetting, IWriteSshServer, IWriteSshTunnel, IWriteTheme, IWriteUser, IWriteUserAttribute, IWriteUserAttributeWithValue, IWriteWhitelabelConfiguration } from './models';
3
+ export interface ILooker40SDK extends IAPIMethods {
4
+ search_alerts(request: IRequestSearchAlerts, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert[], IError>>;
5
+ get_alert(alert_id: number, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError>>;
6
+ update_alert(alert_id: number, body: Partial<IWriteAlert>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError | IValidationError>>;
7
+ update_alert_field(alert_id: number, body: Partial<IAlertPatch>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError | IValidationError>>;
8
+ delete_alert(alert_id: number, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
9
+ create_alert(body: Partial<IWriteAlert>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError | IValidationError>>;
10
+ enqueue_alert(alert_id: number, force?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
4
11
  login(request: IRequestLogin, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAccessToken, IError>>;
5
12
  login_user(user_id: number, associative?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAccessToken, IError>>;
6
13
  logout(options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
@@ -33,8 +40,8 @@ export interface ILooker40SDK {
33
40
  saml_test_config(test_slug: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlConfig, IError>>;
34
41
  delete_saml_test_config(test_slug: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
35
42
  create_saml_test_config(body: Partial<IWriteSamlConfig>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlConfig, IError | IValidationError>>;
36
- parse_saml_idp_metadata(body: Partial<string>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
37
- fetch_and_parse_saml_idp_metadata(body: Partial<string>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
43
+ parse_saml_idp_metadata(body: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
44
+ fetch_and_parse_saml_idp_metadata(body: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
38
45
  session_config(options?: Partial<ITransportSettings>): Promise<SDKResponse<ISessionConfig, IError>>;
39
46
  update_session_config(body: Partial<IWriteSessionConfig>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISessionConfig, IError | IValidationError>>;
40
47
  all_user_login_lockouts(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserLoginLockout[], IError>>;
@@ -72,7 +79,7 @@ export interface ILooker40SDK {
72
79
  cloud_storage_configuration(options?: Partial<ITransportSettings>): Promise<SDKResponse<IBackupConfiguration, IError>>;
73
80
  update_cloud_storage_configuration(body: Partial<IWriteBackupConfiguration>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IBackupConfiguration, IError | IValidationError>>;
74
81
  custom_welcome_email(options?: Partial<ITransportSettings>): Promise<SDKResponse<ICustomWelcomeEmail, IError>>;
75
- update_custom_welcome_email(body: Partial<IWriteCustomWelcomeEmail>, send_test_welcome_email?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<ICustomWelcomeEmail, IError | IValidationError>>;
82
+ update_custom_welcome_email(body: Partial<ICustomWelcomeEmail>, send_test_welcome_email?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<ICustomWelcomeEmail, IError | IValidationError>>;
76
83
  update_custom_welcome_email_test(body: Partial<IWelcomeEmailTest>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IWelcomeEmailTest, IError | IValidationError>>;
77
84
  digest_emails_enabled(options?: Partial<ITransportSettings>): Promise<SDKResponse<IDigestEmails, IError>>;
78
85
  update_digest_emails_enabled(body: Partial<IDigestEmails>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDigestEmails, IError | IValidationError>>;
@@ -86,9 +93,11 @@ export interface ILooker40SDK {
86
93
  update_legacy_feature(legacy_feature_id: string, body: Partial<IWriteLegacyFeature>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILegacyFeature, IError | IValidationError>>;
87
94
  all_locales(options?: Partial<ITransportSettings>): Promise<SDKResponse<ILocale[], IError>>;
88
95
  mobile_settings(options?: Partial<ITransportSettings>): Promise<SDKResponse<IMobileSettings, IError>>;
96
+ get_setting(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISetting, IError | IValidationError>>;
97
+ set_setting(body: Partial<IWriteSetting>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISetting, IError | IValidationError>>;
89
98
  all_timezones(options?: Partial<ITransportSettings>): Promise<SDKResponse<ITimezone[], IError>>;
90
99
  versions(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IApiVersion, IError>>;
91
- api_spec(api_version: string, specification: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
100
+ api_spec(api_version: string, specification: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<any, IError>>;
92
101
  whitelabel_configuration(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IWhitelabelConfiguration, IError>>;
93
102
  update_whitelabel_configuration(body: Partial<IWriteWhitelabelConfiguration>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IWhitelabelConfiguration, IError | IValidationError>>;
94
103
  all_connections(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDBConnection[], IError>>;
@@ -141,8 +150,8 @@ export interface ILooker40SDK {
141
150
  delete_dashboard(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
142
151
  dashboard_aggregate_table_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardAggregateTableLookml, IError>>;
143
152
  dashboard_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardLookml, IError>>;
144
- copy_dashboard(dashboard_id: string, folder_id?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
145
153
  move_dashboard(dashboard_id: string, folder_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
154
+ copy_dashboard(dashboard_id: string, folder_id?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
146
155
  search_dashboard_elements(request: IRequestSearchDashboardElements, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement[], IError>>;
147
156
  dashboard_element(dashboard_element_id: string, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement, IError>>;
148
157
  update_dashboard_element(dashboard_element_id: string, body: Partial<IWriteDashboardElement>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement, IError | IValidationError>>;
@@ -217,7 +226,7 @@ export interface ILooker40SDK {
217
226
  copy_look(look_id: number, folder_id?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookWithQuery, IError | IValidationError>>;
218
227
  move_look(look_id: number, folder_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookWithQuery, IError | IValidationError>>;
219
228
  graph_derived_tables_for_model(request: IRequestGraphDerivedTablesForModel, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDependencyGraph, IError>>;
220
- all_lookml_models(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookmlModel[], IError>>;
229
+ all_lookml_models(request: IRequestAllLookmlModels, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookmlModel[], IError>>;
221
230
  create_lookml_model(body: Partial<IWriteLookmlModel>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookmlModel, IError | IValidationError>>;
222
231
  lookml_model(lookml_model_name: string, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookmlModel, IError>>;
223
232
  update_lookml_model(lookml_model_name: string, body: Partial<IWriteLookmlModel>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILookmlModel, IError | IValidationError>>;
@@ -333,6 +342,7 @@ export interface ILooker40SDK {
333
342
  theme(theme_id: number, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ITheme, IError>>;
334
343
  update_theme(theme_id: number, body: Partial<IWriteTheme>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ITheme, IError | IValidationError>>;
335
344
  delete_theme(theme_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
345
+ search_credentials_email(request: IRequestSearchCredentialsEmail, options?: Partial<ITransportSettings>): Promise<SDKResponse<ICredentialsEmailSearch[], IError>>;
336
346
  me(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUser, IError>>;
337
347
  all_users(request: IRequestAllUsers, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUser[], IError>>;
338
348
  create_user(body?: Partial<IWriteUser>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUser, IError | IValidationError>>;
@@ -376,6 +386,7 @@ export interface ILooker40SDK {
376
386
  set_user_attribute_user_value(user_id: number, user_attribute_id: number, body: Partial<IWriteUserAttributeWithValue>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserAttributeWithValue, IError | IValidationError>>;
377
387
  delete_user_attribute_user_value(user_id: number, user_attribute_id: number, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
378
388
  send_user_credentials_email_password_reset(user_id: number, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<ICredentialsEmail, IError>>;
389
+ wipeout_user_emails(user_id: number, body: Partial<IUserEmailOnly>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUser, IError | IValidationError>>;
379
390
  create_embed_user(body: Partial<ICreateEmbedUserRequest>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserPublic, IError>>;
380
391
  all_user_attributes(request: IRequestAllBoardSections, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserAttribute[], IError>>;
381
392
  create_user_attribute(body: Partial<IWriteUserAttribute>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserAttribute, IError | IValidationError>>;
@@ -5,6 +5,64 @@ export interface IAccessToken {
5
5
  expires_in?: number;
6
6
  refresh_token?: string;
7
7
  }
8
+ export interface IAlert {
9
+ applied_dashboard_filters?: IAlertAppliedDashboardFilter[];
10
+ comparison_type: ComparisonType;
11
+ cron: string;
12
+ custom_title?: string;
13
+ dashboard_element_id?: number;
14
+ description?: string;
15
+ destinations: IAlertDestination[];
16
+ field: IAlertField;
17
+ followed?: boolean;
18
+ followable?: boolean;
19
+ id?: number;
20
+ is_disabled?: boolean;
21
+ disabled_reason?: string;
22
+ is_public?: boolean;
23
+ investigative_content_type?: InvestigativeContentType;
24
+ investigative_content_id?: string;
25
+ investigative_content_title?: string;
26
+ lookml_dashboard_id?: string;
27
+ lookml_link_id?: string;
28
+ owner_id: number;
29
+ owner_display_name?: string;
30
+ threshold: number;
31
+ time_series_condition_state?: IAlertConditionState;
32
+ }
33
+ export interface IAlertAppliedDashboardFilter {
34
+ filter_title: string;
35
+ field_name: string;
36
+ filter_value: string;
37
+ filter_description?: string;
38
+ }
39
+ export interface IAlertConditionState {
40
+ previous_time_series_id?: string;
41
+ latest_time_series_id?: string;
42
+ }
43
+ export interface IAlertDestination {
44
+ destination_type: DestinationType;
45
+ email_address?: string;
46
+ action_hub_integration_id?: string;
47
+ action_hub_form_params_json?: string;
48
+ }
49
+ export interface IAlertField {
50
+ title: string;
51
+ name: string;
52
+ filter?: IAlertFieldFilter[];
53
+ }
54
+ export interface IAlertFieldFilter {
55
+ field_name: string;
56
+ field_value: any;
57
+ filter_value?: string;
58
+ }
59
+ export interface IAlertPatch {
60
+ owner_id?: number;
61
+ is_disabled?: boolean;
62
+ disabled_reason?: string;
63
+ is_public?: boolean;
64
+ threshold?: number;
65
+ }
8
66
  export declare enum Align {
9
67
  left = "left",
10
68
  right = "right"
@@ -19,6 +77,7 @@ export interface IApiVersion {
19
77
  current_version?: IApiVersionElement;
20
78
  supported_versions?: IApiVersionElement[];
21
79
  api_server_url?: string;
80
+ web_server_url?: string;
22
81
  }
23
82
  export interface IApiVersionElement {
24
83
  version?: string;
@@ -55,11 +114,15 @@ export interface IBoardItem {
55
114
  content_favorite_id?: number;
56
115
  content_metadata_id?: number;
57
116
  content_updated_at?: string;
117
+ custom_description?: string;
118
+ custom_title?: string;
119
+ custom_url?: string;
58
120
  dashboard_id?: number;
59
121
  description?: string;
60
122
  favorite_count?: number;
61
123
  board_section_id?: number;
62
124
  id?: number;
125
+ image_url?: string;
63
126
  location?: string;
64
127
  look_id?: number;
65
128
  lookml_dashboard_id?: string;
@@ -112,6 +175,16 @@ export interface ICommand {
112
175
  linked_content_id?: string;
113
176
  linked_content_type?: LinkedContentType;
114
177
  }
178
+ export declare enum ComparisonType {
179
+ EQUAL_TO = "EQUAL_TO",
180
+ GREATER_THAN = "GREATER_THAN",
181
+ GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
182
+ LESS_THAN = "LESS_THAN",
183
+ LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
184
+ INCREASES_BY = "INCREASES_BY",
185
+ DECREASES_BY = "DECREASES_BY",
186
+ CHANGES_BY = "CHANGES_BY"
187
+ }
115
188
  export interface IConnectionFeatures {
116
189
  dialect_name?: string;
117
190
  cost_estimate?: boolean;
@@ -353,6 +426,18 @@ export interface ICredentialsEmail {
353
426
  url?: string;
354
427
  user_url?: string;
355
428
  }
429
+ export interface ICredentialsEmailSearch {
430
+ can?: IDictionary<boolean>;
431
+ created_at?: string;
432
+ email?: string;
433
+ forced_password_reset_at_next_login?: boolean;
434
+ is_disabled?: boolean;
435
+ logged_in_at?: string;
436
+ password_reset_url?: string;
437
+ type?: string;
438
+ url?: string;
439
+ user_url?: string;
440
+ }
356
441
  export interface ICredentialsEmbed {
357
442
  can?: IDictionary<boolean>;
358
443
  created_at?: string;
@@ -426,7 +511,6 @@ export interface ICredentialsTotp {
426
511
  url?: string;
427
512
  }
428
513
  export interface ICustomWelcomeEmail {
429
- can?: IDictionary<boolean>;
430
514
  enabled?: boolean;
431
515
  content?: string;
432
516
  subject?: string;
@@ -461,8 +545,13 @@ export interface IDashboard {
461
545
  deleter_id?: number;
462
546
  edit_uri?: string;
463
547
  favorite_count?: number;
548
+ filters_bar_collapsed?: boolean;
464
549
  last_accessed_at?: Date;
465
550
  last_viewed_at?: Date;
551
+ updated_at?: Date;
552
+ last_updater_id?: number;
553
+ last_updater_name?: string;
554
+ user_name?: string;
466
555
  load_configuration?: string;
467
556
  lookml_link_id?: string;
468
557
  show_filters_bar?: boolean;
@@ -638,7 +727,7 @@ export interface IDBConnection {
638
727
  snippets?: ISnippet[];
639
728
  pdts_enabled?: boolean;
640
729
  host?: string;
641
- port?: number;
730
+ port?: string;
642
731
  username?: string;
643
732
  password?: string;
644
733
  uses_oauth?: boolean;
@@ -673,6 +762,7 @@ export interface IDBConnection {
673
762
  pdt_concurrency?: number;
674
763
  disable_context_comment?: boolean;
675
764
  oauth_application_id?: number;
765
+ always_retry_failed_builds?: boolean;
676
766
  }
677
767
  export interface IDBConnectionBase {
678
768
  can?: IDictionary<boolean>;
@@ -717,6 +807,10 @@ export declare enum DependencyStatus {
717
807
  lock_error = "lock_error",
718
808
  install_none = "install_none"
719
809
  }
810
+ export declare enum DestinationType {
811
+ EMAIL = "EMAIL",
812
+ ACTION_HUB = "ACTION_HUB"
813
+ }
720
814
  export interface IDialect {
721
815
  name?: string;
722
816
  label?: string;
@@ -1040,6 +1134,9 @@ export interface IInternalHelpResourcesContent {
1040
1134
  organization_name?: string;
1041
1135
  markdown_content?: string;
1042
1136
  }
1137
+ export declare enum InvestigativeContentType {
1138
+ dashboard = "dashboard"
1139
+ }
1043
1140
  export interface ILDAPConfig {
1044
1141
  can?: IDictionary<boolean>;
1045
1142
  alternate_email_login_allowed?: boolean;
@@ -1796,6 +1893,7 @@ export interface IRenderTask {
1796
1893
  look_id?: number;
1797
1894
  lookml_dashboard_id?: string;
1798
1895
  query_id?: number;
1896
+ dashboard_element_id?: string;
1799
1897
  query_runtime?: number;
1800
1898
  render_runtime?: number;
1801
1899
  result_format?: string;
@@ -1853,6 +1951,11 @@ export interface IRequestAllIntegrations {
1853
1951
  fields?: string;
1854
1952
  integration_hub_id?: string;
1855
1953
  }
1954
+ export interface IRequestAllLookmlModels {
1955
+ fields?: string;
1956
+ limit?: number;
1957
+ offset?: number;
1958
+ }
1856
1959
  export interface IRequestAllRoles {
1857
1960
  fields?: string;
1858
1961
  ids?: DelimArray<number>;
@@ -1866,6 +1969,8 @@ export interface IRequestAllUsers {
1866
1969
  fields?: string;
1867
1970
  page?: number;
1868
1971
  per_page?: number;
1972
+ limit?: number;
1973
+ offset?: number;
1869
1974
  sorts?: string;
1870
1975
  ids?: DelimArray<number>;
1871
1976
  }
@@ -2058,6 +2163,18 @@ export interface IRequestScheduledPlansForLookmlDashboard {
2058
2163
  fields?: string;
2059
2164
  all_users?: boolean;
2060
2165
  }
2166
+ export interface IRequestSearchAlerts {
2167
+ limit?: number;
2168
+ offset?: number;
2169
+ group_by?: string;
2170
+ fields?: string;
2171
+ disabled?: boolean;
2172
+ frequency?: string;
2173
+ condition_met?: boolean;
2174
+ last_run_start?: string;
2175
+ last_run_end?: string;
2176
+ all_owners?: boolean;
2177
+ }
2061
2178
  export interface IRequestSearchBoards {
2062
2179
  title?: string;
2063
2180
  created_at?: string;
@@ -2101,6 +2218,16 @@ export interface IRequestSearchContentViews {
2101
2218
  sorts?: string;
2102
2219
  filter_or?: boolean;
2103
2220
  }
2221
+ export interface IRequestSearchCredentialsEmail {
2222
+ fields?: string;
2223
+ limit?: number;
2224
+ offset?: number;
2225
+ sorts?: string;
2226
+ id?: number;
2227
+ email?: string;
2228
+ emails?: string;
2229
+ filter_or?: boolean;
2230
+ }
2104
2231
  export interface IRequestSearchDashboardElements {
2105
2232
  dashboard_id?: number;
2106
2233
  look_id?: number;
@@ -2224,6 +2351,8 @@ export interface IRequestSearchUsers {
2224
2351
  fields?: string;
2225
2352
  page?: number;
2226
2353
  per_page?: number;
2354
+ limit?: number;
2355
+ offset?: number;
2227
2356
  sorts?: string;
2228
2357
  id?: string;
2229
2358
  first_name?: string;
@@ -2241,6 +2370,8 @@ export interface IRequestSearchUsersNames {
2241
2370
  fields?: string;
2242
2371
  page?: number;
2243
2372
  per_page?: number;
2373
+ limit?: number;
2374
+ offset?: number;
2244
2375
  sorts?: string;
2245
2376
  id?: number;
2246
2377
  first_name?: string;
@@ -2525,6 +2656,13 @@ export interface ISessionConfig {
2525
2656
  use_inactivity_based_logout?: boolean;
2526
2657
  track_session_location?: boolean;
2527
2658
  }
2659
+ export interface ISetting {
2660
+ extension_framework_enabled?: boolean;
2661
+ marketplace_auto_install_enabled?: boolean;
2662
+ marketplace_enabled?: boolean;
2663
+ whitelabel_configuration?: IWhitelabelConfiguration;
2664
+ custom_welcome_email?: ICustomWelcomeEmail;
2665
+ }
2528
2666
  export interface ISnippet {
2529
2667
  name?: string;
2530
2668
  label?: string;
@@ -2736,6 +2874,9 @@ export interface IUserAttributeWithValue {
2736
2874
  source?: string;
2737
2875
  hidden_value_domain_whitelist?: string;
2738
2876
  }
2877
+ export interface IUserEmailOnly {
2878
+ email: string;
2879
+ }
2739
2880
  export interface IUserLoginLockout {
2740
2881
  can?: IDictionary<boolean>;
2741
2882
  key?: string;
@@ -2783,7 +2924,6 @@ export interface IWelcomeEmailTest {
2783
2924
  header?: string;
2784
2925
  }
2785
2926
  export interface IWhitelabelConfiguration {
2786
- can?: IDictionary<boolean>;
2787
2927
  id?: number;
2788
2928
  logo_file?: string;
2789
2929
  logo_url?: string;
@@ -2806,6 +2946,26 @@ export interface IWorkspace {
2806
2946
  id?: string;
2807
2947
  projects?: IProject[];
2808
2948
  }
2949
+ export interface IWriteAlert {
2950
+ applied_dashboard_filters?: IAlertAppliedDashboardFilter[];
2951
+ comparison_type: ComparisonType;
2952
+ cron: string;
2953
+ custom_title?: string;
2954
+ dashboard_element_id?: number;
2955
+ description?: string;
2956
+ destinations: IAlertDestination[];
2957
+ field: IAlertField;
2958
+ is_disabled?: boolean;
2959
+ disabled_reason?: string;
2960
+ is_public?: boolean;
2961
+ investigative_content_type?: InvestigativeContentType;
2962
+ investigative_content_id?: string;
2963
+ lookml_dashboard_id?: string;
2964
+ lookml_link_id?: string;
2965
+ owner_id: number;
2966
+ threshold: number;
2967
+ time_series_condition_state?: IAlertConditionState;
2968
+ }
2809
2969
  export interface IWriteApiSession {
2810
2970
  workspace_id?: string;
2811
2971
  }
@@ -2823,6 +2983,9 @@ export interface IWriteBoard {
2823
2983
  title?: string;
2824
2984
  }
2825
2985
  export interface IWriteBoardItem {
2986
+ custom_description?: string;
2987
+ custom_title?: string;
2988
+ custom_url?: string;
2826
2989
  dashboard_id?: number;
2827
2990
  board_section_id?: number;
2828
2991
  look_id?: number;
@@ -2884,12 +3047,6 @@ export interface IWriteCredentialsEmail {
2884
3047
  email?: string;
2885
3048
  forced_password_reset_at_next_login?: boolean;
2886
3049
  }
2887
- export interface IWriteCustomWelcomeEmail {
2888
- enabled?: boolean;
2889
- content?: string;
2890
- subject?: string;
2891
- header?: string;
2892
- }
2893
3050
  export interface IWriteDashboard {
2894
3051
  description?: string;
2895
3052
  hidden?: boolean;
@@ -2903,6 +3060,7 @@ export interface IWriteDashboard {
2903
3060
  background_color?: string;
2904
3061
  crossfilter_enabled?: boolean;
2905
3062
  deleted?: boolean;
3063
+ filters_bar_collapsed?: boolean;
2906
3064
  load_configuration?: string;
2907
3065
  lookml_link_id?: string;
2908
3066
  show_filters_bar?: boolean;
@@ -2973,7 +3131,7 @@ export interface IWriteDatagroup {
2973
3131
  export interface IWriteDBConnection {
2974
3132
  name?: string;
2975
3133
  host?: string;
2976
- port?: number;
3134
+ port?: string;
2977
3135
  username?: string;
2978
3136
  password?: string;
2979
3137
  certificate?: string;
@@ -3001,6 +3159,7 @@ export interface IWriteDBConnection {
3001
3159
  pdt_concurrency?: number;
3002
3160
  disable_context_comment?: boolean;
3003
3161
  oauth_application_id?: number;
3162
+ always_retry_failed_builds?: boolean;
3004
3163
  }
3005
3164
  export interface IWriteDBConnectionOverride {
3006
3165
  context?: string;
@@ -3282,6 +3441,13 @@ export interface IWriteSessionConfig {
3282
3441
  use_inactivity_based_logout?: boolean;
3283
3442
  track_session_location?: boolean;
3284
3443
  }
3444
+ export interface IWriteSetting {
3445
+ extension_framework_enabled?: boolean;
3446
+ marketplace_auto_install_enabled?: boolean;
3447
+ marketplace_enabled?: boolean;
3448
+ whitelabel_configuration?: IWriteWhitelabelConfiguration;
3449
+ custom_welcome_email?: ICustomWelcomeEmail;
3450
+ }
3285
3451
  export interface IWriteSshServer {
3286
3452
  ssh_server_name?: string;
3287
3453
  ssh_server_host?: string;
package/lib/4.0/models.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.WeekStartDay = exports.UserAttributeFilterTypes = exports.SupportedVisualizationFormattings = exports.SupportedFormattings = exports.SupportedFormats = exports.SupportedDownloadSettings = exports.SupportedActionTypes = exports.ResultFormat = exports.PullRequestMode = exports.PermissionType = exports.Name = exports.LinkedContentType = exports.Format = exports.FillStyle = exports.DependencyStatus = exports.Category = exports.Align = void 0;
6
+ exports.WeekStartDay = exports.UserAttributeFilterTypes = exports.SupportedVisualizationFormattings = exports.SupportedFormattings = exports.SupportedFormats = exports.SupportedDownloadSettings = exports.SupportedActionTypes = exports.ResultFormat = exports.PullRequestMode = exports.PermissionType = exports.Name = exports.LinkedContentType = exports.InvestigativeContentType = exports.Format = exports.FillStyle = exports.DestinationType = exports.DependencyStatus = exports.ComparisonType = exports.Category = exports.Align = void 0;
7
7
  var Align;
8
8
  exports.Align = Align;
9
9
 
@@ -22,6 +22,20 @@ exports.Category = Category;
22
22
  Category["dimension"] = "dimension";
23
23
  })(Category || (exports.Category = Category = {}));
24
24
 
25
+ var ComparisonType;
26
+ exports.ComparisonType = ComparisonType;
27
+
28
+ (function (ComparisonType) {
29
+ ComparisonType["EQUAL_TO"] = "EQUAL_TO";
30
+ ComparisonType["GREATER_THAN"] = "GREATER_THAN";
31
+ ComparisonType["GREATER_THAN_OR_EQUAL_TO"] = "GREATER_THAN_OR_EQUAL_TO";
32
+ ComparisonType["LESS_THAN"] = "LESS_THAN";
33
+ ComparisonType["LESS_THAN_OR_EQUAL_TO"] = "LESS_THAN_OR_EQUAL_TO";
34
+ ComparisonType["INCREASES_BY"] = "INCREASES_BY";
35
+ ComparisonType["DECREASES_BY"] = "DECREASES_BY";
36
+ ComparisonType["CHANGES_BY"] = "CHANGES_BY";
37
+ })(ComparisonType || (exports.ComparisonType = ComparisonType = {}));
38
+
25
39
  var DependencyStatus;
26
40
  exports.DependencyStatus = DependencyStatus;
27
41
 
@@ -32,6 +46,14 @@ exports.DependencyStatus = DependencyStatus;
32
46
  DependencyStatus["install_none"] = "install_none";
33
47
  })(DependencyStatus || (exports.DependencyStatus = DependencyStatus = {}));
34
48
 
49
+ var DestinationType;
50
+ exports.DestinationType = DestinationType;
51
+
52
+ (function (DestinationType) {
53
+ DestinationType["EMAIL"] = "EMAIL";
54
+ DestinationType["ACTION_HUB"] = "ACTION_HUB";
55
+ })(DestinationType || (exports.DestinationType = DestinationType = {}));
56
+
35
57
  var FillStyle;
36
58
  exports.FillStyle = FillStyle;
37
59
 
@@ -48,6 +70,13 @@ exports.Format = Format;
48
70
  Format["vector_tile_region"] = "vector_tile_region";
49
71
  })(Format || (exports.Format = Format = {}));
50
72
 
73
+ var InvestigativeContentType;
74
+ exports.InvestigativeContentType = InvestigativeContentType;
75
+
76
+ (function (InvestigativeContentType) {
77
+ InvestigativeContentType["dashboard"] = "dashboard";
78
+ })(InvestigativeContentType || (exports.InvestigativeContentType = InvestigativeContentType = {}));
79
+
51
80
  var LinkedContentType;
52
81
  exports.LinkedContentType = LinkedContentType;
53
82