Skip to content

Commit

Permalink
Merge pull request #447 from chaynHQ/develop
Browse files Browse the repository at this point in the history
Merge Develop onto Main
  • Loading branch information
annarhughes committed Jun 4, 2024
2 parents a1972e7 + 05f4cd7 commit 208e91c
Show file tree
Hide file tree
Showing 45 changed files with 2,747 additions and 2,507 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ ZAPIER_TOKEN=
SLACK_WEBHOOK_URL=
CRISP_TOKEN=
CRISP_WEBSITE_TOKEN=
MAILCHIMP_MANDRILL_API_KEY=
MAILCHIMP_THERAPY_TEMPLATE_ID=
MAILCHIMP_THERAPY_FROM_EMAIL=
MAILCHIMP_API_KEY=
MAILCHIMP_AUDIENCE_ID=
MAILCHIMP_SERVER_PREFIX=
RESPOND_IO_CREATE_CONTACT_WEBHOOK=
RESPOND_IO_DELETE_CONTACT_WEBHOOK=
```
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: '3.9'

services:

api:
container_name: bloom-backend
build:
Expand All @@ -16,7 +15,7 @@ services:
volumes:
- .:/app

db:
db:
image: postgres:14-alpine
container_name: bloom-local-db
restart: unless-stopped
Expand All @@ -25,4 +24,4 @@ services:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: bloom
POSTGRES_DB: bloom
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"migration:show": "yarn build && yarn typeorm -- migration:show"
},
"dependencies": {
"@mailchimp/mailchimp_transactional": "^1.0.47",
"@mailchimp/mailchimp_marketing": "^3.0.80",
"@nestjs/common": "^10.3.6",
"@nestjs/config": "^3.2.2",
"@nestjs/core": "^10.3.6",
Expand Down
73 changes: 44 additions & 29 deletions src/api/crisp/crisp-api.interfaces.ts
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 };
}
83 changes: 0 additions & 83 deletions src/api/crisp/crisp-api.spec.ts

This file was deleted.

Loading

0 comments on commit 208e91c

Please sign in to comment.