Skip to content

Commit

Permalink
Merge pull request #367 from intercom/optional-fields-346
Browse files Browse the repository at this point in the history
Make the company fields optional
  • Loading branch information
colmdoyle authored Jul 10, 2023
2 parents 9f0749c + dd48ce5 commit f478851
Show file tree
Hide file tree
Showing 3 changed files with 976 additions and 721 deletions.
16 changes: 8 additions & 8 deletions lib/company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ export default class Company {
}

interface CreateCompanyData {
createdAt: Timestamp;
createdAt?: Timestamp;
companyId: string;
name: string;
monthlySpend: number;
plan: string;
size: number;
website: string;
industry: string;
customAttributes: JavascriptObject;
name?: string;
monthlySpend?: number;
plan?: string;
size?: number;
website?: string;
industry?: string;
customAttributes?: JavascriptObject;
}
//
type UpdateCompanyData = CreateCompanyData;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
},
"license": "Apache-2.0",
"packageManager": "yarn@3.1.1"
}
}
Loading

0 comments on commit f478851

Please sign in to comment.