-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlos Bouzón García
committed
Jun 4, 2020
1 parent
30b99fd
commit 8e0277e
Showing
5 changed files
with
350 additions
and
24,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
################## | ||
# REQUEST # | ||
################## | ||
PartialUpdateServiceAudienceTemplatePayload: | ||
type: object | ||
properties: | ||
responder: | ||
$ref: "#/definitions/ServiceAudienceTemplateResponder" | ||
stakeholder: | ||
$ref: "#/definitions/ServiceAudienceTemplateStakeholder" | ||
|
||
################## | ||
# RESPONSE # | ||
################## | ||
GetServiceAudienceTemplateResponse: | ||
type: object | ||
allOf: | ||
- $ref: "#/definitions/BaseResponse" | ||
- properties: | ||
data: | ||
$ref: "#/definitions/ServiceAudienceTemplate" | ||
|
||
PartialUpdateServiceAudienceTemplateResponse: | ||
type: object | ||
allOf: | ||
- $ref: "#/definitions/BaseResponse" | ||
|
||
################## | ||
# MODEL # | ||
################## | ||
ServiceAudienceTemplate: | ||
type: object | ||
properties: | ||
responder: | ||
$ref: "#/definitions/ServiceAudienceTemplateResponder" | ||
stakeholder: | ||
$ref: "#/definitions/ServiceAudienceTemplateStakeholder" | ||
|
||
ServiceAudienceTemplateResponder: | ||
type: object | ||
properties: | ||
teams: | ||
type: array | ||
items: | ||
type: string | ||
individuals: | ||
type: array | ||
items: | ||
type: string | ||
|
||
ServiceAudienceTemplateStakeholder: | ||
type: object | ||
properties: | ||
individuals: | ||
type: array | ||
items: | ||
type: string | ||
conditionMatchType: | ||
type: string | ||
description: Match type for given conditions. Possible values are [match-all-conditions, match-any-condition]. Default value is [match-any-condition]. | ||
enum: | ||
- match-all-conditions | ||
- match-any-condition | ||
conditions: | ||
type: array | ||
items: | ||
$ref: "#/definitions/ServiceAudienceTemplateCondition" | ||
|
||
ServiceAudienceTemplateCondition: | ||
type: object | ||
required: | ||
- matchField | ||
- value | ||
properties: | ||
matchField: | ||
type: string | ||
description: Field to be matched for users. Possible values are [country, state, city, zipCode, line, tag, customProperty]. customProperty can be used while actionType is keyValue. | ||
enum: | ||
- country | ||
- state | ||
- city | ||
- zipCode | ||
- line | ||
- tag | ||
- customProperty | ||
key: | ||
type: string | ||
description: If matchField is customProperty, key must be given. | ||
value: | ||
type: string | ||
description: Value to be check for the match field. |
Oops, something went wrong.