@looker/sdk 21.12.0 → 21.18.1

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 (41) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/lib/3.1/funcs.d.ts +2 -2
  3. package/lib/3.1/funcs.js.map +1 -1
  4. package/lib/3.1/methods.d.ts +2 -2
  5. package/lib/3.1/methods.js.map +1 -1
  6. package/lib/3.1/methodsInterface.d.ts +4 -4
  7. package/lib/3.1/models.d.ts +8 -1
  8. package/lib/3.1/models.js.map +1 -1
  9. package/lib/3.1/streams.d.ts +3 -3
  10. package/lib/3.1/streams.js.map +1 -1
  11. package/lib/4.0/funcs.d.ts +16 -7
  12. package/lib/4.0/funcs.js +1305 -1172
  13. package/lib/4.0/funcs.js.map +1 -1
  14. package/lib/4.0/methods.d.ts +16 -7
  15. package/lib/4.0/methods.js +874 -777
  16. package/lib/4.0/methods.js.map +1 -1
  17. package/lib/4.0/methodsInterface.d.ts +18 -9
  18. package/lib/4.0/models.d.ts +144 -10
  19. package/lib/4.0/models.js +30 -1
  20. package/lib/4.0/models.js.map +1 -1
  21. package/lib/4.0/streams.d.ts +17 -8
  22. package/lib/4.0/streams.js +874 -777
  23. package/lib/4.0/streams.js.map +1 -1
  24. package/lib/constants.d.ts +1 -1
  25. package/lib/constants.js +1 -1
  26. package/lib/constants.js.map +1 -1
  27. package/lib/esm/3.1/funcs.js.map +1 -1
  28. package/lib/esm/3.1/methods.js.map +1 -1
  29. package/lib/esm/3.1/models.js.map +1 -1
  30. package/lib/esm/3.1/streams.js.map +1 -1
  31. package/lib/esm/4.0/funcs.js +1272 -1166
  32. package/lib/esm/4.0/funcs.js.map +1 -1
  33. package/lib/esm/4.0/methods.js +874 -777
  34. package/lib/esm/4.0/methods.js.map +1 -1
  35. package/lib/esm/4.0/models.js +26 -0
  36. package/lib/esm/4.0/models.js.map +1 -1
  37. package/lib/esm/4.0/streams.js +874 -777
  38. package/lib/esm/4.0/streams.js.map +1 -1
  39. package/lib/esm/constants.js +1 -1
  40. package/lib/esm/constants.js.map +1 -1
  41. 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, 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, 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, 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,10 +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>>;
89
- set_setting(body: Partial<ISetting>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ISetting, IError | IValidationError>>;
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>>;
90
98
  all_timezones(options?: Partial<ITransportSettings>): Promise<SDKResponse<ITimezone[], IError>>;
91
99
  versions(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IApiVersion, IError>>;
92
- 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>>;
93
101
  whitelabel_configuration(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IWhitelabelConfiguration, IError>>;
94
102
  update_whitelabel_configuration(body: Partial<IWriteWhitelabelConfiguration>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IWhitelabelConfiguration, IError | IValidationError>>;
95
103
  all_connections(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDBConnection[], IError>>;
@@ -142,8 +150,8 @@ export interface ILooker40SDK {
142
150
  delete_dashboard(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
143
151
  dashboard_aggregate_table_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardAggregateTableLookml, IError>>;
144
152
  dashboard_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardLookml, IError>>;
145
- copy_dashboard(dashboard_id: string, folder_id?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
146
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>>;
147
155
  search_dashboard_elements(request: IRequestSearchDashboardElements, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement[], IError>>;
148
156
  dashboard_element(dashboard_element_id: string, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement, IError>>;
149
157
  update_dashboard_element(dashboard_element_id: string, body: Partial<IWriteDashboardElement>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement, IError | IValidationError>>;
@@ -378,6 +386,7 @@ export interface ILooker40SDK {
378
386
  set_user_attribute_user_value(user_id: number, user_attribute_id: number, body: Partial<IWriteUserAttributeWithValue>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserAttributeWithValue, IError | IValidationError>>;
379
387
  delete_user_attribute_user_value(user_id: number, user_attribute_id: number, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
380
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>>;
381
390
  create_embed_user(body: Partial<ICreateEmbedUserRequest>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserPublic, IError>>;
382
391
  all_user_attributes(request: IRequestAllBoardSections, options?: Partial<ITransportSettings>): Promise<SDKResponse<IUserAttribute[], IError>>;
383
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;
@@ -438,7 +511,6 @@ export interface ICredentialsTotp {
438
511
  url?: string;
439
512
  }
440
513
  export interface ICustomWelcomeEmail {
441
- can?: IDictionary<boolean>;
442
514
  enabled?: boolean;
443
515
  content?: string;
444
516
  subject?: string;
@@ -473,8 +545,13 @@ export interface IDashboard {
473
545
  deleter_id?: number;
474
546
  edit_uri?: string;
475
547
  favorite_count?: number;
548
+ filters_bar_collapsed?: boolean;
476
549
  last_accessed_at?: Date;
477
550
  last_viewed_at?: Date;
551
+ updated_at?: Date;
552
+ last_updater_id?: number;
553
+ last_updater_name?: string;
554
+ user_name?: string;
478
555
  load_configuration?: string;
479
556
  lookml_link_id?: string;
480
557
  show_filters_bar?: boolean;
@@ -650,7 +727,7 @@ export interface IDBConnection {
650
727
  snippets?: ISnippet[];
651
728
  pdts_enabled?: boolean;
652
729
  host?: string;
653
- port?: number;
730
+ port?: string;
654
731
  username?: string;
655
732
  password?: string;
656
733
  uses_oauth?: boolean;
@@ -685,6 +762,7 @@ export interface IDBConnection {
685
762
  pdt_concurrency?: number;
686
763
  disable_context_comment?: boolean;
687
764
  oauth_application_id?: number;
765
+ always_retry_failed_builds?: boolean;
688
766
  }
689
767
  export interface IDBConnectionBase {
690
768
  can?: IDictionary<boolean>;
@@ -729,6 +807,10 @@ export declare enum DependencyStatus {
729
807
  lock_error = "lock_error",
730
808
  install_none = "install_none"
731
809
  }
810
+ export declare enum DestinationType {
811
+ EMAIL = "EMAIL",
812
+ ACTION_HUB = "ACTION_HUB"
813
+ }
732
814
  export interface IDialect {
733
815
  name?: string;
734
816
  label?: string;
@@ -1052,6 +1134,9 @@ export interface IInternalHelpResourcesContent {
1052
1134
  organization_name?: string;
1053
1135
  markdown_content?: string;
1054
1136
  }
1137
+ export declare enum InvestigativeContentType {
1138
+ dashboard = "dashboard"
1139
+ }
1055
1140
  export interface ILDAPConfig {
1056
1141
  can?: IDictionary<boolean>;
1057
1142
  alternate_email_login_allowed?: boolean;
@@ -1808,6 +1893,7 @@ export interface IRenderTask {
1808
1893
  look_id?: number;
1809
1894
  lookml_dashboard_id?: string;
1810
1895
  query_id?: number;
1896
+ dashboard_element_id?: string;
1811
1897
  query_runtime?: number;
1812
1898
  render_runtime?: number;
1813
1899
  result_format?: string;
@@ -1883,6 +1969,8 @@ export interface IRequestAllUsers {
1883
1969
  fields?: string;
1884
1970
  page?: number;
1885
1971
  per_page?: number;
1972
+ limit?: number;
1973
+ offset?: number;
1886
1974
  sorts?: string;
1887
1975
  ids?: DelimArray<number>;
1888
1976
  }
@@ -2075,6 +2163,18 @@ export interface IRequestScheduledPlansForLookmlDashboard {
2075
2163
  fields?: string;
2076
2164
  all_users?: boolean;
2077
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
+ }
2078
2178
  export interface IRequestSearchBoards {
2079
2179
  title?: string;
2080
2180
  created_at?: string;
@@ -2251,6 +2351,8 @@ export interface IRequestSearchUsers {
2251
2351
  fields?: string;
2252
2352
  page?: number;
2253
2353
  per_page?: number;
2354
+ limit?: number;
2355
+ offset?: number;
2254
2356
  sorts?: string;
2255
2357
  id?: string;
2256
2358
  first_name?: string;
@@ -2268,6 +2370,8 @@ export interface IRequestSearchUsersNames {
2268
2370
  fields?: string;
2269
2371
  page?: number;
2270
2372
  per_page?: number;
2373
+ limit?: number;
2374
+ offset?: number;
2271
2375
  sorts?: string;
2272
2376
  id?: number;
2273
2377
  first_name?: string;
@@ -2556,6 +2660,8 @@ export interface ISetting {
2556
2660
  extension_framework_enabled?: boolean;
2557
2661
  marketplace_auto_install_enabled?: boolean;
2558
2662
  marketplace_enabled?: boolean;
2663
+ whitelabel_configuration?: IWhitelabelConfiguration;
2664
+ custom_welcome_email?: ICustomWelcomeEmail;
2559
2665
  }
2560
2666
  export interface ISnippet {
2561
2667
  name?: string;
@@ -2768,6 +2874,9 @@ export interface IUserAttributeWithValue {
2768
2874
  source?: string;
2769
2875
  hidden_value_domain_whitelist?: string;
2770
2876
  }
2877
+ export interface IUserEmailOnly {
2878
+ email: string;
2879
+ }
2771
2880
  export interface IUserLoginLockout {
2772
2881
  can?: IDictionary<boolean>;
2773
2882
  key?: string;
@@ -2815,7 +2924,6 @@ export interface IWelcomeEmailTest {
2815
2924
  header?: string;
2816
2925
  }
2817
2926
  export interface IWhitelabelConfiguration {
2818
- can?: IDictionary<boolean>;
2819
2927
  id?: number;
2820
2928
  logo_file?: string;
2821
2929
  logo_url?: string;
@@ -2838,6 +2946,26 @@ export interface IWorkspace {
2838
2946
  id?: string;
2839
2947
  projects?: IProject[];
2840
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
+ }
2841
2969
  export interface IWriteApiSession {
2842
2970
  workspace_id?: string;
2843
2971
  }
@@ -2855,6 +2983,9 @@ export interface IWriteBoard {
2855
2983
  title?: string;
2856
2984
  }
2857
2985
  export interface IWriteBoardItem {
2986
+ custom_description?: string;
2987
+ custom_title?: string;
2988
+ custom_url?: string;
2858
2989
  dashboard_id?: number;
2859
2990
  board_section_id?: number;
2860
2991
  look_id?: number;
@@ -2916,12 +3047,6 @@ export interface IWriteCredentialsEmail {
2916
3047
  email?: string;
2917
3048
  forced_password_reset_at_next_login?: boolean;
2918
3049
  }
2919
- export interface IWriteCustomWelcomeEmail {
2920
- enabled?: boolean;
2921
- content?: string;
2922
- subject?: string;
2923
- header?: string;
2924
- }
2925
3050
  export interface IWriteDashboard {
2926
3051
  description?: string;
2927
3052
  hidden?: boolean;
@@ -2935,6 +3060,7 @@ export interface IWriteDashboard {
2935
3060
  background_color?: string;
2936
3061
  crossfilter_enabled?: boolean;
2937
3062
  deleted?: boolean;
3063
+ filters_bar_collapsed?: boolean;
2938
3064
  load_configuration?: string;
2939
3065
  lookml_link_id?: string;
2940
3066
  show_filters_bar?: boolean;
@@ -3005,7 +3131,7 @@ export interface IWriteDatagroup {
3005
3131
  export interface IWriteDBConnection {
3006
3132
  name?: string;
3007
3133
  host?: string;
3008
- port?: number;
3134
+ port?: string;
3009
3135
  username?: string;
3010
3136
  password?: string;
3011
3137
  certificate?: string;
@@ -3033,6 +3159,7 @@ export interface IWriteDBConnection {
3033
3159
  pdt_concurrency?: number;
3034
3160
  disable_context_comment?: boolean;
3035
3161
  oauth_application_id?: number;
3162
+ always_retry_failed_builds?: boolean;
3036
3163
  }
3037
3164
  export interface IWriteDBConnectionOverride {
3038
3165
  context?: string;
@@ -3314,6 +3441,13 @@ export interface IWriteSessionConfig {
3314
3441
  use_inactivity_based_logout?: boolean;
3315
3442
  track_session_location?: boolean;
3316
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
+ }
3317
3451
  export interface IWriteSshServer {
3318
3452
  ssh_server_name?: string;
3319
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