Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/14 Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
|
|
components:
|
|
|
|
schemas:
|
|
|
|
HsOfficeRelationshipType:
|
|
type: string
|
|
enum:
|
|
- UNKNOWN
|
|
- EX_PARTNER
|
|
- REPRESENTATIVE,
|
|
- VIP_CONTACT
|
|
- ACCOUNTING,
|
|
- OPERATIONS
|
|
- SUBSCRIBER
|
|
|
|
HsOfficeRelationship:
|
|
type: object
|
|
properties:
|
|
uuid:
|
|
type: string
|
|
format: uuid
|
|
relAnchor:
|
|
$ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
|
|
relHolder:
|
|
$ref: './hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
|
|
relType:
|
|
type: string
|
|
relMark:
|
|
type: string
|
|
nullable: true
|
|
contact:
|
|
$ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact'
|
|
|
|
HsOfficeRelationshipPatch:
|
|
type: object
|
|
properties:
|
|
contactUuid:
|
|
type: string
|
|
format: uuid
|
|
nullable: true
|
|
|
|
HsOfficeRelationshipInsert:
|
|
type: object
|
|
properties:
|
|
relAnchorUuid:
|
|
type: string
|
|
format: uuid
|
|
relHolderUuid:
|
|
type: string
|
|
format: uuid
|
|
relType:
|
|
type: string
|
|
nullable: true
|
|
relMark:
|
|
type: string
|
|
contactUuid:
|
|
type: string
|
|
format: uuid
|
|
required:
|
|
- relAnchorUuid
|
|
- relHolderUuid
|
|
- relType
|