Skip to content

Commit f351cc8

Browse files
author
Matt Mazzola
committed
Add pageName and filters as optional parameters to IEmebedConfiguration to match parameters from ILoadConfiguration
1 parent a0fa5fd commit f351cc8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/embed.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ declare global {
2121
}
2222
}
2323

24+
// TODO: Re-use ILoadConfiguration interface to prevent duplicating properties.
25+
// Current issue is that they are optional when embedding since they can be specificed as attributes but they are required when loading.
2426
export interface IEmbedConfiguration {
2527
type?: string;
2628
id?: string;
2729
uniqueId?: string;
2830
embedUrl?: string;
2931
accessToken?: string;
3032
settings?: models.ISettings;
33+
pageName?: string;
34+
filters?: (models.IBasicFilter | models.IAdvancedFilter)[];
3135
}
3236

3337
export interface IInternalEmbedConfiguration extends models.ILoadConfiguration {

0 commit comments

Comments
 (0)