refactor: Personalization tweaks (#3813)

* update survey

* add usage modes

* update recommended

* update key

* update key

* fix text cut off issue

* delete dulicate

* update placeholder

* clean up keys

* fix label
This commit is contained in:
Mutasem Aldmour
2022-08-03 13:02:46 +02:00
committed by GitHub
parent d65a9ed118
commit 7240aa38a3
8 changed files with 187 additions and 110682 deletions

View File

@@ -523,12 +523,30 @@ export type IPersonalizationSurveyAnswersV2 = {
companyIndustryExtended?: string[] | null;
companySize?: string | null;
companyType?: string | null;
customerType?: string | null;
mspFocus?: string[] | null;
mspFocusOther?: string | null;
otherAutomationGoal?: string | null;
otherCompanyIndustryExtended?: string[] | null;
};
export type IPersonalizationSurveyAnswersV3 = {
version: 'v3';
automationGoal?: string | null;
otherAutomationGoal?: string | null;
companyIndustryExtended?: string[] | null;
otherCompanyIndustryExtended?: string[] | null;
companySize?: string | null;
companyType?: string | null;
automationGoalSm?: string[] | null;
automationGoalSmOther?: string | null;
usageModes?: string[] | null;
};
export type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV3;
export type IPersonalizationSurveyVersions = IPersonalizationSurveyAnswersV1 | IPersonalizationSurveyAnswersV2 | IPersonalizationSurveyAnswersV3;
export type IRole = 'default' | 'owner' | 'member';
export interface IUserResponse {
@@ -541,7 +559,7 @@ export interface IUserResponse {
id: string;
createdAt: Date;
};
personalizationAnswers?: IPersonalizationSurveyAnswersV1 | IPersonalizationSurveyAnswersV2 | null;
personalizationAnswers?: IPersonalizationSurveyVersions | null;
isPending: boolean;
}