feat: Add APIs to create custom views on the dashboard (#2498)
This commit is contained in:
@@ -28,6 +28,8 @@ contact_inboxes:
|
||||
$ref: ./resource/contact_inboxes.yml
|
||||
contactable_inboxes:
|
||||
$ref: ./resource/contactable_inboxes.yml
|
||||
custom_filter:
|
||||
$ref: ./resource/custom_filter.yml
|
||||
account:
|
||||
$ref: ./resource/account.yml
|
||||
platform_account:
|
||||
@@ -74,6 +76,10 @@ conversation_message_create:
|
||||
team_create_update_payload:
|
||||
$ref: ./request/team/create_update_payload.yml
|
||||
|
||||
# Custom Filter request Payload
|
||||
custom_filter_create_update_payload:
|
||||
$ref: ./request/custom_filter/create_update_payload.yml
|
||||
|
||||
integrations_hook_create_payload:
|
||||
$ref: ./request/integrations/hook_create_payload.yml
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: The name of the custom filter
|
||||
type:
|
||||
type: string
|
||||
enum: ["conversation", "contact", "report"]
|
||||
description: The description about the custom filter
|
||||
query:
|
||||
type: object
|
||||
description: A query that needs to be saved as a custom filter
|
||||
21
swagger/definitions/resource/custom_filter.yml
Normal file
21
swagger/definitions/resource/custom_filter.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: number
|
||||
description: The ID of the custom filter
|
||||
name:
|
||||
type: string
|
||||
description: The name of the custom filter
|
||||
type:
|
||||
type: string
|
||||
enum: ["conversation", "contact", "report"]
|
||||
description: The description about the custom filter
|
||||
query:
|
||||
type: object
|
||||
description: A query that needs to be saved as a custom filter
|
||||
created_at:
|
||||
type: datetime
|
||||
description: The time at which the custom filter was created
|
||||
updated_at:
|
||||
type: datetime
|
||||
description: The time at which the custom filter was updated
|
||||
Reference in New Issue
Block a user