Skip to content

Commit 914f2e3

Browse files
author
PureCloud Jenkins
committed
203.0.0
1 parent ef94d6f commit 914f2e3

481 files changed

Lines changed: 7164 additions & 7208 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/.openapi-generator/FILES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ PureCloudPlatformClientV2/models/callback_media_settings.py
599599
PureCloudPlatformClientV2/models/callheader.py
600600
PureCloudPlatformClientV2/models/callmessage.py
601601
PureCloudPlatformClientV2/models/campaign.py
602+
PureCloudPlatformClientV2/models/campaign_business_category_metrics.py
602603
PureCloudPlatformClientV2/models/campaign_diagnostics.py
603604
PureCloudPlatformClientV2/models/campaign_division_view.py
604605
PureCloudPlatformClientV2/models/campaign_division_view_listing.py
@@ -2122,6 +2123,7 @@ PureCloudPlatformClientV2/models/journey_view_element_attributes.py
21222123
PureCloudPlatformClientV2/models/journey_view_element_filter.py
21232124
PureCloudPlatformClientV2/models/journey_view_element_filter_predicate.py
21242125
PureCloudPlatformClientV2/models/journey_view_job.py
2126+
PureCloudPlatformClientV2/models/journey_view_job_listing.py
21252127
PureCloudPlatformClientV2/models/journey_view_link.py
21262128
PureCloudPlatformClientV2/models/journey_view_link_time_constraint.py
21272129
PureCloudPlatformClientV2/models/journey_view_listing.py
@@ -5031,6 +5033,7 @@ docs/CallbackMediaSettings.md
50315033
docs/Callheader.md
50325034
docs/Callmessage.md
50335035
docs/Campaign.md
5036+
docs/CampaignBusinessCategoryMetrics.md
50345037
docs/CampaignDiagnostics.md
50355038
docs/CampaignDivisionView.md
50365039
docs/CampaignDivisionViewListing.md
@@ -6596,6 +6599,7 @@ docs/JourneyViewElementAttributes.md
65966599
docs/JourneyViewElementFilter.md
65976600
docs/JourneyViewElementFilterPredicate.md
65986601
docs/JourneyViewJob.md
6602+
docs/JourneyViewJobListing.md
65996603
docs/JourneyViewLink.md
66006604
docs/JourneyViewLinkTimeConstraint.md
66016605
docs/JourneyViewListing.md
@@ -9848,6 +9852,7 @@ docs/get_journey_view_version_jobs_latest-example.txt
98489852
docs/get_journey_views-example.txt
98499853
docs/get_journey_views_eventdefinition-example.txt
98509854
docs/get_journey_views_eventdefinitions-example.txt
9855+
docs/get_journey_views_jobs-example.txt
98519856
docs/get_knowledge_guest_session_categories-example.txt
98529857
docs/get_knowledge_guest_session_document-example.txt
98539858
docs/get_knowledge_guest_session_documents-example.txt

