feat: создание заявки на событие

This commit is contained in:
kirill
2023-05-23 13:59:29 +06:00
parent 2d8b1de4b7
commit 246affe923
+468 -1
View File
@@ -607,7 +607,6 @@ paths:
500:
description: Server Error
/postcard/user-view:
get:
tags:
@@ -937,6 +936,283 @@ paths:
500:
description: Server Error.
/calendar-event/view:
get:
tags:
- calendarEvent
summary: Details about calendar event.
operationId: actionView
consumes:
- application/json
produces:
- application/json
parameters:
- name: id
in: query
description: Calendar event item ID.
type: string
- name: parent_id
in: query
description: Calendar event parent item ID.
type: string
- name: rec_date
in: query
description: Calendar event recurring date.
type: string
format: date
responses:
200:
description: Calendar event details.
schema:
properties:
calendarEvent:
$ref: '#/definitions/calendarEvent'
calendarEventUser:
$ref: '#/definitions/calendarEventUser'
calendarEventBid:
$ref: '#/definitions/calendarEventBid'
hasCalendarEventBid:
type: boolean
canCreateCalendarEventBid:
type: boolean
400:
description: Bad Request.
401:
description: Unathorized request.
403:
description: Unathorized request.
404:
description: Calendar event not found.
500:
description: Server Error.
/calendar-event:
get:
tags:
- calendarEvent
summary: Calendar event index.
operationId: actionIndex
parameters:
- name: title
in: query
type: string
- name: title_exact
in: query
type: string
- name: start_date_time
in: query
type: string
format: 'date-time'
description: Default current month
- name: end_date_time
in: query
type: string
format: 'date-time'
description: Default current month +3 month
- name: calendar_event_type_id
in: query
type: integer
enum: [1, 2, 3, 4, 5, 6]
description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR
- name: entity_id
in: query
type: integer
- name: calendar_event_entity_item_id
in: query
type: string
format: uuid
- name: user_id
in: query
type: string
format: uuid
- name: visible_to
in: query
description: Visible to user group
type: string
format: uuid
consumes:
- application/json
produces:
- application/json
responses:
200:
description: Calendar event index.
schema:
properties:
data:
type: array
items:
$ref: '#/definitions/calendarEvent'
400:
description: Bad Request.
401:
description: Unathorized request.
403:
description: Unathorized request.
404:
description: Calendar event not found.
500:
description: Server Error.
/calendar-event/my:
get:
tags:
- calendarEvent
summary: Calendar event my.
operationId: actionMy
parameters:
- name: title
in: query
type: string
- name: title_exact
in: query
type: string
- name: start_date_time
in: query
type: string
format: 'date-time'
description: Default current month
- name: end_date_time
in: query
type: string
format: 'date-time'
description: Default current month +3 month
- name: calendar_event_type_id
in: query
type: integer
enum: [1, 2, 3, 4, 5, 6]
description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR
- name: entity_id
in: query
type: integer
- name: calendar_event_entity_item_id
in: query
type: string
format: uuid
- name: visible_to
in: query
description: Visible to user group
type: string
format: uuid
consumes:
- application/json
produces:
- application/json
responses:
200:
description: Calendar event index.
schema:
properties:
data:
type: array
items:
$ref: '#/definitions/calendarEvent'
400:
description: Bad Request.
401:
description: Unathorized request.
403:
description: Unathorized request.
404:
description: Calendar event not found.
500:
description: Server Error.
/calendar-event-request:
post:
tags:
- calendarEventRequest
summary: Calendar event request create.
operationId: actionCreate
parameters:
- in: body
name: body
required: true
schema:
type: object
properties:
calendar_event_id:
type: string
format: uuid
description: Calendar event ID
calendar_event_parent_id:
type: string
format: uuid
description: Calendar event parent ID
calendar_event_rec_date:
type: string
format: date
description: Calendar event recurring date
responses:
200:
description: Returns the calendar event request
schema:
type: object
properties:
success:
type: boolean
message:
type: string
errors:
type: array
items:
type: string
data:
type: object
$ref: '#/definitions/calendarEventBid'
400:
description: Bad Request. Returns a message with the error details.
401:
description: Unathorized request.
403:
description: Unathorized request.
404:
description: Not found. Returns a message with the error details.
500:
description: Server Error.
/calendar-event-request/cancel:
post:
tags:
- calendarEventRequest
summary: Calendar event request cancel.
operationId: actionCreate
parameters:
- in: body
name: body
required: true
schema:
type: object
properties:
id:
type: string
format: uuid
description: Calendar event request ID
responses:
200:
description: Returns the calendar event request
schema:
type: object
properties:
success:
type: boolean
message:
type: string
errors:
type: array
items:
type: string
400:
description: Bad Request. Returns a message with the error details.
401:
description: Unathorized request.
403:
description: Unathorized request.
404:
description: Not found. Returns a message with the error details.
500:
description: Server Error.
definitions:
accountSecret:
@@ -1140,6 +1416,192 @@ definitions:
items:
$ref: '#/definitions/tag'
calendarEvent:
type: object
properties:
id:
type: string
format: uuid
parent_id:
type: string
format: uuid
title:
type: string
description:
type: string
image_id:
type: string
format: uuid
url:
type: string
entity_id:
type: integer
reference_id:
type: string
format: uuid
start_date_time:
type: string
format: 'date-time'
end_date_time:
type: string
format: 'date-time'
day_duration:
type: integer
is_all_day:
type: boolean
is_recurring:
type: boolean
freq:
type: integer
interval:
type: integer
by_month:
type: integer
by_monthday:
type: array
items:
type: integer
by_day:
type: array
items:
type: integer
visible_to:
type: array
items:
type: string
format: uuid
quantity_place:
type: integer
created_user_id:
type: string
format: uuid
updated_user_id:
type: string
format: uuid
created_at:
type: string
format: 'date-time'
updated_at:
type: string
format: 'date-time'
calendar_event_type_id:
type: integer
create_bid_deadline_at:
type: string
format: 'date-time'
start_date:
type: string
format: date
end_date:
type: string
format: date
start_time:
type: string
end_time:
type: string
start_date_time_localized:
type: string
end_date_time_localized:
type: string
created_at_localized:
type: string
create_bid_deadline_at_localized:
type: string
rec_date:
type: string
format: date
rec_date_formatted:
type: string
send_notification_start:
type: boolean
send_notification_before_start_minutes:
type: array
items:
type: integer
duration_seconds:
type: integer
duration_seconds_formatted:
type: string
duration_seconds_formatted_data:
type: object
properties:
hours:
type: integer
minutes:
type: integer
rrule_string:
type: string
type_name:
type: string
is_started:
type: boolean
is_ended:
type: boolean
is_ended_text:
type: string
is_virtual_recurring:
type: boolean
is_deadline_create_bid:
type: boolean
url_view:
type: string
calendarEventUser:
type: object
properties:
id:
type: string
format: uuid
calendar_event_id:
type: string
format: uuid
calendar_event_parent_id:
type: string
format: uuid
user_id:
type: string
format: uuid
status_id:
type: integer
is_visited:
type: boolean
where_from_type_id:
type: integer
calendar_event_rec_date:
type: string
format: date
status_name:
type: string
is_visited_text:
type: string
where_from_type_name:
type: string
calendarEventBid:
type: object
properties:
id:
type: string
format: uuid
calendar_event_id:
type: string
format: uuid
calendar_event_parent_id:
type: string
format: uuid
calendar_event_bid_status_id:
type: integer
calendar_event_rec_date:
type: string
format: date
user_id:
type: string
format: uuid
status_name:
type: string
user_name:
type: string
article:
type: object
properties:
@@ -1207,6 +1669,11 @@ definitions:
name:
type: string
calendarEventTypeId:
type: integer
enum: [1, 2, 3, 4, 5, 6]
description: 1 - CORPORATE, 2 - TRAINING, 3 - MEET, 4 - PUBLIC_HOLIDAY, 5 - EVENT, 6 - WEBINAR
meta:
type: object
properties: