@looker/sdk 22.6.0 → 22.8.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.
@@ -1,5 +1,5 @@
1
1
  import type { DelimArray, IDictionary, IAPIMethods, ITransportSettings, SDKResponse } from '@looker/sdk-rtl';
2
- import type { IAccessToken, IAlert, IAlertNotifications, IAlertPatch, IApiSession, IApiVersion, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateCredentialsApi3, 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, IEgressIpAddresses, IEmbedParams, IEmbedSecret, 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, IMaterializePDT, 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, IRequestCreateDashboardElement, IRequestCreateDashboardRenderTask, IRequestCreateQueryTask, IRequestCreateUserCredentialsEmailPasswordReset, IRequestDeployRefToProduction, IRequestFolderChildren, IRequestFolderChildrenSearch, IRequestGraphDerivedTablesForModel, IRequestGraphDerivedTablesForView, 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, IRequestStartPdtBuild, IRequestTagRef, IRequestUserAttributeUserValues, IRequestUserRoles, IRole, IRoleSearch, IRunningQueries, ISamlConfig, ISamlMetadataParseResult, IScheduledPlan, ISchema, ISchemaColumns, ISchemaTables, ISession, ISessionConfig, ISetting, ISmtpSettings, ISmtpStatus, ISqlQuery, ISqlQueryCreate, ISshPublicKey, ISshServer, ISshTunnel, ISupportAccessAddEntries, ISupportAccessAllowlistEntry, ISupportAccessEnable, ISupportAccessStatus, ITheme, ITimezone, IUpdateFolder, IUser, IUserAttribute, IUserAttributeGroupValue, IUserAttributeWithValue, IUserEmailOnly, IUserLoginLockout, IUserPublic, IValidationError, IWelcomeEmailTest, IWhitelabelConfiguration, IWorkspace, IWriteAlert, IWriteApiSession, IWriteBackupConfiguration, IWriteBoard, IWriteBoardItem, IWriteBoardSection, IWriteColorCollection, IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, IWriteDashboardFilter, IWriteDashboardLayout, IWriteDashboardLayoutComponent, IWriteDashboardLookml, IWriteDatagroup, IWriteDBConnection, IWriteEmbedSecret, 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';
2
+ import type { IAccessToken, IAlert, IAlertNotifications, IAlertPatch, IApiSession, IApiVersion, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateCredentialsApi3, 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, IEgressIpAddresses, IEmbedParams, IEmbedSecret, 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, IMaterializePDT, IMergeQuery, IMobileSettings, IMobileToken, IModel, IModelFieldSuggestions, IModelSet, IOauthClientApp, IOIDCConfig, IPasswordConfig, IPermission, IPermissionSet, IProject, IProjectFile, IProjectValidation, IProjectValidationCache, IProjectWorkspace, IQuery, IQueryTask, IRenderTask, IRepositoryCredential, IRequestActiveThemes, IRequestAlertNotifications, IRequestAllBoardItems, IRequestAllBoardSections, IRequestAllExternalOauthApplications, IRequestAllGroups, IRequestAllGroupUsers, IRequestAllIntegrations, IRequestAllLookmlModels, IRequestAllRoles, IRequestAllScheduledPlans, IRequestAllUsers, IRequestConnectionColumns, IRequestConnectionSchemas, IRequestConnectionSearchColumns, IRequestConnectionTables, IRequestContentThumbnail, IRequestCreateDashboardElement, IRequestCreateDashboardRenderTask, IRequestCreateQueryTask, IRequestCreateUserCredentialsEmailPasswordReset, IRequestDeployRefToProduction, IRequestFolderChildren, IRequestFolderChildrenSearch, IRequestGraphDerivedTablesForModel, IRequestGraphDerivedTablesForView, 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, IRequestStartPdtBuild, IRequestTagRef, IRequestUserAttributeUserValues, IRequestUserRoles, IRole, IRoleSearch, IRunningQueries, ISamlConfig, ISamlMetadataParseResult, IScheduledPlan, ISchema, ISchemaColumns, ISchemaTables, ISession, ISessionConfig, ISetting, ISmtpSettings, ISmtpStatus, ISqlQuery, ISqlQueryCreate, ISshPublicKey, ISshServer, ISshTunnel, ISupportAccessAddEntries, ISupportAccessAllowlistEntry, ISupportAccessEnable, ISupportAccessStatus, ITheme, ITimezone, IUpdateFolder, IUser, IUserAttribute, IUserAttributeGroupValue, IUserAttributeWithValue, IUserEmailOnly, IUserLoginLockout, IUserPublic, IValidationError, IWelcomeEmailTest, IWhitelabelConfiguration, IWorkspace, IWriteAlert, IWriteApiSession, IWriteBackupConfiguration, IWriteBoard, IWriteBoardItem, IWriteBoardSection, IWriteColorCollection, IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, IWriteDashboardFilter, IWriteDashboardLayout, IWriteDashboardLayoutComponent, IWriteDashboardLookml, IWriteDatagroup, IWriteDBConnection, IWriteEmbedSecret, IWriteExternalOauthApplication, IWriteGitBranch, IWriteGroup, IWriteIntegration, IWriteIntegrationHub, IWriteInternalHelpResources, IWriteInternalHelpResourcesContent, IWriteLDAPConfig, IWriteLegacyFeature, IWriteLookmlModel, IWriteLookWithQuery, IWriteMergeQuery, IWriteMobileToken, IWriteModelSet, IWriteOauthClientApp, IWriteOIDCConfig, IWritePasswordConfig, IWritePermissionSet, IWriteProject, IWriteQuery, IWriteRepositoryCredential, IWriteRole, IWriteSamlConfig, IWriteScheduledPlan, IWriteSessionConfig, IWriteSetting, IWriteSshServer, IWriteSshTunnel, IWriteTheme, IWriteUser, IWriteUserAttribute, IWriteUserAttributeWithValue, IWriteWhitelabelConfiguration } from './models';
3
3
  export interface ILooker40SDK extends IAPIMethods {
4
4
  search_alerts(request: IRequestSearchAlerts, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert[], IError>>;
5
5
  get_alert(alert_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError>>;
@@ -8,7 +8,8 @@ export interface ILooker40SDK extends IAPIMethods {
8
8
  delete_alert(alert_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
9
9
  create_alert(body: Partial<IWriteAlert>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlert, IError | IValidationError>>;
10
10
  enqueue_alert(alert_id: string, force?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
11
- alert_notifications(options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlertNotifications[], IError>>;
11
+ alert_notifications(request: IRequestAlertNotifications, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlertNotifications[], IError>>;
12
+ read_alert_notification(alert_notification_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAlertNotifications, IError | IValidationError>>;
12
13
  login(request: IRequestLogin, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAccessToken, IError>>;
13
14
  login_user(user_id: string, associative?: boolean, options?: Partial<ITransportSettings>): Promise<SDKResponse<IAccessToken, IError>>;
14
15
  logout(options?: Partial<ITransportSettings>): Promise<SDKResponse<string, IError>>;
@@ -22,6 +23,9 @@ export interface ILooker40SDK extends IAPIMethods {
22
23
  test_ldap_config_auth(body: Partial<IWriteLDAPConfig>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILDAPConfigTestResult, IError | IValidationError>>;
23
24
  test_ldap_config_user_info(body: Partial<IWriteLDAPConfig>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILDAPConfigTestResult, IError | IValidationError>>;
24
25
  test_ldap_config_user_auth(body: Partial<IWriteLDAPConfig>, options?: Partial<ITransportSettings>): Promise<SDKResponse<ILDAPConfigTestResult, IError | IValidationError>>;
26
+ register_mobile_device(body: Partial<IWriteMobileToken>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IMobileToken, IError | IValidationError>>;
27
+ update_mobile_device_registration(device_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IMobileToken, IError | IValidationError>>;
28
+ deregister_mobile_device(device_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<void, IError>>;
25
29
  all_oauth_client_apps(fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IOauthClientApp[], IError>>;
26
30
  oauth_client_app(client_guid: string, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IOauthClientApp, IError>>;
27
31
  register_oauth_client_app(client_guid: string, body: Partial<IWriteOauthClientApp>, fields?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IOauthClientApp, IError | IValidationError>>;
@@ -159,6 +163,7 @@ export interface ILooker40SDK extends IAPIMethods {
159
163
  dashboard_aggregate_table_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardAggregateTableLookml, IError>>;
160
164
  dashboard_lookml(dashboard_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardLookml, IError>>;
161
165
  move_dashboard(dashboard_id: string, folder_id: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
166
+ import_dashboard_from_lookml(body: Partial<IWriteDashboardLookml>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardLookml, IError | IValidationError>>;
162
167
  create_dashboard_from_lookml(body: Partial<IWriteDashboardLookml>, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardLookml, IError | IValidationError>>;
163
168
  copy_dashboard(dashboard_id: string, folder_id?: string, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboard, IError | IValidationError>>;
164
169
  search_dashboard_elements(request: IRequestSearchDashboardElements, options?: Partial<ITransportSettings>): Promise<SDKResponse<IDashboardElement[], IError>>;
@@ -64,6 +64,7 @@ export interface IAlertNotifications {
64
64
  field_value?: number | null;
65
65
  threshold_value?: number | null;
66
66
  ran_at?: string;
67
+ alert?: IMobilePayload;
67
68
  }
68
69
  export interface IAlertPatch {
69
70
  owner_id?: string | null;
@@ -564,6 +565,7 @@ export interface IDashboard {
564
565
  edit_uri?: string | null;
565
566
  favorite_count?: number | null;
566
567
  filters_bar_collapsed?: boolean;
568
+ filters_location_top?: boolean;
567
569
  last_accessed_at?: Date | null;
568
570
  last_viewed_at?: Date | null;
569
571
  updated_at?: Date | null;
@@ -834,6 +836,10 @@ export declare enum DestinationType {
834
836
  EMAIL = "EMAIL",
835
837
  ACTION_HUB = "ACTION_HUB"
836
838
  }
839
+ export declare enum DeviceType {
840
+ android = "android",
841
+ ios = "ios"
842
+ }
837
843
  export interface IDialect {
838
844
  name?: string;
839
845
  label?: string;
@@ -1647,10 +1653,23 @@ export interface IMergeQuerySourceQuery {
1647
1653
  name?: string | null;
1648
1654
  query_id?: string | null;
1649
1655
  }
1656
+ export interface IMobilePayload {
1657
+ title?: string | null;
1658
+ alert_id: string;
1659
+ investigative_content_id?: string | null;
1660
+ dashboard_name?: string | null;
1661
+ dashboard_id?: string;
1662
+ query_slug?: string;
1663
+ }
1650
1664
  export interface IMobileSettings {
1651
1665
  mobile_force_authentication?: boolean;
1652
1666
  mobile_app_integration?: boolean;
1653
1667
  }
1668
+ export interface IMobileToken {
1669
+ id?: string;
1670
+ device_token: string;
1671
+ device_type: DeviceType;
1672
+ }
1654
1673
  export interface IModel {
1655
1674
  connection?: string | null;
1656
1675
  name?: string;
@@ -1971,6 +1990,10 @@ export interface IRequestActiveThemes {
1971
1990
  ts?: Date | null;
1972
1991
  fields?: string | null;
1973
1992
  }
1993
+ export interface IRequestAlertNotifications {
1994
+ limit?: number | null;
1995
+ offset?: number | null;
1996
+ }
1974
1997
  export interface IRequestAllBoardItems {
1975
1998
  fields?: string | null;
1976
1999
  sorts?: string | null;
@@ -2115,6 +2138,8 @@ export interface IRequestFolderChildren {
2115
2138
  fields?: string | null;
2116
2139
  page?: number | null;
2117
2140
  per_page?: number | null;
2141
+ limit?: number | null;
2142
+ offset?: number | null;
2118
2143
  sorts?: string | null;
2119
2144
  }
2120
2145
  export interface IRequestFolderChildrenSearch {
@@ -3178,6 +3203,7 @@ export interface IWriteDashboard {
3178
3203
  crossfilter_enabled?: boolean;
3179
3204
  deleted?: boolean;
3180
3205
  filters_bar_collapsed?: boolean;
3206
+ filters_location_top?: boolean;
3181
3207
  load_configuration?: string | null;
3182
3208
  lookml_link_id?: string | null;
3183
3209
  show_filters_bar?: boolean | null;
@@ -3405,6 +3431,10 @@ export interface IWriteMergeQuery {
3405
3431
  total?: boolean;
3406
3432
  vis_config?: IDictionary<string> | null;
3407
3433
  }
3434
+ export interface IWriteMobileToken {
3435
+ device_token: string;
3436
+ device_type: DeviceType | null;
3437
+ }
3408
3438
  export interface IWriteModelSet {
3409
3439
  models?: string[] | null;
3410
3440
  name?: string | null;
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.SslVersion = exports.ResultFormat = exports.PullRequestMode = exports.PermissionType = exports.Name = exports.InvestigativeContentType = exports.Format = exports.FillStyle = exports.DestinationType = exports.DependencyStatus = exports.ComparisonType = exports.Category = exports.Align = void 0;
6
+ exports.WeekStartDay = exports.UserAttributeFilterTypes = exports.SupportedVisualizationFormattings = exports.SupportedFormattings = exports.SupportedFormats = exports.SupportedDownloadSettings = exports.SupportedActionTypes = exports.SslVersion = exports.ResultFormat = exports.PullRequestMode = exports.PermissionType = exports.Name = exports.InvestigativeContentType = exports.Format = exports.FillStyle = exports.DeviceType = exports.DestinationType = exports.DependencyStatus = exports.ComparisonType = exports.Category = exports.Align = void 0;
7
7
  var Align;
8
8
  exports.Align = Align;
9
9
 
@@ -54,6 +54,14 @@ exports.DestinationType = DestinationType;
54
54
  DestinationType["ACTION_HUB"] = "ACTION_HUB";
55
55
  })(DestinationType || (exports.DestinationType = DestinationType = {}));
56
56
 
57
+ var DeviceType;
58
+ exports.DeviceType = DeviceType;
59
+
60
+ (function (DeviceType) {
61
+ DeviceType["android"] = "android";
62
+ DeviceType["ios"] = "ios";
63
+ })(DeviceType || (exports.DeviceType = DeviceType = {}));
64
+
57
65
  var FillStyle;
58
66
  exports.FillStyle = FillStyle;
59
67