Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro13Silva13 authored Jan 2, 2025
2 parents 743f529 + 0ef38b8 commit f84d969
Show file tree
Hide file tree
Showing 292 changed files with 5,157 additions and 8,147 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
push_to_registry:
strategy:
matrix:
registry: [ "docker.pkg.github.com", "ghcr.io" ]
registry: [ "ghcr.io" ]
needs: [ test ]
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
Expand Down
126 changes: 49 additions & 77 deletions api/userservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,50 @@ paths:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]
/users/askers/session/new:
post:
tags:
- user-controller
summary: 'Register a new session for an existing asker [Authorization: Role: user]'
operationId: registerNewSession
parameters:
- name: RCToken
in: header
required: true
schema:
type: string
- name: RCUserId
in: header
required: true
schema:
type: string
requestBody:
content:
'application/json':
schema:
$ref: '#/components/schemas/NewRegistrationDto'
required: true
responses:
201:
description: CREATED - session was registered successfully
content:
'application/json':
schema:
$ref: '#/components/schemas/NewRegistrationResponseDto'
400:
description: BAD REQUEST - invalid/incomplete request or body object
403:
description: FORBIDDEN - no/invalid role/authorization or CSRF token
409:
description: CONFLICT - user is already registered for provided topic
content:
'application/json':
schema:
$ref: '#/components/schemas/NewRegistrationResponseDto'
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]
/users/askers/consultingType/new:
post:
tags:
Expand Down Expand Up @@ -249,9 +293,9 @@ paths:
get:
tags:
- user-controller
summary: 'Returns sessions for given RocketChat group or feedback group IDs.
summary: 'Returns sessions for given RocketChat group IDs.
[Authorization: Role: user, consultant]'
operationId: getSessionsForGroupOrFeedbackGroupIds
operationId: getSessionsForGroupIds
parameters:
- name: RCToken
in: header
Expand Down Expand Up @@ -877,33 +921,6 @@ paths:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]
/users/mails/messages/feedback/new:
post:
tags:
- user-controller
summary: 'Sends a notification e-mail that a new feedback message/answer has
been written [Authorization: Role: consultant with authority for feedback
chat]'
operationId: sendNewFeedbackMessageNotification
requestBody:
content:
'application/json':
schema:
$ref: '#/components/schemas/NewMessageNotificationDTO'
required: true
responses:
200:
description: successful operation
400:
description: BAD REQUEST - invalid/incomplete request or body object
401:
description: UNAUTHORIZED - invalid token
409:
description: CONFLICT - no user e-mail address in db given
500:
description: INTERNAL SERVER ERROR - server encountered unexpected condition
security:
- Bearer: [ ]
/users/mails/reassignment:
post:
tags:
Expand Down Expand Up @@ -2058,13 +2075,6 @@ components:
type: string
example: xGklslk2JJKK
description: Rocket.Chat room ID
feedbackGroupId:
type: string
example: 8ertjlasdKJA
description: Rocket.Chat feedback room ID
isPeerChat:
type: boolean
example: false
askerRcId:
type: string
example: 8ertjlasdKJA
Expand All @@ -2082,9 +2092,6 @@ components:
messagesRead:
type: boolean
example: false
feedbackRead:
type: boolean
example: true
isTeamSession:
type: boolean
example: false
Expand Down Expand Up @@ -2137,45 +2144,13 @@ components:
AliasMessageDTO:
type: object
properties:
forwardMessageDTO:
$ref: '#/components/schemas/ForwardMessageDTO'
videoCallMessageDTO:
$ref: '#/components/schemas/VideoCallMessageDTO'
messageType:
$ref: '#/components/schemas/MessageType'
content:
type: string

ForwardMessageDTO:
type: object
required:
- message
- timestamp
- username
- rcUserId
properties:
message:
type: string
example: "Lorem ipsum dolor sit amet, consetetur..."
timestamp:
type: string
description: "Full qualified timestamp"
example: "2018-11-15T09:33:00.057Z"
username:
type: string
example: "asker23"
displayName:
type: string
rcUserId:
type: string
example: "ag89h3tjkerg94t"
t:
type: string
org:
type: string
example: "Lorem ipsum dolor sit amet, consetetur..."
description: "Legacy fallback for stringified messages"

VideoCallMessageDTO:
type: object
required:
Expand Down Expand Up @@ -2204,7 +2179,6 @@ components:
- "APPOINTMENT_RESCHEDULED"
- "FURTHER_STEPS"
- "UPDATE_SESSION_DATA"
- "FORWARD"
- "VIDEOCALL"
- "FINISHED_CONVERSATION"
- "USER_MUTED"
Expand Down Expand Up @@ -2248,10 +2222,6 @@ components:
type: string
example: xGklslk2JJKK
description: Rocket.Chat room ID
feedbackGroupId:
type: string
example: 8ertjlasdKJA
description: Rocket.Chat feedback room ID
consultantId:
type: string
example: 926b9777-4eef-443d-925a-4aa534797bd7
Expand Down Expand Up @@ -2933,6 +2903,9 @@ components:
type: integer
format: int64
example: [ 12,15 ]
mainTopicId:
type: integer
example: 15
counsellingRelation:
type: string
example: 'SELF_COUNSELLING'
Expand Down Expand Up @@ -3117,7 +3090,6 @@ components:
enum:
- DAILY_ENQUIRY
- NEW_CHAT_MESSAGE_FROM_ADVICE_SEEKER
- NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER

securitySchemes:
Bearer:
Expand Down
Loading

0 comments on commit f84d969

Please sign in to comment.