Skip to content

Commit f478851

Browse files
authored
Merge pull request #367 from intercom/optional-fields-346
Make the company fields optional
2 parents 9f0749c + dd48ce5 commit f478851

File tree

3 files changed

+976
-721
lines changed

3 files changed

+976
-721
lines changed

lib/company.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ export default class Company {
149149
}
150150

151151
interface CreateCompanyData {
152-
createdAt: Timestamp;
152+
createdAt?: Timestamp;
153153
companyId: string;
154-
name: string;
155-
monthlySpend: number;
156-
plan: string;
157-
size: number;
158-
website: string;
159-
industry: string;
160-
customAttributes: JavascriptObject;
154+
name?: string;
155+
monthlySpend?: number;
156+
plan?: string;
157+
size?: number;
158+
website?: string;
159+
industry?: string;
160+
customAttributes?: JavascriptObject;
161161
}
162162
//
163163
type UpdateCompanyData = CreateCompanyData;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
},
5959
"license": "Apache-2.0",
6060
"packageManager": "[email protected]"
61-
}
61+
}

0 commit comments

Comments
 (0)