Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copied fields from offers to cooperations #949

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
326 changes: 80 additions & 246 deletions docs/cooperation/cooperation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,52 @@ definitions:
properties:
_id:
type: string
proficiencyLevel:
type: array
items:
type: string
subject:
type: object
properties:
name:
type: string
category:
type: object
properties:
appearance:
type: object
properties:
color:
type: string
icon:
type: string
user:
type: object
properties:
_id:
type: string
firstName:
type: string
lastName:
type: string
photo:
type: string
role:
type: string
description:
type: string
languages:
type: array
items:
type: string
offer:
type: string
ref: '#components/offer'
initiator:
type: string
ref: '#/components/user'
initiatorRole:
type: string
receiver:
type: string
ref: '#components/user'
receiverRole:
type: string
price:
Expand Down Expand Up @@ -185,37 +220,18 @@ definitions:
properties:
_id:
type: string
proficiencyLevel:
type: array
items:
type: string
title:
type: string
description:
type: string
languages:
type: array
items:
type: string
author:
type: object
properties:
totalReviews:
type: object
properties:
student:
type: integer
tutor:
type: integer
_id:
type: string
averageRating:
type: object
properties:
student:
type: number
tutor:
type: number
_id:
type: string
firstName:
type: string
lastName:
Expand All @@ -224,246 +240,57 @@ definitions:
type: string
professionalSummary:
type: string
subject:
type: object
properties:
_id:
type: string
name:
type: string
category:
type: object
properties:
appearance:
totalReviews:
type: object
properties:
color:
type: string
icon:
type: string
_id:
type: string
name:
type: string
student:
type: number
tutor:
type: number
initiator:
type: string
initiatorRole:
type: string
proficiencyLevel:
type: array
items:
type: string
subject:
type: object
properties:
address:
type: object
properties:
country:
type: string
city:
type: string
mainSubjects:
type: object
properties:
student:
type: array
items:
type: string
tutor:
type: array
items:
type: string
totalReviews:
type: object
properties:
student:
type: integer
tutor:
type: integer
averageRating:
type: object
properties:
student:
type: number
tutor:
type: number
status:
type: object
properties:
student:
type: string
tutor:
type: string
admin:
type: string
videoLink:
type: object
properties:
student:
type: string
professionalBlock:
type: object
properties:
awards:
type: string
scientificActivities:
type: string
workExperience:
type: string
education:
type: string
notificationSettings:
type: object
properties:
isOfferStatusNotification:
type: boolean
isChatNotification:
type: boolean
isSimilarOffersNotification:
type: boolean
isEmailNotification:
type: boolean
_id:
type: string
role:
type: array
items:
type: string
firstName:
type: string
lastName:
type: string
email:
type: string
nativeLanguage:
type: string
lastLogin:
type: string
createdAt:
type: string
updatedAt:
type: string
professionalSummary:
name:
type: string
initiatorRole:
type: string
receiver:
category:
type: object
properties:
address:
appearance:
type: object
properties:
country:
color:
type: string
city:
icon:
type: string
mainSubjects:
type: object
properties:
student:
type: array
items:
type: string
tutor:
type: array
items:
type: object
properties:
category:
type: string
subjects:
type: array
items:
type: string
_id:
type: string
totalReviews:
type: object
properties:
student:
type: integer
tutor:
type: integer
averageRating:
type: object
properties:
student:
type: number
tutor:
type: number
status:
type: object
properties:
student:
type: string
tutor:
type: string
admin:
type: string
videoLink:
type: object
properties:
tutor:
type: string
professionalBlock:
type: object
properties:
awards:
type: string
scientificActivities:
type: string
workExperience:
type: string
education:
type: string
notificationSettings:
type: object
properties:
isOfferStatusNotification:
type: boolean
isChatNotification:
type: boolean
isSimilarOffersNotification:
type: boolean
isEmailNotification:
type: boolean
_id:
type: string
role:
type: array
items:
type: string
firstName:
type: string
lastName:
type: string
email:
type: string
nativeLanguage:
type: string
lastLogin:
type: string
createdAt:
type: string
updatedAt:
type: string
photo:
type: string
professionalSummary:
type: string
receiverRole:
description:
type: string
title:
languages:
type: array
items:
type: string
receiver:
type: string
proficiencyLevel:
receiverRole:
type: string
price:
type: integer
status:
type: number
title:
type: string
needAction:
status:
type: string
availableQuizzes:
type: array
items:
type: string
finishedQuizzes:
type: array
items:
type: string
enum:
- pending
- active
- declined
- closed
sections:
type: array
items:
Expand Down Expand Up @@ -501,7 +328,14 @@ definitions:
type: string
format: date-time
default: null
needAction:
type: string
enum:
- student
- tutor
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
Loading
Loading