build/APIData.json

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19239,6 +19239,35 @@
1923919239
"return": "JourneyEventDefinitionListing",
1924019240
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.JourneyApi();\n\ntry:\n # Get a list of Event Definitions\n api_response = api_instance.get_journey_views_eventdefinitions()\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling JourneyApi->get_journey_views_eventdefinitions: %s\\n\" % e)"
1924119241
},
19242+
"get_journey_views_jobs": {
19243+
"operationId": "get_journey_views_jobs",
19244+
"functionName": "get_journey_views_jobs",
19245+
"signature": "get_journey_views_jobs(page_number, page_size, interval, statuses)",
19246+
"parameters": [
19247+
{
19248+
"name": "page_number",
19249+
"type": "int",
19250+
"required": "false"
19251+
},
19252+
{
19253+
"name": "page_size",
19254+
"type": "int",
19255+
"required": "false"
19256+
},
19257+
{
19258+
"name": "interval",
19259+
"type": "str",
19260+
"required": "false"
19261+
},
19262+
{
19263+
"name": "statuses",
19264+
"type": "str",
19265+
"required": "false"
19266+
}
19267+
],
19268+
"return": "JourneyViewJobListing",
19269+
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.JourneyApi();\npage_number = 1 # int | The number of the page to return (optional) (default to 1)\npage_size = 25 # int | Max number of entities to return (optional) (default to 25)\ninterval = '2023-07-17T00:00:00Z/2023-07-18T00:00:00Z' # str | An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval. (optional)\nstatuses = 'statuses=Accepted,Executing,Complete,Failed' # str | Job statuses to filter for (optional)\n\ntry:\n # Get the jobs for an organization.\n api_response = api_instance.get_journey_views_jobs(page_number=page_number, page_size=page_size, interval=interval, statuses=statuses)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling JourneyApi->get_journey_views_jobs: %s\\n\" % e)"
19270+
},
1924219271
"patch_journey_actionmap": {
1924319272
"operationId": "patch_journey_actionmap",
1924419273
"functionName": "patch_journey_actionmap",
@@ -30000,7 +30029,7 @@
3000030029
"get_quality_evaluations_query": {
3000130030
"operationId": "get_quality_evaluations_query",
3000230031
"functionName": "get_quality_evaluations_query",
30003-
"signature": "get_quality_evaluations_query(page_size, page_number, sort_by, expand, next_page, previous_page, conversation_id, agent_user_id, agent_team_id, evaluator_user_id, assignee_user_id, queue_id, start_time, end_time, form_context_id, evaluation_state, is_released, agent_has_read, expand_answer_total_scores, maximum, sort_order)",
30032+
"signature": "get_quality_evaluations_query(page_size, page_number, expand, previous_page, conversation_id, agent_user_id, agent_team_id, evaluator_user_id, assignee_user_id, queue_id, start_time, end_time, form_context_id, evaluation_state, is_released, agent_has_read, expand_answer_total_scores, maximum, sort_order)",
3000430033
"parameters": [
3000530034
{
3000630035
"name": "page_size",
@@ -30012,21 +30041,11 @@
3001230041
"type": "int",
3001330042
"required": "false"
3001430043
},
30015-
{
30016-
"name": "sort_by",
30017-
"type": "str",
30018-
"required": "false"
30019-
},
3002030044
{
3002130045
"name": "expand",
3002230046
"type": "list[str]",
3002330047
"required": "false"
3002430048
},
30025-
{
30026-
"name": "next_page",
30027-
"type": "str",
30028-
"required": "false"
30029-
},
3003030049
{
3003130050
"name": "previous_page",
3003230051
"type": "str",
@@ -30109,7 +30128,7 @@
3010930128
}
3011030129
],
3011130130
"return": "EvaluationEntityListing",
30112-
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.QualityApi();\npage_size = 25 # int | The total page size requested (optional) (default to 25)\npage_number = 1 # int | The page number requested (optional) (default to 1)\nsort_by = 'sort_by_example' # str | NOTE: Does not work when querying evaluations (optional)\nexpand = ['expand_example'] # list[str] | variable name requested by expand list (optional)\nnext_page = 'next_page_example' # str | NOTE: Does not work when querying evaluations (optional)\nprevious_page = 'previous_page_example' # str | Previous page token (optional)\nconversation_id = 'conversation_id_example' # str | conversationId specified (optional)\nagent_user_id = 'agent_user_id_example' # str | user id of the agent (optional)\nagent_team_id = 'agent_team_id_example' # str | team id of the agent (optional)\nevaluator_user_id = 'evaluator_user_id_example' # str | evaluator user id (optional)\nassignee_user_id = 'assignee_user_id_example' # str | assignee user id (optional)\nqueue_id = 'queue_id_example' # str | queue id (optional)\nstart_time = 'start_time_example' # str | start time of the evaluation query (optional)\nend_time = 'end_time_example' # str | end time of the evaluation query (optional)\nform_context_id = 'form_context_id_example' # str | shared id between form versions (optional)\nevaluation_state = ['evaluation_state_example'] # list[str] | (optional)\nis_released = True # bool | the evaluation has been released (optional)\nagent_has_read = True # bool | agent has the evaluation (optional)\nexpand_answer_total_scores = True # bool | get the total scores for evaluations. NOTE: The answers will only be populated if this parameter is set to true in the request. (optional)\nmaximum = 56 # int | the maximum number of results to return (optional)\nsort_order = 'sort_order_example' # str | NOTE: Does not work when conversationId is supplied. (optional)\n\ntry:\n # Queries Evaluations and returns a paged list\n api_response = api_instance.get_quality_evaluations_query(page_size=page_size, page_number=page_number, sort_by=sort_by, expand=expand, next_page=next_page, previous_page=previous_page, conversation_id=conversation_id, agent_user_id=agent_user_id, agent_team_id=agent_team_id, evaluator_user_id=evaluator_user_id, assignee_user_id=assignee_user_id, queue_id=queue_id, start_time=start_time, end_time=end_time, form_context_id=form_context_id, evaluation_state=evaluation_state, is_released=is_released, agent_has_read=agent_has_read, expand_answer_total_scores=expand_answer_total_scores, maximum=maximum, sort_order=sort_order)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling QualityApi->get_quality_evaluations_query: %s\\n\" % e)"
30131+
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.QualityApi();\npage_size = 25 # int | The total page size requested (optional) (default to 25)\npage_number = 1 # int | The page number requested (optional) (default to 1)\nexpand = ['expand_example'] # list[str] | variable name requested by expand list (optional)\nprevious_page = 'previous_page_example' # str | Previous page token (optional)\nconversation_id = 'conversation_id_example' # str | conversationId specified (optional)\nagent_user_id = 'agent_user_id_example' # str | user id of the agent (optional)\nagent_team_id = 'agent_team_id_example' # str | team id of the agent (optional)\nevaluator_user_id = 'evaluator_user_id_example' # str | evaluator user id (optional)\nassignee_user_id = 'assignee_user_id_example' # str | assignee user id (optional)\nqueue_id = 'queue_id_example' # str | queue id (optional)\nstart_time = 'start_time_example' # str | start time of the evaluation query (optional)\nend_time = 'end_time_example' # str | end time of the evaluation query (optional)\nform_context_id = 'form_context_id_example' # str | shared id between form versions (optional)\nevaluation_state = ['evaluation_state_example'] # list[str] | (optional)\nis_released = True # bool | the evaluation has been released (optional)\nagent_has_read = True # bool | agent has the evaluation (optional)\nexpand_answer_total_scores = True # bool | get the total scores for evaluations. NOTE: The answers will only be populated if this parameter is set to true in the request. (optional)\nmaximum = 56 # int | the maximum number of results to return (optional)\nsort_order = 'sort_order_example' # str | NOTE: Does not work when conversationId is supplied. (optional)\n\ntry:\n # Queries Evaluations and returns a paged list\n api_response = api_instance.get_quality_evaluations_query(page_size=page_size, page_number=page_number, expand=expand, previous_page=previous_page, conversation_id=conversation_id, agent_user_id=agent_user_id, agent_team_id=agent_team_id, evaluator_user_id=evaluator_user_id, assignee_user_id=assignee_user_id, queue_id=queue_id, start_time=start_time, end_time=end_time, form_context_id=form_context_id, evaluation_state=evaluation_state, is_released=is_released, agent_has_read=agent_has_read, expand_answer_total_scores=expand_answer_total_scores, maximum=maximum, sort_order=sort_order)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling QualityApi->get_quality_evaluations_query: %s\\n\" % e)"
3011330132
},
3011430133
"get_quality_evaluators_activity": {
3011530134
"operationId": "get_quality_evaluators_activity",

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@
520520
from .models.callheader import Callheader
521521
from .models.callmessage import Callmessage
522522
from .models.campaign import Campaign
523+
from .models.campaign_business_category_metrics import CampaignBusinessCategoryMetrics
523524
from .models.campaign_diagnostics import CampaignDiagnostics
524525
from .models.campaign_division_view import CampaignDivisionView
525526
from .models.campaign_division_view_listing import CampaignDivisionViewListing
@@ -2043,6 +2044,7 @@
20432044
from .models.journey_view_element_filter import JourneyViewElementFilter
20442045
from .models.journey_view_element_filter_predicate import JourneyViewElementFilterPredicate
20452046
from .models.journey_view_job import JourneyViewJob
2047+
from .models.journey_view_job_listing import JourneyViewJobListing
20462048
from .models.journey_view_link import JourneyViewLink
20472049
from .models.journey_view_link_time_constraint import JourneyViewLinkTimeConstraint
20482050
from .models.journey_view_listing import JourneyViewListing

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def __call_api(self, resource_path, method,
357357
header_params['Cookie'] = self.cookie
358358
if header_params:
359359
header_params = self.sanitize_for_serialization(header_params)
360-
header_params['purecloud-sdk'] = '202.0.0'
360+
header_params['purecloud-sdk'] = '203.0.0'
361361

362362
# path parameters
363363
if path_params:

build/PureCloudPlatformClientV2/apis/journey_api.py

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
from ..models import JourneySegmentRequest
6969
from ..models import JourneyView
7070
from ..models import JourneyViewJob
71+
from ..models import JourneyViewJobListing
7172
from ..models import JourneyViewListing
7273
from ..models import JourneyViewResult
7374
from ..models import Label
@@ -3127,6 +3128,91 @@ def get_journey_views_eventdefinitions(self, **kwargs) -> 'JourneyEventDefinitio
31273128
callback=params.get('callback'))
31283129
return response
31293130

3131+
def get_journey_views_jobs(self, **kwargs) -> 'JourneyViewJobListing':
3132+
"""
3133+
Get the jobs for an organization.
3134+
3135+
get_journey_views_jobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3136+
3137+
This method makes a synchronous HTTP request by default. To make an
3138+
asynchronous HTTP request, please define a `callback` function
3139+
to be invoked when receiving the response.
3140+
>>> def callback_function(response):
3141+
>>> pprint(response)
3142+
>>>
3143+
>>> thread = api.get_journey_views_jobs(callback=callback_function)
3144+
3145+
:param callback function: The callback function
3146+
for asynchronous request. (optional)
3147+
:param int page_number: The number of the page to return
3148+
:param int page_size: Max number of entities to return
3149+
:param str interval: An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
3150+
:param str statuses: Job statuses to filter for
3151+
:return: JourneyViewJobListing
3152+
If the method is called asynchronously,
3153+
returns the request thread.
3154+
"""
3155+
3156+
all_params = ['page_number', 'page_size', 'interval', 'statuses']
3157+
all_params.append('callback')
3158+
3159+
params = locals()
3160+
for key, val in iteritems(params['kwargs']):
3161+
if key not in all_params:
3162+
raise TypeError(
3163+
"Got an unexpected keyword argument '%s'"
3164+
" to method get_journey_views_jobs" % key
3165+
)
3166+
params[key] = val
3167+
del params['kwargs']
3168+
3169+
3170+
3171+
resource_path = '/api/v2/journey/views/jobs'.replace('{format}', 'json')
3172+
path_params = {}
3173+
3174+
query_params = {}
3175+
if 'page_number' in params:
3176+
query_params['pageNumber'] = params['page_number']
3177+
if 'page_size' in params:
3178+
query_params['pageSize'] = params['page_size']
3179+
if 'interval' in params:
3180+
query_params['interval'] = params['interval']
3181+
if 'statuses' in params:
3182+
query_params['statuses'] = params['statuses']
3183+
3184+
header_params = {}
3185+
3186+
form_params = []
3187+
local_var_files = {}
3188+
3189+
body_params = None
3190+
3191+
# HTTP header `Accept`
3192+
header_params['Accept'] = self.api_client.\
3193+
select_header_accept(['application/json'])
3194+
if not header_params['Accept']:
3195+
del header_params['Accept']
3196+
3197+
# HTTP header `Content-Type`
3198+
header_params['Content-Type'] = self.api_client.\
3199+
select_header_content_type(['application/json'])
3200+
3201+
# Authentication setting
3202+
auth_settings = ['PureCloud OAuth']
3203+
3204+
response = self.api_client.call_api(resource_path, 'GET',
3205+
path_params,
3206+
query_params,
3207+
header_params,
3208+
body=body_params,
3209+
post_params=form_params,
3210+
files=local_var_files,
3211+
response_type='JourneyViewJobListing',
3212+
auth_settings=auth_settings,
3213+
callback=params.get('callback'))
3214+
return response
3215+
31303216
def patch_journey_actionmap(self, action_map_id: str, **kwargs) -> 'ActionMap':
31313217
"""
31323218
Update single action map.

build/PureCloudPlatformClientV2/apis/quality_api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,9 +1469,7 @@ def get_quality_evaluations_query(self, **kwargs) -> 'EvaluationEntityListing':
14691469
for asynchronous request. (optional)
14701470
:param int page_size: The total page size requested
14711471
:param int page_number: The page number requested
1472-
:param str sort_by: NOTE: Does not work when querying evaluations
14731472
:param list[str] expand: variable name requested by expand list
1474-
:param str next_page: NOTE: Does not work when querying evaluations
14751473
:param str previous_page: Previous page token
14761474
:param str conversation_id: conversationId specified
14771475
:param str agent_user_id: user id of the agent
@@ -1493,7 +1491,7 @@ def get_quality_evaluations_query(self, **kwargs) -> 'EvaluationEntityListing':
14931491
returns the request thread.
14941492
"""
14951493

1496-
all_params = ['page_size', 'page_number', 'sort_by', 'expand', 'next_page', 'previous_page', 'conversation_id', 'agent_user_id', 'agent_team_id', 'evaluator_user_id', 'assignee_user_id', 'queue_id', 'start_time', 'end_time', 'form_context_id', 'evaluation_state', 'is_released', 'agent_has_read', 'expand_answer_total_scores', 'maximum', 'sort_order']
1494+
all_params = ['page_size', 'page_number', 'expand', 'previous_page', 'conversation_id', 'agent_user_id', 'agent_team_id', 'evaluator_user_id', 'assignee_user_id', 'queue_id', 'start_time', 'end_time', 'form_context_id', 'evaluation_state', 'is_released', 'agent_has_read', 'expand_answer_total_scores', 'maximum', 'sort_order']
14971495
all_params.append('callback')
14981496

14991497
params = locals()
@@ -1516,12 +1514,8 @@ def get_quality_evaluations_query(self, **kwargs) -> 'EvaluationEntityListing':
15161514
query_params['pageSize'] = params['page_size']
15171515
if 'page_number' in params:
15181516
query_params['pageNumber'] = params['page_number']
1519-
if 'sort_by' in params:
1520-
query_params['sortBy'] = params['sort_by']
15211517
if 'expand' in params:
15221518
query_params['expand'] = params['expand']
1523-
if 'next_page' in params:
1524-
query_params['nextPage'] = params['next_page']
15251519
if 'previous_page' in params:
15261520
query_params['previousPage'] = params['previous_page']
15271521
if 'conversation_id' in params:

0 commit comments

Comments
 (0)