-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #447 from chaynHQ/develop
Merge Develop onto Main
- Loading branch information
Showing
45 changed files
with
2,747 additions
and
2,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
export interface CrispResponse { | ||
error: boolean; | ||
reason: string; | ||
data: { | ||
data: unknown; | ||
}; | ||
export interface CrispProfileCustomFields { | ||
signed_up_at?: string; | ||
language?: string; | ||
marketing_permission?: boolean; | ||
service_emails_permission?: boolean; | ||
partners?: string; | ||
feature_live_chat?: boolean; | ||
feature_therapy?: boolean; | ||
therapy_sessions_remaining?: number; | ||
therapy_sessions_redeemed?: number; | ||
course_hst?: string; | ||
course_hst_sessions?: string; | ||
course_pst?: string; | ||
course_pst_sessions?: string; | ||
course_dbr?: string; | ||
course_dbr_sessions?: string; | ||
course_iaro?: string; | ||
course_iaro_sessions?: string; | ||
course_rtar?: string; | ||
course_rtar_sessions?: string; | ||
course_rryts?: string; | ||
course_rryts_sessions?: string; | ||
course_ma?: string; | ||
course_ma_sessions?: string; | ||
course_cb?: string; | ||
course_cb_sessions?: string; | ||
} | ||
export interface CrispProfileResponse { | ||
error: boolean; | ||
reason: string; | ||
data: { | ||
segments: string[]; | ||
}; | ||
} | ||
export interface NewPeopleProfile { | ||
email: string; | ||
person: { | ||
nickname: string; | ||
}; | ||
segments: string[]; | ||
} | ||
|
||
export interface UpdatePeopleProfile { | ||
export interface CrispProfileBase { | ||
email?: string; | ||
person?: { | ||
nickname: string; | ||
locales: string[]; | ||
}; | ||
segments?: string[]; | ||
notepad?: string; | ||
active?: number; | ||
// company?: {} | ||
} | ||
|
||
export interface NewPeopleProfileResponse extends CrispResponse { | ||
data: { | ||
data: { | ||
people_id: string; | ||
}; | ||
export interface CrispProfileBaseResponse { | ||
error: boolean; | ||
reason: string; | ||
data: CrispProfileBase & { | ||
people_id: string; | ||
}; | ||
} | ||
|
||
export interface PeopleData { | ||
[key: string]: string | number | boolean; | ||
export interface NewCrispProfileBaseResponse { | ||
data: CrispProfileBaseResponse; | ||
} | ||
|
||
export interface CrispProfileDataResponse { | ||
error: boolean; | ||
reason: string; | ||
data: { data: CrispProfileCustomFields }; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.