Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
type: object
|
|
required:
|
|
- inbox_id
|
|
properties:
|
|
inbox_id:
|
|
type: number
|
|
description: ID of the inbox to which the contact belongs
|
|
example: 1
|
|
name:
|
|
type: string
|
|
description: name of the contact
|
|
example: Alice
|
|
email:
|
|
type: string
|
|
description: email of the contact
|
|
example: alice@acme.inc
|
|
blocked:
|
|
type: boolean
|
|
description: whether the contact is blocked or not
|
|
example: false
|
|
phone_number:
|
|
type: string
|
|
description: phone number of the contact
|
|
example: '+123456789'
|
|
avatar:
|
|
type: string
|
|
format: binary
|
|
description: Send the form data with the avatar image binary or use the avatar_url
|
|
avatar_url:
|
|
type: string
|
|
description: The url to a jpeg, png file for the contact avatar
|
|
example: https://example.com/avatar.png
|
|
identifier:
|
|
type: string
|
|
description: A unique identifier for the contact in external system
|
|
example: '1234567890'
|
|
additional_attributes:
|
|
type: object
|
|
description: An object where you can store additional attributes for contact. example {"type":"customer", "age":30}
|
|
example: { 'type': 'customer', 'age': 30 }
|
|
custom_attributes:
|
|
type: object
|
|
description: An object where you can store custom attributes for contact. example {"type":"customer", "age":30}, this should have a valid custom attribute definition.
|
|
example: {}
|