Skip to content

Commit

Permalink
feat: update the service account model with the widget configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendakh committed Sep 21, 2022
1 parent a374c32 commit 2f1d4db
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/core/IFrameConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* The Iframe configuration
*/
export class IFrameConfig {
/**
* The language of the iframe
*/
public language?: string;

/**
* The font used in the iframe
*/
public font?: string;

/**
* The color of the font used in the iframe
*/
public fontColor?: string;
}
7 changes: 6 additions & 1 deletion src/core/ServiceAccount.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBuilder } from '../RequestBuilder';
import { IServiceAccount } from '..';
import { IServiceAccount, WidgetConfig } from '..';
import {
PostSignatureDTO,
PostSubscriptionDTO,
Expand Down Expand Up @@ -40,6 +40,11 @@ export class ServiceAccount {
*/
public config?: any; // eslint-disable-line @typescript-eslint/no-explicit-any

/**
* Widget configurations for the serviceAccount
*/
public widgetConfig?: WidgetConfig;

/**
* Subscriptions attached to the service account
*/
Expand Down
11 changes: 11 additions & 0 deletions src/core/WidgetConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { IFrameConfig } from "./IFrameConfig";

/**
* Service account's widget config class
*/
export class WidgetConfig {
/**
* The iframe configuration
*/
public iframe?: IFrameConfig;
}
2 changes: 2 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ export * from './LegalDocument';
export * from './Signature';
export * from './SupportingDocument';
export * from './Application';
export * from './WidgetConfig';
export * from './IFrameConfig';

0 comments on commit 2f1d4db

Please sign in to comment.