2114 timebox make sure the zapier integrations supports custom objects (#3091)
* Fix build command * Add hidden trigger to fetch object names * Remove useless actions * Rename createObject to createRecord
This commit is contained in:
9
packages/twenty-zapier/src/utils/labelling.ts
Normal file
9
packages/twenty-zapier/src/utils/labelling.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { capitalize } from "../utils/capitalize";
|
||||
|
||||
export const labelling = (str: string): string => {
|
||||
return str
|
||||
.replace(/[A-Z]/g, letter => ` ${letter.toLowerCase()}`)
|
||||
.split(' ')
|
||||
.map((word)=> capitalize(word))
|
||||
.join(' ');
|
||||
}
|
||||
Reference in New Issue
Block a user