iachat/config/locales
Vinay Keerthi 170ea7691f
feat: Add company model and API with tests (#12548)
# Pull Request Template

## Description

* add Company model with validations for name, domain, description and
  avatar
* Add database migration fo
* Implement endpoints for company CRUD operations
* Add optional company relationship for contacts
* Add test for models, controllers, factories and policies
* Add authorization policies restricting delete to admins
* support JSON API responses
Please include a summary of the change and issue(s) fixed. Also, mention
relevant motivation, context, and any dependencies that this change
requires.

Fixes #(cw-5650)

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Tests are implemented using `RSpec`

```
$ bundle exec rails db:migrate
$ bundle exec rspec spec/models/company_spec.rb spec/controllers/api/v1/accounts/companies_controller_spec.rb
```

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-10-08 07:53:43 -07:00
..
am.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ar.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
az.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
bg.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ca.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
cs.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
da.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
de.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
devise.am.yml
devise.ar.yml chore: Update translations (#9946) 2024-08-16 14:06:32 +05:30
devise.az.yml chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
devise.bg.yml
devise.ca.yml
devise.cs.yml
devise.da.yml
devise.de.yml
devise.el.yml
devise.en.yml
devise.es.yml
devise.fa.yml
devise.fi.yml
devise.fr.yml
devise.he.yml
devise.hi.yml
devise.hr.yml chore: Update translations (#9946) 2024-08-16 14:06:32 +05:30
devise.hu.yml
devise.hy.yml
devise.id.yml
devise.is.yml
devise.it.yml
devise.ja.yml chore: Update translations from Crowdin (#10686) 2025-02-12 12:34:34 +05:30
devise.ka.yml
devise.ko.yml
devise.lt.yml
devise.lv.yml
devise.ml.yml
devise.ms.yml
devise.ne.yml
devise.nl.yml
devise.no.yml
devise.pl.yml
devise.pt_BR.yml
devise.pt.yml
devise.ro.yml
devise.ru.yml
devise.sh.yml
devise.sk.yml
devise.sl.yml chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
devise.sq.yml
devise.sr.yml
devise.sv.yml
devise.ta.yml
devise.th.yml
devise.tl.yml chore: Update translations from Crowdin (#9835) 2024-07-25 11:58:22 -07:00
devise.tr.yml
devise.uk.yml
devise.ur_IN.yml
devise.ur.yml
devise.vi.yml
devise.zh_CN.yml
devise.zh_TW.yml
devise.zh.yml
el.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
en.yml feat: Add company model and API with tests (#12548) 2025-10-08 07:53:43 -07:00
es.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
fa.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
fi.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
fr.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
he.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
hi.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
hr.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
hu.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
hy.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
id.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
is.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
it.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ja.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ka.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ko.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
lt.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
lv.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ml.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ms.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ne.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
nl.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
no.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
pl.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
pt_BR.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
pt.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ro.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ru.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
secure_password.en.yml
sh.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
sk.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
sl.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
sq.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
sr.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
sv.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ta.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
th.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
tl.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
tr.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
uk.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ur_IN.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
ur.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
vi.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
zh_CN.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
zh_TW.yml chore: Update translations (#12598) 2025-10-07 19:17:38 +05:30
zh.yml