Skip to content

Commit

Permalink
Initial version of IConnectorsUsed interface and initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jst-cyr committed Mar 12, 2024
1 parent d1d06eb commit ca10b97
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/models/OutcomeConditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ export interface ISerializationUsed {
none: boolean;
}

export interface IConnectorsUsed {
none: boolean,
sfmc: boolean,
sfcrm: boolean,
contenthub: boolean,
dam: boolean,
cmp: boolean,
dynamics365: boolean,
dynamics365sales: boolean,
komfo: boolean,
sharepoint: boolean,
}

export enum ExperienceEdgeOption {
yes = 'yesexperienceedge',
no = 'noexperienceedge',
Expand Down Expand Up @@ -101,6 +114,7 @@ export class OutcomeConditions {
experienceEdge: ExperienceEdgeOption;
siteSearchUsed: ISiteSearchUsed;
serializationUsed: ISerializationUsed;
connectorsUsed: IConnectorsUsed;

/**
* Creates a new instance of OutcomeConditions.
Expand Down Expand Up @@ -160,6 +174,18 @@ export class OutcomeConditions {
this.experienceEdge = ExperienceEdgeOption.no;
this.siteSearchUsed = { indexSearch: false };
this.serializationUsed = { tds: false, unicorn: false, scs: false, none: false };
this.connectorsUsed = {
none: true,
sfmc: false,
sfcrm: false,
contenthub: false,
dam: false,
cmp: false,
dynamics365: false,
dynamics365sales: false,
komfo: false,
sharepoint: false
};

//If a gameInfoContext was provided, initialize all data from the answers in the context
if (gameInfoContext) {
Expand Down

0 comments on commit ca10b97

Please sign in to comment.