@looker/sdk 21.10.1 → 21.16.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 +3 -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 +160 -8
  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, 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<IWriteAlert>, 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,56 @@ 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
+ is_public?: boolean;
22
+ investigative_content_type?: InvestigativeContentType;
23
+ investigative_content_id?: string;
24
+ investigative_content_title?: string;
25
+ lookml_dashboard_id?: string;
26
+ lookml_link_id?: string;
27
+ owner_id?: number;
28
+ owner_display_name?: string;
29
+ threshold?: number;
30
+ time_series_condition_state?: IAlertConditionState;
31
+ }
32
+ export interface IAlertAppliedDashboardFilter {
33
+ filter_title?: string;
34
+ field_name?: string;
35
+ filter_value?: string;
36
+ filter_description?: string;
37
+ }
38
+ export interface IAlertConditionState {
39
+ previous_time_series_id?: string;
40
+ latest_time_series_id?: string;
41
+ }
42
+ export interface IAlertDestination {
43
+ destination_type: DestinationType;
44
+ email_address?: string;
45
+ action_hub_integration_id?: string;
46
+ action_hub_form_params_json?: string;
47
+ }
48
+ export interface IAlertField {
49
+ title?: string;
50
+ name?: string;
51
+ filter?: IAlertFieldFilter[];
52
+ }
53
+ export interface IAlertFieldFilter {
54
+ field_name?: string;
55
+ field_value?: any;
56
+ filter_value?: string;
57
+ }
8
58
  export declare enum Align {
9
59
  left = "left",
10
60
  right = "right"
@@ -19,6 +69,7 @@ export interface IApiVersion {
19
69
  current_version?: IApiVersionElement;
20
70
  supported_versions?: IApiVersionElement[];
21
71
  api_server_url?: string;
72
+ web_server_url?: string;
22
73
  }
23
74
  export interface IApiVersionElement {
24
75
  version?: string;
@@ -55,11 +106,15 @@ export interface IBoardItem {
55
106
  content_favorite_id?: number;
56
107
  content_metadata_id?: number;
57
108
  content_updated_at?: string;
109
+ custom_description?: string;
110
+ custom_title?: string;
111
+ custom_url?: string;
58
112
  dashboard_id?: number;
59
113
  description?: string;
60
114
  favorite_count?: number;
61
115
  board_section_id?: number;
62
116
  id?: number;
117
+ image_url?: string;
63
118
  location?: string;
64
119
  look_id?: number;
65
120
  lookml_dashboard_id?: string;
@@ -112,6 +167,16 @@ export interface ICommand {
112
167
  linked_content_id?: string;
113
168
  linked_content_type?: LinkedContentType;
114
169
  }
170
+ export declare enum ComparisonType {
171
+ EQUAL_TO = "EQUAL_TO",
172
+ GREATER_THAN = "GREATER_THAN",
173
+ GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
174
+ LESS_THAN = "LESS_THAN",
175
+ LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
176
+ INCREASES_BY = "INCREASES_BY",
177
+ DECREASES_BY = "DECREASES_BY",
178
+ CHANGES_BY = "CHANGES_BY"
179
+ }
115
180
  export interface IConnectionFeatures {
116
181
  dialect_name?: string;
117
182
  cost_estimate?: boolean;
@@ -353,6 +418,18 @@ export interface ICredentialsEmail {
353
418
  url?: string;
354
419
  user_url?: string;
355
420
  }
421
+ export interface ICredentialsEmailSearch {
422
+ can?: IDictionary<boolean>;
423
+ created_at?: string;
424
+ email?: string;
425
+ forced_password_reset_at_next_login?: boolean;
426
+ is_disabled?: boolean;
427
+ logged_in_at?: string;
428
+ password_reset_url?: string;
429
+ type?: string;
430
+ url?: string;
431
+ user_url?: string;
432
+ }
356
433
  export interface ICredentialsEmbed {
357
434
  can?: IDictionary<boolean>;
358
435
  created_at?: string;
@@ -426,7 +503,6 @@ export interface ICredentialsTotp {
426
503
  url?: string;
427
504
  }
428
505
  export interface ICustomWelcomeEmail {
429
- can?: IDictionary<boolean>;
430
506
  enabled?: boolean;
431
507
  content?: string;
432
508
  subject?: string;
@@ -461,6 +537,7 @@ export interface IDashboard {
461
537
  deleter_id?: number;
462
538
  edit_uri?: string;
463
539
  favorite_count?: number;
540
+ filters_bar_collapsed?: boolean;
464
541
  last_accessed_at?: Date;
465
542
  last_viewed_at?: Date;
466
543
  load_configuration?: string;
@@ -673,6 +750,7 @@ export interface IDBConnection {
673
750
  pdt_concurrency?: number;
674
751
  disable_context_comment?: boolean;
675
752
  oauth_application_id?: number;
753
+ always_retry_failed_builds?: boolean;
676
754
  }
677
755
  export interface IDBConnectionBase {
678
756
  can?: IDictionary<boolean>;
@@ -717,6 +795,10 @@ export declare enum DependencyStatus {
717
795
  lock_error = "lock_error",
718
796
  install_none = "install_none"
719
797
  }
798
+ export declare enum DestinationType {
799
+ EMAIL = "EMAIL",
800
+ ACTION_HUB = "ACTION_HUB"
801
+ }
720
802
  export interface IDialect {
721
803
  name?: string;
722
804
  label?: string;
@@ -1040,6 +1122,9 @@ export interface IInternalHelpResourcesContent {
1040
1122
  organization_name?: string;
1041
1123
  markdown_content?: string;
1042
1124
  }
1125
+ export declare enum InvestigativeContentType {
1126
+ dashboard = "dashboard"
1127
+ }
1043
1128
  export interface ILDAPConfig {
1044
1129
  can?: IDictionary<boolean>;
1045
1130
  alternate_email_login_allowed?: boolean;
@@ -1853,6 +1938,11 @@ export interface IRequestAllIntegrations {
1853
1938
  fields?: string;
1854
1939
  integration_hub_id?: string;
1855
1940
  }
1941
+ export interface IRequestAllLookmlModels {
1942
+ fields?: string;
1943
+ limit?: number;
1944
+ offset?: number;
1945
+ }
1856
1946
  export interface IRequestAllRoles {
1857
1947
  fields?: string;
1858
1948
  ids?: DelimArray<number>;
@@ -1866,6 +1956,8 @@ export interface IRequestAllUsers {
1866
1956
  fields?: string;
1867
1957
  page?: number;
1868
1958
  per_page?: number;
1959
+ limit?: number;
1960
+ offset?: number;
1869
1961
  sorts?: string;
1870
1962
  ids?: DelimArray<number>;
1871
1963
  }
@@ -2058,6 +2150,18 @@ export interface IRequestScheduledPlansForLookmlDashboard {
2058
2150
  fields?: string;
2059
2151
  all_users?: boolean;
2060
2152
  }
2153
+ export interface IRequestSearchAlerts {
2154
+ limit?: number;
2155
+ offset?: number;
2156
+ group_by?: string;
2157
+ fields?: string;
2158
+ disabled?: boolean;
2159
+ frequency?: string;
2160
+ condition_met?: boolean;
2161
+ last_run_start?: string;
2162
+ last_run_end?: string;
2163
+ all_owners?: boolean;
2164
+ }
2061
2165
  export interface IRequestSearchBoards {
2062
2166
  title?: string;
2063
2167
  created_at?: string;
@@ -2101,6 +2205,16 @@ export interface IRequestSearchContentViews {
2101
2205
  sorts?: string;
2102
2206
  filter_or?: boolean;
2103
2207
  }
2208
+ export interface IRequestSearchCredentialsEmail {
2209
+ fields?: string;
2210
+ limit?: number;
2211
+ offset?: number;
2212
+ sorts?: string;
2213
+ id?: number;
2214
+ email?: string;
2215
+ emails?: string;
2216
+ filter_or?: boolean;
2217
+ }
2104
2218
  export interface IRequestSearchDashboardElements {
2105
2219
  dashboard_id?: number;
2106
2220
  look_id?: number;
@@ -2224,6 +2338,8 @@ export interface IRequestSearchUsers {
2224
2338
  fields?: string;
2225
2339
  page?: number;
2226
2340
  per_page?: number;
2341
+ limit?: number;
2342
+ offset?: number;
2227
2343
  sorts?: string;
2228
2344
  id?: string;
2229
2345
  first_name?: string;
@@ -2241,6 +2357,8 @@ export interface IRequestSearchUsersNames {
2241
2357
  fields?: string;
2242
2358
  page?: number;
2243
2359
  per_page?: number;
2360
+ limit?: number;
2361
+ offset?: number;
2244
2362
  sorts?: string;
2245
2363
  id?: number;
2246
2364
  first_name?: string;
@@ -2525,6 +2643,13 @@ export interface ISessionConfig {
2525
2643
  use_inactivity_based_logout?: boolean;
2526
2644
  track_session_location?: boolean;
2527
2645
  }
2646
+ export interface ISetting {
2647
+ extension_framework_enabled?: boolean;
2648
+ marketplace_auto_install_enabled?: boolean;
2649
+ marketplace_enabled?: boolean;
2650
+ whitelabel_configuration?: IWhitelabelConfiguration;
2651
+ custom_welcome_email?: ICustomWelcomeEmail;
2652
+ }
2528
2653
  export interface ISnippet {
2529
2654
  name?: string;
2530
2655
  label?: string;
@@ -2736,6 +2861,9 @@ export interface IUserAttributeWithValue {
2736
2861
  source?: string;
2737
2862
  hidden_value_domain_whitelist?: string;
2738
2863
  }
2864
+ export interface IUserEmailOnly {
2865
+ email: string;
2866
+ }
2739
2867
  export interface IUserLoginLockout {
2740
2868
  can?: IDictionary<boolean>;
2741
2869
  key?: string;
@@ -2783,7 +2911,6 @@ export interface IWelcomeEmailTest {
2783
2911
  header?: string;
2784
2912
  }
2785
2913
  export interface IWhitelabelConfiguration {
2786
- can?: IDictionary<boolean>;
2787
2914
  id?: number;
2788
2915
  logo_file?: string;
2789
2916
  logo_url?: string;
@@ -2806,6 +2933,25 @@ export interface IWorkspace {
2806
2933
  id?: string;
2807
2934
  projects?: IProject[];
2808
2935
  }
2936
+ export interface IWriteAlert {
2937
+ applied_dashboard_filters?: IAlertAppliedDashboardFilter[];
2938
+ comparison_type?: ComparisonType;
2939
+ cron?: string;
2940
+ custom_title?: string;
2941
+ dashboard_element_id?: number;
2942
+ description?: string;
2943
+ destinations?: IAlertDestination[];
2944
+ field?: IAlertField;
2945
+ is_disabled?: boolean;
2946
+ is_public?: boolean;
2947
+ investigative_content_type?: InvestigativeContentType;
2948
+ investigative_content_id?: string;
2949
+ lookml_dashboard_id?: string;
2950
+ lookml_link_id?: string;
2951
+ owner_id?: number;
2952
+ threshold?: number;
2953
+ time_series_condition_state?: IAlertConditionState;
2954
+ }
2809
2955
  export interface IWriteApiSession {
2810
2956
  workspace_id?: string;
2811
2957
  }
@@ -2823,6 +2969,9 @@ export interface IWriteBoard {
2823
2969
  title?: string;
2824
2970
  }
2825
2971
  export interface IWriteBoardItem {
2972
+ custom_description?: string;
2973
+ custom_title?: string;
2974
+ custom_url?: string;
2826
2975
  dashboard_id?: number;
2827
2976
  board_section_id?: number;
2828
2977
  look_id?: number;
@@ -2884,12 +3033,6 @@ export interface IWriteCredentialsEmail {
2884
3033
  email?: string;
2885
3034
  forced_password_reset_at_next_login?: boolean;
2886
3035
  }
2887
- export interface IWriteCustomWelcomeEmail {
2888
- enabled?: boolean;
2889
- content?: string;
2890
- subject?: string;
2891
- header?: string;
2892
- }
2893
3036
  export interface IWriteDashboard {
2894
3037
  description?: string;
2895
3038
  hidden?: boolean;
@@ -2903,6 +3046,7 @@ export interface IWriteDashboard {
2903
3046
  background_color?: string;
2904
3047
  crossfilter_enabled?: boolean;
2905
3048
  deleted?: boolean;
3049
+ filters_bar_collapsed?: boolean;
2906
3050
  load_configuration?: string;
2907
3051
  lookml_link_id?: string;
2908
3052
  show_filters_bar?: boolean;
@@ -3001,6 +3145,7 @@ export interface IWriteDBConnection {
3001
3145
  pdt_concurrency?: number;
3002
3146
  disable_context_comment?: boolean;
3003
3147
  oauth_application_id?: number;
3148
+ always_retry_failed_builds?: boolean;
3004
3149
  }
3005
3150
  export interface IWriteDBConnectionOverride {
3006
3151
  context?: string;
@@ -3282,6 +3427,13 @@ export interface IWriteSessionConfig {
3282
3427
  use_inactivity_based_logout?: boolean;
3283
3428
  track_session_location?: boolean;
3284
3429
  }
3430
+ export interface IWriteSetting {
3431
+ extension_framework_enabled?: boolean;
3432
+ marketplace_auto_install_enabled?: boolean;
3433
+ marketplace_enabled?: boolean;
3434
+ whitelabel_configuration?: IWriteWhitelabelConfiguration;
3435
+ custom_welcome_email?: ICustomWelcomeEmail;
3436
+ }
3285
3437
  export interface IWriteSshServer {
3286
3438
  ssh_server_name?: string;
3287
3439
  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