@hed-hog/contact 0.0.0
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/dist/contact.module.d.ts +3 -0
- package/dist/contact.module.d.ts.map +1 -0
- package/dist/contact.module.js +61 -0
- package/dist/contact.module.js.map +1 -0
- package/dist/contact.service.d.ts +28 -0
- package/dist/contact.service.d.ts.map +1 -0
- package/dist/contact.service.js +212 -0
- package/dist/contact.service.js.map +1 -0
- package/dist/emails/index.d.ts +3 -0
- package/dist/emails/index.d.ts.map +1 -0
- package/dist/emails/index.js +19 -0
- package/dist/emails/index.js.map +1 -0
- package/dist/emails/lib.d.ts +3 -0
- package/dist/emails/lib.d.ts.map +1 -0
- package/dist/emails/lib.js +18 -0
- package/dist/emails/lib.js.map +1 -0
- package/dist/emails/templates.d.ts +13 -0
- package/dist/emails/templates.d.ts.map +1 -0
- package/dist/emails/templates.js +37 -0
- package/dist/emails/templates.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/person/dto/create.dto.d.ts +7 -0
- package/dist/person/dto/create.dto.d.ts.map +1 -0
- package/dist/person/dto/create.dto.js +35 -0
- package/dist/person/dto/create.dto.js.map +1 -0
- package/dist/person/dto/update.dto.d.ts +6 -0
- package/dist/person/dto/update.dto.d.ts.map +1 -0
- package/dist/person/dto/update.dto.js +9 -0
- package/dist/person/dto/update.dto.js.map +1 -0
- package/dist/person/person-address/dto/create.dto.d.ts +14 -0
- package/dist/person/person-address/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-address/dto/create.dto.js +65 -0
- package/dist/person/person-address/dto/create.dto.js.map +1 -0
- package/dist/person/person-address/dto/update.dto.d.ts +6 -0
- package/dist/person/person-address/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-address/dto/update.dto.js +9 -0
- package/dist/person/person-address/dto/update.dto.js.map +1 -0
- package/dist/person/person-address/person-address.controller.d.ts +14 -0
- package/dist/person/person-address/person-address.controller.d.ts.map +1 -0
- package/dist/person/person-address/person-address.controller.js +92 -0
- package/dist/person/person-address/person-address.controller.js.map +1 -0
- package/dist/person/person-address/person-address.service.d.ts +16 -0
- package/dist/person/person-address/person-address.service.d.ts.map +1 -0
- package/dist/person/person-address/person-address.service.js +71 -0
- package/dist/person/person-address/person-address.service.js.map +1 -0
- package/dist/person/person-contact/dto/create.dto.d.ts +6 -0
- package/dist/person/person-contact/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-contact/dto/create.dto.js +30 -0
- package/dist/person/person-contact/dto/create.dto.js.map +1 -0
- package/dist/person/person-contact/dto/update.dto.d.ts +6 -0
- package/dist/person/person-contact/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-contact/dto/update.dto.js +9 -0
- package/dist/person/person-contact/dto/update.dto.js.map +1 -0
- package/dist/person/person-contact/person-contact.controller.d.ts +14 -0
- package/dist/person/person-contact/person-contact.controller.d.ts.map +1 -0
- package/dist/person/person-contact/person-contact.controller.js +92 -0
- package/dist/person/person-contact/person-contact.controller.js.map +1 -0
- package/dist/person/person-contact/person-contact.service.d.ts +16 -0
- package/dist/person/person-contact/person-contact.service.d.ts.map +1 -0
- package/dist/person/person-contact/person-contact.service.js +71 -0
- package/dist/person/person-contact/person-contact.service.js.map +1 -0
- package/dist/person/person-custom/dto/create.dto.d.ts +6 -0
- package/dist/person/person-custom/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-custom/dto/create.dto.js +27 -0
- package/dist/person/person-custom/dto/create.dto.js.map +1 -0
- package/dist/person/person-custom/dto/update.dto.d.ts +6 -0
- package/dist/person/person-custom/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-custom/dto/update.dto.js +9 -0
- package/dist/person/person-custom/dto/update.dto.js.map +1 -0
- package/dist/person/person-custom/person-custom.controller.d.ts +13 -0
- package/dist/person/person-custom/person-custom.controller.d.ts.map +1 -0
- package/dist/person/person-custom/person-custom.controller.js +83 -0
- package/dist/person/person-custom/person-custom.controller.js.map +1 -0
- package/dist/person/person-custom/person-custom.service.d.ts +20 -0
- package/dist/person/person-custom/person-custom.service.d.ts.map +1 -0
- package/dist/person/person-custom/person-custom.service.js +71 -0
- package/dist/person/person-custom/person-custom.service.js.map +1 -0
- package/dist/person/person-document/dto/create.dto.d.ts +9 -0
- package/dist/person/person-document/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-document/dto/create.dto.js +44 -0
- package/dist/person/person-document/dto/create.dto.js.map +1 -0
- package/dist/person/person-document/dto/update.dto.d.ts +6 -0
- package/dist/person/person-document/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-document/dto/update.dto.js +9 -0
- package/dist/person/person-document/dto/update.dto.js.map +1 -0
- package/dist/person/person-document/person-document.controller.d.ts +14 -0
- package/dist/person/person-document/person-document.controller.d.ts.map +1 -0
- package/dist/person/person-document/person-document.controller.js +92 -0
- package/dist/person/person-document/person-document.controller.js.map +1 -0
- package/dist/person/person-document/person-document.service.d.ts +16 -0
- package/dist/person/person-document/person-document.service.d.ts.map +1 -0
- package/dist/person/person-document/person-document.service.js +71 -0
- package/dist/person/person-document/person-document.service.js.map +1 -0
- package/dist/person/person-user/dto/create.dto.d.ts +4 -0
- package/dist/person/person-user/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-user/dto/create.dto.js +21 -0
- package/dist/person/person-user/dto/create.dto.js.map +1 -0
- package/dist/person/person-user/dto/update.dto.d.ts +6 -0
- package/dist/person/person-user/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-user/dto/update.dto.js +9 -0
- package/dist/person/person-user/dto/update.dto.js.map +1 -0
- package/dist/person/person-user/person-user.controller.d.ts +14 -0
- package/dist/person/person-user/person-user.controller.d.ts.map +1 -0
- package/dist/person/person-user/person-user.controller.js +92 -0
- package/dist/person/person-user/person-user.controller.js.map +1 -0
- package/dist/person/person-user/person-user.service.d.ts +16 -0
- package/dist/person/person-user/person-user.service.d.ts.map +1 -0
- package/dist/person/person-user/person-user.service.js +71 -0
- package/dist/person/person-user/person-user.service.js.map +1 -0
- package/dist/person/person-value/dto/create.dto.d.ts +4 -0
- package/dist/person/person-value/dto/create.dto.d.ts.map +1 -0
- package/dist/person/person-value/dto/create.dto.js +21 -0
- package/dist/person/person-value/dto/create.dto.js.map +1 -0
- package/dist/person/person-value/dto/update.dto.d.ts +6 -0
- package/dist/person/person-value/dto/update.dto.d.ts.map +1 -0
- package/dist/person/person-value/dto/update.dto.js +9 -0
- package/dist/person/person-value/dto/update.dto.js.map +1 -0
- package/dist/person/person-value/person-value.controller.d.ts +14 -0
- package/dist/person/person-value/person-value.controller.d.ts.map +1 -0
- package/dist/person/person-value/person-value.controller.js +92 -0
- package/dist/person/person-value/person-value.controller.js.map +1 -0
- package/dist/person/person-value/person-value.service.d.ts +16 -0
- package/dist/person/person-value/person-value.service.d.ts.map +1 -0
- package/dist/person/person-value/person-value.service.js +71 -0
- package/dist/person/person-value/person-value.service.js.map +1 -0
- package/dist/person/person.controller.d.ts +14 -0
- package/dist/person/person.controller.d.ts.map +1 -0
- package/dist/person/person.controller.js +89 -0
- package/dist/person/person.controller.js.map +1 -0
- package/dist/person/person.module.d.ts +3 -0
- package/dist/person/person.module.d.ts.map +1 -0
- package/dist/person/person.module.js +59 -0
- package/dist/person/person.module.js.map +1 -0
- package/dist/person/person.service.d.ts +19 -0
- package/dist/person/person.service.d.ts.map +1 -0
- package/dist/person/person.service.js +78 -0
- package/dist/person/person.service.js.map +1 -0
- package/dist/person-address-type/dto/create.dto.d.ts +5 -0
- package/dist/person-address-type/dto/create.dto.d.ts.map +1 -0
- package/dist/person-address-type/dto/create.dto.js +22 -0
- package/dist/person-address-type/dto/create.dto.js.map +1 -0
- package/dist/person-address-type/dto/update.dto.d.ts +6 -0
- package/dist/person-address-type/dto/update.dto.d.ts.map +1 -0
- package/dist/person-address-type/dto/update.dto.js +9 -0
- package/dist/person-address-type/dto/update.dto.js.map +1 -0
- package/dist/person-address-type/person-address-type.controller.d.ts +14 -0
- package/dist/person-address-type/person-address-type.controller.d.ts.map +1 -0
- package/dist/person-address-type/person-address-type.controller.js +91 -0
- package/dist/person-address-type/person-address-type.controller.js.map +1 -0
- package/dist/person-address-type/person-address-type.enum.d.ts +10 -0
- package/dist/person-address-type/person-address-type.enum.d.ts.map +1 -0
- package/dist/person-address-type/person-address-type.enum.js +14 -0
- package/dist/person-address-type/person-address-type.enum.js.map +1 -0
- package/dist/person-address-type/person-address-type.module.d.ts +3 -0
- package/dist/person-address-type/person-address-type.module.d.ts.map +1 -0
- package/dist/person-address-type/person-address-type.module.js +31 -0
- package/dist/person-address-type/person-address-type.module.js.map +1 -0
- package/dist/person-address-type/person-address-type.service.d.ts +23 -0
- package/dist/person-address-type/person-address-type.service.d.ts.map +1 -0
- package/dist/person-address-type/person-address-type.service.js +62 -0
- package/dist/person-address-type/person-address-type.service.js.map +1 -0
- package/dist/person-contact-type/dto/create.dto.d.ts +5 -0
- package/dist/person-contact-type/dto/create.dto.d.ts.map +1 -0
- package/dist/person-contact-type/dto/create.dto.js +22 -0
- package/dist/person-contact-type/dto/create.dto.js.map +1 -0
- package/dist/person-contact-type/dto/update.dto.d.ts +6 -0
- package/dist/person-contact-type/dto/update.dto.d.ts.map +1 -0
- package/dist/person-contact-type/dto/update.dto.js +9 -0
- package/dist/person-contact-type/dto/update.dto.js.map +1 -0
- package/dist/person-contact-type/person-contact-type.controller.d.ts +14 -0
- package/dist/person-contact-type/person-contact-type.controller.d.ts.map +1 -0
- package/dist/person-contact-type/person-contact-type.controller.js +91 -0
- package/dist/person-contact-type/person-contact-type.controller.js.map +1 -0
- package/dist/person-contact-type/person-contact-type.enum.d.ts +8 -0
- package/dist/person-contact-type/person-contact-type.enum.d.ts.map +1 -0
- package/dist/person-contact-type/person-contact-type.enum.js +12 -0
- package/dist/person-contact-type/person-contact-type.enum.js.map +1 -0
- package/dist/person-contact-type/person-contact-type.module.d.ts +3 -0
- package/dist/person-contact-type/person-contact-type.module.d.ts.map +1 -0
- package/dist/person-contact-type/person-contact-type.module.js +31 -0
- package/dist/person-contact-type/person-contact-type.module.js.map +1 -0
- package/dist/person-contact-type/person-contact-type.service.d.ts +23 -0
- package/dist/person-contact-type/person-contact-type.service.d.ts.map +1 -0
- package/dist/person-contact-type/person-contact-type.service.js +62 -0
- package/dist/person-contact-type/person-contact-type.service.js.map +1 -0
- package/dist/person-custom-type/dto/create.dto.d.ts +5 -0
- package/dist/person-custom-type/dto/create.dto.d.ts.map +1 -0
- package/dist/person-custom-type/dto/create.dto.js +22 -0
- package/dist/person-custom-type/dto/create.dto.js.map +1 -0
- package/dist/person-custom-type/dto/update.dto.d.ts +6 -0
- package/dist/person-custom-type/dto/update.dto.d.ts.map +1 -0
- package/dist/person-custom-type/dto/update.dto.js +9 -0
- package/dist/person-custom-type/dto/update.dto.js.map +1 -0
- package/dist/person-custom-type/person-custom-type.controller.d.ts +14 -0
- package/dist/person-custom-type/person-custom-type.controller.d.ts.map +1 -0
- package/dist/person-custom-type/person-custom-type.controller.js +91 -0
- package/dist/person-custom-type/person-custom-type.controller.js.map +1 -0
- package/dist/person-custom-type/person-custom-type.module.d.ts +3 -0
- package/dist/person-custom-type/person-custom-type.module.d.ts.map +1 -0
- package/dist/person-custom-type/person-custom-type.module.js +31 -0
- package/dist/person-custom-type/person-custom-type.module.js.map +1 -0
- package/dist/person-custom-type/person-custom-type.service.d.ts +23 -0
- package/dist/person-custom-type/person-custom-type.service.d.ts.map +1 -0
- package/dist/person-custom-type/person-custom-type.service.js +62 -0
- package/dist/person-custom-type/person-custom-type.service.js.map +1 -0
- package/dist/person-document-type/dto/create.dto.d.ts +6 -0
- package/dist/person-document-type/dto/create.dto.d.ts.map +1 -0
- package/dist/person-document-type/dto/create.dto.js +26 -0
- package/dist/person-document-type/dto/create.dto.js.map +1 -0
- package/dist/person-document-type/dto/update.dto.d.ts +6 -0
- package/dist/person-document-type/dto/update.dto.d.ts.map +1 -0
- package/dist/person-document-type/dto/update.dto.js +9 -0
- package/dist/person-document-type/dto/update.dto.js.map +1 -0
- package/dist/person-document-type/person-document-type.controller.d.ts +14 -0
- package/dist/person-document-type/person-document-type.controller.d.ts.map +1 -0
- package/dist/person-document-type/person-document-type.controller.js +91 -0
- package/dist/person-document-type/person-document-type.controller.js.map +1 -0
- package/dist/person-document-type/person-document-type.enum.d.ts +8 -0
- package/dist/person-document-type/person-document-type.enum.d.ts.map +1 -0
- package/dist/person-document-type/person-document-type.enum.js +12 -0
- package/dist/person-document-type/person-document-type.enum.js.map +1 -0
- package/dist/person-document-type/person-document-type.module.d.ts +3 -0
- package/dist/person-document-type/person-document-type.module.d.ts.map +1 -0
- package/dist/person-document-type/person-document-type.module.js +31 -0
- package/dist/person-document-type/person-document-type.module.js.map +1 -0
- package/dist/person-document-type/person-document-type.service.d.ts +23 -0
- package/dist/person-document-type/person-document-type.service.d.ts.map +1 -0
- package/dist/person-document-type/person-document-type.service.js +62 -0
- package/dist/person-document-type/person-document-type.service.js.map +1 -0
- package/dist/person-type/dto/create.dto.d.ts +5 -0
- package/dist/person-type/dto/create.dto.d.ts.map +1 -0
- package/dist/person-type/dto/create.dto.js +22 -0
- package/dist/person-type/dto/create.dto.js.map +1 -0
- package/dist/person-type/dto/update.dto.d.ts +6 -0
- package/dist/person-type/dto/update.dto.d.ts.map +1 -0
- package/dist/person-type/dto/update.dto.js +9 -0
- package/dist/person-type/dto/update.dto.js.map +1 -0
- package/dist/person-type/person-type.controller.d.ts +14 -0
- package/dist/person-type/person-type.controller.d.ts.map +1 -0
- package/dist/person-type/person-type.controller.js +91 -0
- package/dist/person-type/person-type.controller.js.map +1 -0
- package/dist/person-type/person-type.enum.d.ts +6 -0
- package/dist/person-type/person-type.enum.d.ts.map +1 -0
- package/dist/person-type/person-type.enum.js +10 -0
- package/dist/person-type/person-type.enum.js.map +1 -0
- package/dist/person-type/person-type.module.d.ts +3 -0
- package/dist/person-type/person-type.module.d.ts.map +1 -0
- package/dist/person-type/person-type.module.js +31 -0
- package/dist/person-type/person-type.module.js.map +1 -0
- package/dist/person-type/person-type.service.d.ts +23 -0
- package/dist/person-type/person-type.service.d.ts.map +1 -0
- package/dist/person-type/person-type.service.js +62 -0
- package/dist/person-type/person-type.service.js.map +1 -0
- package/hedhog/data/menu.yaml +87 -0
- package/hedhog/data/person_address_type.yaml +28 -0
- package/hedhog/data/person_contact_type.yaml +20 -0
- package/hedhog/data/person_document_type.yaml +35 -0
- package/hedhog/data/person_type.yaml +12 -0
- package/hedhog/data/route.yaml +213 -0
- package/hedhog/data/screen.yaml +96 -0
- package/hedhog/table/person.yaml +38 -0
- package/hedhog/table/person_address.yaml +85 -0
- package/hedhog/table/person_address_type.yaml +14 -0
- package/hedhog/table/person_contact.yaml +34 -0
- package/hedhog/table/person_contact_type.yaml +14 -0
- package/hedhog/table/person_custom.yaml +30 -0
- package/hedhog/table/person_custom_type.yaml +14 -0
- package/hedhog/table/person_document.yaml +55 -0
- package/hedhog/table/person_document_type.yaml +23 -0
- package/hedhog/table/person_type.yaml +15 -0
- package/hedhog/table/person_user.yaml +18 -0
- package/hedhog/table/person_value.yaml +16 -0
- package/package.json +40 -0
- package/src/contact.module.ts +50 -0
- package/src/contact.service.ts +228 -0
- package/src/emails/index.ts +2 -0
- package/src/emails/lib.ts +17 -0
- package/src/emails/templates.ts +41 -0
- package/src/index.ts +18 -0
- package/src/person/dto/create.dto.ts +17 -0
- package/src/person/dto/update.dto.ts +4 -0
- package/src/person/person-address/dto/create.dto.ts +40 -0
- package/src/person/person-address/dto/update.dto.ts +4 -0
- package/src/person/person-address/person-address.controller.ts +68 -0
- package/src/person/person-address/person-address.service.ts +80 -0
- package/src/person/person-contact/dto/create.dto.ts +13 -0
- package/src/person/person-contact/dto/update.dto.ts +4 -0
- package/src/person/person-contact/person-contact.controller.ts +68 -0
- package/src/person/person-contact/person-contact.service.ts +79 -0
- package/src/person/person-custom/dto/create.dto.ts +11 -0
- package/src/person/person-custom/dto/update.dto.ts +4 -0
- package/src/person/person-custom/person-custom.controller.ts +62 -0
- package/src/person/person-custom/person-custom.service.ts +88 -0
- package/src/person/person-document/dto/create.dto.ts +24 -0
- package/src/person/person-document/dto/update.dto.ts +4 -0
- package/src/person/person-document/person-document.controller.ts +68 -0
- package/src/person/person-document/person-document.service.ts +79 -0
- package/src/person/person-user/dto/create.dto.ts +6 -0
- package/src/person/person-user/dto/update.dto.ts +4 -0
- package/src/person/person-user/person-user.controller.ts +68 -0
- package/src/person/person-user/person-user.service.ts +79 -0
- package/src/person/person-value/dto/create.dto.ts +6 -0
- package/src/person/person-value/dto/update.dto.ts +4 -0
- package/src/person/person-value/person-value.controller.ts +68 -0
- package/src/person/person-value/person-value.service.ts +79 -0
- package/src/person/person.controller.ts +55 -0
- package/src/person/person.module.ts +45 -0
- package/src/person/person.service.ts +83 -0
- package/src/person-address-type/dto/create.dto.ts +7 -0
- package/src/person-address-type/dto/update.dto.ts +4 -0
- package/src/person-address-type/person-address-type.controller.ts +55 -0
- package/src/person-address-type/person-address-type.enum.ts +15 -0
- package/src/person-address-type/person-address-type.module.ts +18 -0
- package/src/person-address-type/person-address-type.service.ts +72 -0
- package/src/person-contact-type/dto/create.dto.ts +7 -0
- package/src/person-contact-type/dto/update.dto.ts +4 -0
- package/src/person-contact-type/person-contact-type.controller.ts +55 -0
- package/src/person-contact-type/person-contact-type.enum.ts +11 -0
- package/src/person-contact-type/person-contact-type.module.ts +18 -0
- package/src/person-contact-type/person-contact-type.service.ts +72 -0
- package/src/person-custom-type/dto/create.dto.ts +7 -0
- package/src/person-custom-type/dto/update.dto.ts +4 -0
- package/src/person-custom-type/person-custom-type.controller.ts +55 -0
- package/src/person-custom-type/person-custom-type.module.ts +18 -0
- package/src/person-custom-type/person-custom-type.service.ts +72 -0
- package/src/person-document-type/dto/create.dto.ts +10 -0
- package/src/person-document-type/dto/update.dto.ts +4 -0
- package/src/person-document-type/person-document-type.controller.ts +55 -0
- package/src/person-document-type/person-document-type.enum.ts +11 -0
- package/src/person-document-type/person-document-type.module.ts +18 -0
- package/src/person-document-type/person-document-type.service.ts +72 -0
- package/src/person-type/dto/create.dto.ts +7 -0
- package/src/person-type/dto/update.dto.ts +4 -0
- package/src/person-type/person-type.controller.ts +55 -0
- package/src/person-type/person-type.enum.ts +7 -0
- package/src/person-type/person-type.module.ts +18 -0
- package/src/person-type/person-type.service.ts +72 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PaginationDTO, PaginationService } from '@hed-hog/api-pagination';
|
|
2
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
3
|
+
import { CreateDTO } from './dto/create.dto';
|
|
4
|
+
import { DeleteDTO } from '@hed-hog/api';
|
|
5
|
+
import { UpdateDTO } from './dto/update.dto';
|
|
6
|
+
import { LocaleService } from '@hed-hog/api-locale';
|
|
7
|
+
export declare class PersonTypeService {
|
|
8
|
+
private readonly prismaService;
|
|
9
|
+
private readonly paginationService;
|
|
10
|
+
private readonly localeService;
|
|
11
|
+
private readonly modelName;
|
|
12
|
+
private readonly foreignKey;
|
|
13
|
+
constructor(prismaService: PrismaService, paginationService: PaginationService, localeService: LocaleService);
|
|
14
|
+
list(locale: string, paginationParams: PaginationDTO): Promise<any>;
|
|
15
|
+
get(id: number): Promise<any>;
|
|
16
|
+
create(data: CreateDTO): Promise<any>;
|
|
17
|
+
update({ id, data }: {
|
|
18
|
+
id: number;
|
|
19
|
+
data: UpdateDTO;
|
|
20
|
+
}): Promise<any>;
|
|
21
|
+
delete({ ids }: DeleteDTO): Promise<any>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=person-type.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-type.service.d.ts","sourceRoot":"","sources":["../../src/person-type/person-type.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBACa,iBAAiB;IAM1B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAThC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;gBAIrB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB,EAEpC,aAAa,EAAE,aAAa;IAGzC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAQpD,GAAG,CAAC,EAAE,EAAE,MAAM;IAId,MAAM,CAAC,IAAI,EAAE,SAAS;IAQtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IASpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PersonTypeService = void 0;
|
|
17
|
+
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
18
|
+
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
19
|
+
const common_1 = require("@nestjs/common");
|
|
20
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
21
|
+
let PersonTypeService = class PersonTypeService {
|
|
22
|
+
constructor(prismaService, paginationService, localeService) {
|
|
23
|
+
this.prismaService = prismaService;
|
|
24
|
+
this.paginationService = paginationService;
|
|
25
|
+
this.localeService = localeService;
|
|
26
|
+
this.modelName = 'person_type';
|
|
27
|
+
this.foreignKey = 'type_id';
|
|
28
|
+
}
|
|
29
|
+
async list(locale, paginationParams) {
|
|
30
|
+
return this.localeService.listModelWithLocale(locale, this.modelName, paginationParams);
|
|
31
|
+
}
|
|
32
|
+
async get(id) {
|
|
33
|
+
return this.localeService.getModelWithLocale(this.modelName, id);
|
|
34
|
+
}
|
|
35
|
+
async create(data) {
|
|
36
|
+
return this.localeService.createModelWithLocale(this.modelName, this.foreignKey, data);
|
|
37
|
+
}
|
|
38
|
+
async update({ id, data }) {
|
|
39
|
+
return this.localeService.updateModelWithLocale(this.modelName, this.foreignKey, id, data);
|
|
40
|
+
}
|
|
41
|
+
async delete({ ids }) {
|
|
42
|
+
if (ids == undefined || ids == null) {
|
|
43
|
+
throw new common_1.BadRequestException('You must select at least one item to delete.');
|
|
44
|
+
}
|
|
45
|
+
return this.prismaService.person_type.deleteMany({
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
in: ids
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.PersonTypeService = PersonTypeService;
|
|
55
|
+
exports.PersonTypeService = PersonTypeService = __decorate([
|
|
56
|
+
(0, common_1.Injectable)(),
|
|
57
|
+
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
|
|
58
|
+
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_pagination_1.PaginationService))),
|
|
59
|
+
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_locale_1.LocaleService))),
|
|
60
|
+
__metadata("design:paramtypes", [typeof (_a = typeof api_prisma_1.PrismaService !== "undefined" && api_prisma_1.PrismaService) === "function" ? _a : Object, typeof (_b = typeof api_pagination_1.PaginationService !== "undefined" && api_pagination_1.PaginationService) === "function" ? _b : Object, typeof (_c = typeof api_locale_1.LocaleService !== "undefined" && api_locale_1.LocaleService) === "function" ? _c : Object])
|
|
61
|
+
], PersonTypeService);
|
|
62
|
+
//# sourceMappingURL=person-type.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-type.service.js","sourceRoot":"","sources":["../../src/person-type/person-type.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA2E;AAC3E,oDAAoD;AACpD,2CAKwB;AAIxB,oDAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAI5B,YAEE,aAA6C,EAE7C,iBAAqD,EAErD,aAA6C;QAJ5B,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,kBAAa,GAAb,aAAa,CAAe;QAT9B,cAAS,GAAG,aAAa,CAAC;QAC1B,eAAU,GAAG,SAAS,CAAC;IASrC,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,MAAc,EAAE,gBAA+B;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAC3C,MAAM,EACN,IAAI,CAAC,SAAS,EACd,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAe;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAC7C,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,UAAU,EACf,IAAI,CACL,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAmC;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAC7C,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,UAAU,EACf,EAAE,EACF,IAAI,CACL,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAa;QAC7B,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,4BAAmB,CAC3B,8CAA8C,CAC/C,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC;YAC/C,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAzDY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC,CAAC,CAAA;IAE3C,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;yDAHR,0BAAa,oBAAb,0BAAa,oDAET,kCAAiB,oBAAjB,kCAAiB,oDAErB,0BAAa,oBAAb,0BAAa;GAVpC,iBAAiB,CAyD7B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
- url: /contact/person
|
|
2
|
+
icon: user-check
|
|
3
|
+
name:
|
|
4
|
+
en: Contact
|
|
5
|
+
pt: Contatos
|
|
6
|
+
slug: /contact/person
|
|
7
|
+
relations:
|
|
8
|
+
role:
|
|
9
|
+
- where:
|
|
10
|
+
slug: admin
|
|
11
|
+
- menu_id:
|
|
12
|
+
where:
|
|
13
|
+
slug: /management
|
|
14
|
+
icon: user-check
|
|
15
|
+
name:
|
|
16
|
+
en: Person
|
|
17
|
+
pt: Pessoas
|
|
18
|
+
slug: /management/person
|
|
19
|
+
relations:
|
|
20
|
+
role:
|
|
21
|
+
- where:
|
|
22
|
+
slug: admin
|
|
23
|
+
- menu_id:
|
|
24
|
+
where:
|
|
25
|
+
slug: /management/person
|
|
26
|
+
url: /management/person/person-address-type
|
|
27
|
+
icon: home-link
|
|
28
|
+
name:
|
|
29
|
+
en: Address Type
|
|
30
|
+
pt: Tipos de Endereço
|
|
31
|
+
slug: /management/person/person-address-type
|
|
32
|
+
relations:
|
|
33
|
+
role:
|
|
34
|
+
- where:
|
|
35
|
+
slug: admin
|
|
36
|
+
- menu_id:
|
|
37
|
+
where:
|
|
38
|
+
slug: /management/person
|
|
39
|
+
url: /management/person/person-contact-type
|
|
40
|
+
icon: address-book
|
|
41
|
+
name:
|
|
42
|
+
en: Contact Type
|
|
43
|
+
pt: Tipos de Contato
|
|
44
|
+
slug: /management/person/person-contact-type
|
|
45
|
+
relations:
|
|
46
|
+
role:
|
|
47
|
+
- where:
|
|
48
|
+
slug: admin
|
|
49
|
+
- menu_id:
|
|
50
|
+
where:
|
|
51
|
+
slug: /management/person
|
|
52
|
+
url: /management/person/person-custom-type
|
|
53
|
+
icon: adjustments
|
|
54
|
+
name:
|
|
55
|
+
en: Custom Type
|
|
56
|
+
pt: Tipos Personalizados
|
|
57
|
+
slug: /management/person/person-custom-type
|
|
58
|
+
relations:
|
|
59
|
+
role:
|
|
60
|
+
- where:
|
|
61
|
+
slug: admin
|
|
62
|
+
- menu_id:
|
|
63
|
+
where:
|
|
64
|
+
slug: /management/person
|
|
65
|
+
url: /management/person/person-document-type
|
|
66
|
+
icon: file-search
|
|
67
|
+
name:
|
|
68
|
+
en: Document Type
|
|
69
|
+
pt: Tipos de Documento
|
|
70
|
+
slug: /management/person/person-document-type
|
|
71
|
+
relations:
|
|
72
|
+
role:
|
|
73
|
+
- where:
|
|
74
|
+
slug: admin
|
|
75
|
+
- menu_id:
|
|
76
|
+
where:
|
|
77
|
+
slug: /management/person
|
|
78
|
+
url: /management/person/person-type
|
|
79
|
+
icon: id
|
|
80
|
+
name:
|
|
81
|
+
en: Person Type
|
|
82
|
+
pt: Tipos de Pessoa
|
|
83
|
+
slug: /management/person/person-type
|
|
84
|
+
relations:
|
|
85
|
+
role:
|
|
86
|
+
- where:
|
|
87
|
+
slug: admin
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
- name:
|
|
2
|
+
en: Residential
|
|
3
|
+
pt: Residencial
|
|
4
|
+
slug: RESIDENTIAL
|
|
5
|
+
- name:
|
|
6
|
+
en: Commercial
|
|
7
|
+
pt: Comercial
|
|
8
|
+
slug: COMMERCIAL
|
|
9
|
+
- name:
|
|
10
|
+
en: Correspondence
|
|
11
|
+
pt: Correspondência
|
|
12
|
+
slug: CORRESPONDENCE
|
|
13
|
+
- name:
|
|
14
|
+
en: Alternative
|
|
15
|
+
pt: Alternativo
|
|
16
|
+
slug: ALTERNATIVE
|
|
17
|
+
- name:
|
|
18
|
+
en: Work
|
|
19
|
+
pt: Trabalho
|
|
20
|
+
slug: WORK
|
|
21
|
+
- name:
|
|
22
|
+
en: Billing
|
|
23
|
+
pt: Cobrança
|
|
24
|
+
slug: BILLING
|
|
25
|
+
- name:
|
|
26
|
+
en: Shipping
|
|
27
|
+
pt: Entrega
|
|
28
|
+
slug: SHIPPING
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
- name:
|
|
2
|
+
en: Phone
|
|
3
|
+
pt: Telefone
|
|
4
|
+
slug: PHONE
|
|
5
|
+
- name:
|
|
6
|
+
en: Email
|
|
7
|
+
pt: E-mail
|
|
8
|
+
slug: EMAIL
|
|
9
|
+
- name:
|
|
10
|
+
en: Fax
|
|
11
|
+
pt: Fax
|
|
12
|
+
slug: FAX
|
|
13
|
+
- name:
|
|
14
|
+
en: WhatsApp
|
|
15
|
+
pt: WhatsApp
|
|
16
|
+
slug: WHATSAPP
|
|
17
|
+
- name:
|
|
18
|
+
en: Telegram
|
|
19
|
+
pt: Telegram
|
|
20
|
+
slug: TELEGRAM
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
- name:
|
|
2
|
+
en: ID
|
|
3
|
+
pt: RG
|
|
4
|
+
slug: RG
|
|
5
|
+
country_id:
|
|
6
|
+
where:
|
|
7
|
+
code: BRA
|
|
8
|
+
- name:
|
|
9
|
+
en: SSN
|
|
10
|
+
pt: CPF
|
|
11
|
+
slug: CPF
|
|
12
|
+
country_id:
|
|
13
|
+
where:
|
|
14
|
+
code: BRA
|
|
15
|
+
- name:
|
|
16
|
+
en: EIN
|
|
17
|
+
pt: CNPJ
|
|
18
|
+
slug: CNPJ
|
|
19
|
+
country_id:
|
|
20
|
+
where:
|
|
21
|
+
code: BRA
|
|
22
|
+
- name:
|
|
23
|
+
en: Passport
|
|
24
|
+
pt: Passaporte
|
|
25
|
+
slug: PASSPORT
|
|
26
|
+
country_id:
|
|
27
|
+
where:
|
|
28
|
+
code: BRA
|
|
29
|
+
- name:
|
|
30
|
+
en: Driver License
|
|
31
|
+
pt: CNH
|
|
32
|
+
slug: CNH
|
|
33
|
+
country_id:
|
|
34
|
+
where:
|
|
35
|
+
code: BRA
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
- url: /person/:personId/person-value
|
|
2
|
+
method: GET
|
|
3
|
+
relations: &a1
|
|
4
|
+
role:
|
|
5
|
+
- where:
|
|
6
|
+
slug: admin
|
|
7
|
+
- url: /person/:personId/person-value
|
|
8
|
+
method: POST
|
|
9
|
+
relations: *a1
|
|
10
|
+
- url: /person/:personId/person-value/:id
|
|
11
|
+
method: PATCH
|
|
12
|
+
relations: *a1
|
|
13
|
+
- url: /person/:personId/person-value
|
|
14
|
+
method: DELETE
|
|
15
|
+
relations: *a1
|
|
16
|
+
- url: /person/:personId/person-value/:id
|
|
17
|
+
method: GET
|
|
18
|
+
relations: *a1
|
|
19
|
+
- url: /person-type
|
|
20
|
+
method: GET
|
|
21
|
+
relations: &a2
|
|
22
|
+
role:
|
|
23
|
+
- where:
|
|
24
|
+
slug: admin
|
|
25
|
+
- url: /person-type
|
|
26
|
+
method: POST
|
|
27
|
+
relations: *a2
|
|
28
|
+
- url: /person-type/:id
|
|
29
|
+
method: GET
|
|
30
|
+
relations: *a2
|
|
31
|
+
- url: /person-type/:id
|
|
32
|
+
method: PATCH
|
|
33
|
+
relations: *a2
|
|
34
|
+
- url: /person-type
|
|
35
|
+
method: DELETE
|
|
36
|
+
relations: *a2
|
|
37
|
+
- url: /person
|
|
38
|
+
method: GET
|
|
39
|
+
relations: &a3
|
|
40
|
+
role:
|
|
41
|
+
- where:
|
|
42
|
+
slug: admin
|
|
43
|
+
- url: /person
|
|
44
|
+
method: POST
|
|
45
|
+
relations: *a3
|
|
46
|
+
- url: /person/:id
|
|
47
|
+
method: GET
|
|
48
|
+
relations: *a3
|
|
49
|
+
- url: /person/:id
|
|
50
|
+
method: PATCH
|
|
51
|
+
relations: *a3
|
|
52
|
+
- url: /person
|
|
53
|
+
method: DELETE
|
|
54
|
+
relations: *a3
|
|
55
|
+
- url: /person-document-type
|
|
56
|
+
method: GET
|
|
57
|
+
relations: &a4
|
|
58
|
+
role:
|
|
59
|
+
- where:
|
|
60
|
+
slug: admin
|
|
61
|
+
- url: /person-document-type
|
|
62
|
+
method: POST
|
|
63
|
+
relations: *a4
|
|
64
|
+
- url: /person-document-type/:id
|
|
65
|
+
method: GET
|
|
66
|
+
relations: *a4
|
|
67
|
+
- url: /person-document-type/:id
|
|
68
|
+
method: PATCH
|
|
69
|
+
relations: *a4
|
|
70
|
+
- url: /person-document-type
|
|
71
|
+
method: DELETE
|
|
72
|
+
relations: *a4
|
|
73
|
+
- url: /person/:personId/person-document
|
|
74
|
+
method: GET
|
|
75
|
+
relations: &a5
|
|
76
|
+
role:
|
|
77
|
+
- where:
|
|
78
|
+
slug: admin
|
|
79
|
+
- url: /person/:personId/person-document
|
|
80
|
+
method: POST
|
|
81
|
+
relations: *a5
|
|
82
|
+
- url: /person/:personId/person-document/:id
|
|
83
|
+
method: PATCH
|
|
84
|
+
relations: *a5
|
|
85
|
+
- url: /person/:personId/person-document
|
|
86
|
+
method: DELETE
|
|
87
|
+
relations: *a5
|
|
88
|
+
- url: /person/:personId/person-document/:id
|
|
89
|
+
method: GET
|
|
90
|
+
relations: *a5
|
|
91
|
+
- url: /person/:personId/person-contact
|
|
92
|
+
method: GET
|
|
93
|
+
relations: &a6
|
|
94
|
+
role:
|
|
95
|
+
- where:
|
|
96
|
+
slug: admin
|
|
97
|
+
- url: /person/:personId/person-contact
|
|
98
|
+
method: POST
|
|
99
|
+
relations: *a6
|
|
100
|
+
- url: /person/:personId/person-contact/:id
|
|
101
|
+
method: PATCH
|
|
102
|
+
relations: *a6
|
|
103
|
+
- url: /person/:personId/person-contact
|
|
104
|
+
method: DELETE
|
|
105
|
+
relations: *a6
|
|
106
|
+
- url: /person/:personId/person-contact/:id
|
|
107
|
+
method: GET
|
|
108
|
+
relations: *a6
|
|
109
|
+
- url: /person/:personId/person-address
|
|
110
|
+
method: GET
|
|
111
|
+
relations: &a7
|
|
112
|
+
role:
|
|
113
|
+
- where:
|
|
114
|
+
slug: admin
|
|
115
|
+
- url: /person/:personId/person-address
|
|
116
|
+
method: POST
|
|
117
|
+
relations: *a7
|
|
118
|
+
- url: /person/:personId/person-address/:id
|
|
119
|
+
method: PATCH
|
|
120
|
+
relations: *a7
|
|
121
|
+
- url: /person/:personId/person-address
|
|
122
|
+
method: DELETE
|
|
123
|
+
relations: *a7
|
|
124
|
+
- url: /person/:personId/person-address/:id
|
|
125
|
+
method: GET
|
|
126
|
+
relations: *a7
|
|
127
|
+
- url: /person/:personId/person-custom
|
|
128
|
+
method: GET
|
|
129
|
+
relations: &a8
|
|
130
|
+
role:
|
|
131
|
+
- where:
|
|
132
|
+
slug: admin
|
|
133
|
+
- url: /person/:personId/person-custom
|
|
134
|
+
method: POST
|
|
135
|
+
relations: *a8
|
|
136
|
+
- url: /person/:personId/person-custom/:id
|
|
137
|
+
method: PATCH
|
|
138
|
+
relations: *a8
|
|
139
|
+
- url: /person/:personId/person-custom
|
|
140
|
+
method: DELETE
|
|
141
|
+
relations: *a8
|
|
142
|
+
- url: /person/:personId/person-custom/:id
|
|
143
|
+
method: GET
|
|
144
|
+
relations: *a8
|
|
145
|
+
- url: /person-contact-type
|
|
146
|
+
method: GET
|
|
147
|
+
relations: &a9
|
|
148
|
+
role:
|
|
149
|
+
- where:
|
|
150
|
+
slug: admin
|
|
151
|
+
- url: /person-contact-type
|
|
152
|
+
method: POST
|
|
153
|
+
relations: *a9
|
|
154
|
+
- url: /person-contact-type/:id
|
|
155
|
+
method: GET
|
|
156
|
+
relations: *a9
|
|
157
|
+
- url: /person-contact-type/:id
|
|
158
|
+
method: PATCH
|
|
159
|
+
relations: *a9
|
|
160
|
+
- url: /person-contact-type
|
|
161
|
+
method: DELETE
|
|
162
|
+
relations: *a9
|
|
163
|
+
- url: /person-address-type
|
|
164
|
+
method: GET
|
|
165
|
+
relations: &a10
|
|
166
|
+
role:
|
|
167
|
+
- where:
|
|
168
|
+
slug: admin
|
|
169
|
+
- url: /person-address-type
|
|
170
|
+
method: POST
|
|
171
|
+
relations: *a10
|
|
172
|
+
- url: /person-address-type/:id
|
|
173
|
+
method: GET
|
|
174
|
+
relations: *a10
|
|
175
|
+
- url: /person-address-type/:id
|
|
176
|
+
method: PATCH
|
|
177
|
+
relations: *a10
|
|
178
|
+
- url: /person-address-type
|
|
179
|
+
method: DELETE
|
|
180
|
+
relations: *a10
|
|
181
|
+
- url: /person-custom-type
|
|
182
|
+
method: GET
|
|
183
|
+
relations: &a11
|
|
184
|
+
role:
|
|
185
|
+
- where:
|
|
186
|
+
slug: admin
|
|
187
|
+
- url: /person-custom-type
|
|
188
|
+
method: POST
|
|
189
|
+
relations: *a11
|
|
190
|
+
- url: /person-custom-type/:id
|
|
191
|
+
method: GET
|
|
192
|
+
relations: *a11
|
|
193
|
+
- url: /person-custom-type/:id
|
|
194
|
+
method: PATCH
|
|
195
|
+
relations: *a11
|
|
196
|
+
- url: /person-custom-type
|
|
197
|
+
method: DELETE
|
|
198
|
+
relations: *a11
|
|
199
|
+
- url: /person/:personId/person-user
|
|
200
|
+
method: GET
|
|
201
|
+
relations: *a11
|
|
202
|
+
- url: /person/:personId/person-user/:id
|
|
203
|
+
method: GET
|
|
204
|
+
relations: *a11
|
|
205
|
+
- url: /person/:personId/person-user
|
|
206
|
+
method: POST
|
|
207
|
+
relations: *a11
|
|
208
|
+
- url: /person/:personId/person-user/:id
|
|
209
|
+
method: PATCH
|
|
210
|
+
relations: *a11
|
|
211
|
+
- url: /person/:personId/person-user
|
|
212
|
+
method: DELETE
|
|
213
|
+
relations: *a11
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
- name:
|
|
2
|
+
en: PersonValue
|
|
3
|
+
pt: PersonValue
|
|
4
|
+
slug: person-value
|
|
5
|
+
description:
|
|
6
|
+
en: Screen to manage person_value
|
|
7
|
+
pt: Tela para gerenciar person_value
|
|
8
|
+
icon: file
|
|
9
|
+
- name:
|
|
10
|
+
en: PersonType
|
|
11
|
+
pt: PersonType
|
|
12
|
+
slug: person-type
|
|
13
|
+
description:
|
|
14
|
+
en: Screen to manage person_type
|
|
15
|
+
pt: Tela para gerenciar person_type
|
|
16
|
+
icon: file
|
|
17
|
+
- name:
|
|
18
|
+
en: Person
|
|
19
|
+
pt: Person
|
|
20
|
+
slug: person
|
|
21
|
+
description:
|
|
22
|
+
en: Screen to manage person
|
|
23
|
+
pt: Tela para gerenciar person
|
|
24
|
+
icon: file
|
|
25
|
+
- name:
|
|
26
|
+
en: PersonDocumentType
|
|
27
|
+
pt: PersonDocumentType
|
|
28
|
+
slug: person-document-type
|
|
29
|
+
description:
|
|
30
|
+
en: Screen to manage person_document_type
|
|
31
|
+
pt: Tela para gerenciar person_document_type
|
|
32
|
+
icon: file
|
|
33
|
+
- name:
|
|
34
|
+
en: PersonDocument
|
|
35
|
+
pt: PersonDocument
|
|
36
|
+
slug: person-document
|
|
37
|
+
description:
|
|
38
|
+
en: Screen to manage person_document
|
|
39
|
+
pt: Tela para gerenciar person_document
|
|
40
|
+
icon: file
|
|
41
|
+
- name:
|
|
42
|
+
en: PersonContactType
|
|
43
|
+
pt: PersonContactType
|
|
44
|
+
slug: person-contact-type
|
|
45
|
+
description:
|
|
46
|
+
en: Screen to manage person_contact_type
|
|
47
|
+
pt: Tela para gerenciar person_contact_type
|
|
48
|
+
icon: file
|
|
49
|
+
- name:
|
|
50
|
+
en: PersonContact
|
|
51
|
+
pt: PersonContact
|
|
52
|
+
slug: person-contact
|
|
53
|
+
description:
|
|
54
|
+
en: Screen to manage person_contact
|
|
55
|
+
pt: Tela para gerenciar person_contact
|
|
56
|
+
icon: file
|
|
57
|
+
- name:
|
|
58
|
+
en: PersonAddressType
|
|
59
|
+
pt: PersonAddressType
|
|
60
|
+
slug: person-address-type
|
|
61
|
+
description:
|
|
62
|
+
en: Screen to manage person_address_type
|
|
63
|
+
pt: Tela para gerenciar person_address_type
|
|
64
|
+
icon: file
|
|
65
|
+
- name:
|
|
66
|
+
en: PersonAddress
|
|
67
|
+
pt: PersonAddress
|
|
68
|
+
slug: person-address
|
|
69
|
+
description:
|
|
70
|
+
en: Screen to manage person_address
|
|
71
|
+
pt: Tela para gerenciar person_address
|
|
72
|
+
icon: file
|
|
73
|
+
- name:
|
|
74
|
+
en: PersonCustomType
|
|
75
|
+
pt: PersonCustomType
|
|
76
|
+
slug: person-custom-type
|
|
77
|
+
description:
|
|
78
|
+
en: Screen to manage person_custom_type
|
|
79
|
+
pt: Tela para gerenciar person_custom_type
|
|
80
|
+
icon: file
|
|
81
|
+
- name:
|
|
82
|
+
en: PersonCustom
|
|
83
|
+
pt: PersonCustom
|
|
84
|
+
slug: person-custom
|
|
85
|
+
description:
|
|
86
|
+
en: Screen to manage person_custom
|
|
87
|
+
pt: Tela para gerenciar person_custom
|
|
88
|
+
icon: file
|
|
89
|
+
- name:
|
|
90
|
+
en: PersonUser
|
|
91
|
+
pt: PersonUser
|
|
92
|
+
slug: person-user
|
|
93
|
+
description:
|
|
94
|
+
en: Screen to manage person_user
|
|
95
|
+
pt: Tela para gerenciar person_user
|
|
96
|
+
icon: file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: name
|
|
4
|
+
type: varchar
|
|
5
|
+
length: 255
|
|
6
|
+
field: text
|
|
7
|
+
locale:
|
|
8
|
+
en: Name
|
|
9
|
+
pt: Nome
|
|
10
|
+
- name: photo_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: file
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
locale:
|
|
18
|
+
en: Photo
|
|
19
|
+
pt: Foto
|
|
20
|
+
- name: type_id
|
|
21
|
+
type: fk
|
|
22
|
+
isPrimary: false
|
|
23
|
+
field: combobox
|
|
24
|
+
references:
|
|
25
|
+
table: person_type
|
|
26
|
+
column: id
|
|
27
|
+
onDelete: CASCADE
|
|
28
|
+
locale:
|
|
29
|
+
en: Type
|
|
30
|
+
pt: Tipo
|
|
31
|
+
- name: birth_at
|
|
32
|
+
type: date
|
|
33
|
+
isNullable: true
|
|
34
|
+
locale:
|
|
35
|
+
en: Birth
|
|
36
|
+
pt: Nascimento
|
|
37
|
+
- type: created_at
|
|
38
|
+
- type: updated_at
|