@startanaicompany/crm 2.11.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3009,7 +3009,7 @@ companiesCmd
|
|
|
3009
3009
|
name: opts.name,
|
|
3010
3010
|
...(opts.domain && { domain: opts.domain }),
|
|
3011
3011
|
...(opts.industry && { industry: opts.industry }),
|
|
3012
|
-
...(opts.employeeCount !== undefined && {
|
|
3012
|
+
...(opts.employeeCount !== undefined && { size: String(parseInt(opts.employeeCount)) }),
|
|
3013
3013
|
...(opts.website && { website: opts.website }),
|
|
3014
3014
|
};
|
|
3015
3015
|
const res = await client.post('/companies', body);
|
|
@@ -3034,7 +3034,7 @@ companiesCmd
|
|
|
3034
3034
|
...(opts.name && { name: opts.name }),
|
|
3035
3035
|
...(opts.domain !== undefined && { domain: opts.domain }),
|
|
3036
3036
|
...(opts.industry !== undefined && { industry: opts.industry }),
|
|
3037
|
-
...(opts.employeeCount !== undefined && {
|
|
3037
|
+
...(opts.employeeCount !== undefined && { size: String(parseInt(opts.employeeCount)) }),
|
|
3038
3038
|
...(opts.website !== undefined && { website: opts.website }),
|
|
3039
3039
|
};
|
|
3040
3040
|
const res = await client.put(`/companies/${id}`, body);
|