Skip to content

Commit ee603fc

Browse files
author
PureCloud Jenkins
committed
45.0.0
1 parent 6b3f8f7 commit ee603fc

File tree

371 files changed

+6006
-3777
lines changed

Some content is hidden

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

371 files changed

+6006
-3777
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@
419419
from .models.division import Division
420420
from .models.dnc_list import DncList
421421
from .models.dnc_list_create import DncListCreate
422+
from .models.dnc_list_division_view import DncListDivisionView
423+
from .models.dnc_list_division_view_listing import DncListDivisionViewListing
422424
from .models.dnc_list_entity_listing import DncListEntityListing
423425
from .models.dnc_list_notification import DncListNotification
424426
from .models.dnc_list_notification_import_status import DncListNotificationImportStatus
@@ -790,11 +792,13 @@
790792
from .models.message_details import MessageDetails
791793
from .models.message_info import MessageInfo
792794
from .models.message_media import MessageMedia
795+
from .models.message_media_attachment import MessageMediaAttachment
793796
from .models.message_media_data import MessageMediaData
794797
from .models.message_media_participant import MessageMediaParticipant
795798
from .models.message_media_policy import MessageMediaPolicy
796799
from .models.message_media_policy_conditions import MessageMediaPolicyConditions
797800
from .models.message_sticker import MessageSticker
801+
from .models.message_sticker_attachment import MessageStickerAttachment
798802
from .models.messaging_sticker import MessagingSticker
799803
from .models.messaging_sticker_entity_listing import MessagingStickerEntityListing
800804
from .models.meta_data import MetaData

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __call_api(self, resource_path, method,
112112
header_params['Cookie'] = self.cookie
113113
if header_params:
114114
header_params = self.sanitize_for_serialization(header_params)
115-
header_params['purecloud-sdk'] = '44.0.1'
115+
header_params['purecloud-sdk'] = '45.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,81 @@ def get_analytics_conversation_details(self, conversation_id, **kwargs):
202202
callback=params.get('callback'))
203203
return response
204204

205+
def get_analytics_conversations_details(self, **kwargs):
206+
"""
207+
Gets multiple conversations by id
208+
209+
210+
This method makes a synchronous HTTP request by default. To make an
211+
asynchronous HTTP request, please define a `callback` function
212+
to be invoked when receiving the response.
213+
>>> def callback_function(response):
214+
>>> pprint(response)
215+
>>>
216+
>>> thread = api.get_analytics_conversations_details(callback=callback_function)
217+
218+
:param callback function: The callback function
219+
for asynchronous request. (optional)
220+
:param list[str] id: Comma-separated conversation ids
221+
:return: AnalyticsConversation
222+
If the method is called asynchronously,
223+
returns the request thread.
224+
"""
225+
226+
all_params = ['id']
227+
all_params.append('callback')
228+
229+
params = locals()
230+
for key, val in iteritems(params['kwargs']):
231+
if key not in all_params:
232+
raise TypeError(
233+
"Got an unexpected keyword argument '%s'"
234+
" to method get_analytics_conversations_details" % key
235+
)
236+
params[key] = val
237+
del params['kwargs']
238+
239+
240+
241+
resource_path = '/api/v2/analytics/conversations/details'.replace('{format}', 'json')
242+
path_params = {}
243+
244+
query_params = {}
245+
if 'id' in params:
246+
query_params['id'] = params['id']
247+
248+
header_params = {}
249+
250+
form_params = []
251+
local_var_files = {}
252+
253+
body_params = None
254+
255+
# HTTP header `Accept`
256+
header_params['Accept'] = self.api_client.\
257+
select_header_accept(['application/json'])
258+
if not header_params['Accept']:
259+
del header_params['Accept']
260+
261+
# HTTP header `Content-Type`
262+
header_params['Content-Type'] = self.api_client.\
263+
select_header_content_type(['application/json'])
264+
265+
# Authentication setting
266+
auth_settings = ['PureCloud Auth']
267+
268+
response = self.api_client.call_api(resource_path, 'GET',
269+
path_params,
270+
query_params,
271+
header_params,
272+
body=body_params,
273+
post_params=form_params,
274+
files=local_var_files,
275+
response_type='AnalyticsConversation',
276+
auth_settings=auth_settings,
277+
callback=params.get('callback'))
278+
return response
279+
205280
def get_analytics_reporting_exports(self, **kwargs):
206281
"""
207282
Get all view export requests for a user

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3856,7 +3856,7 @@ def get_flow_versions(self, flow_id, **kwargs):
38563856
callback=params.get('callback'))
38573857
return response
38583858

3859-
def get_flows(self, type, **kwargs):
3859+
def get_flows(self, **kwargs):
38603860
"""
38613861
Get a pageable list of flows, filtered by query parameters
38623862
Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated.
@@ -3867,11 +3867,11 @@ def get_flows(self, type, **kwargs):
38673867
>>> def callback_function(response):
38683868
>>> pprint(response)
38693869
>>>
3870-
>>> thread = api.get_flows(type, callback=callback_function)
3870+
>>> thread = api.get_flows(callback=callback_function)
38713871
38723872
:param callback function: The callback function
38733873
for asynchronous request. (optional)
3874-
:param str type: Type (required)
3874+
:param list[str] type: Type
38753875
:param int page_number: Page number
38763876
:param int page_size: Page size
38773877
:param str sort_by: Sort by
@@ -3907,9 +3907,6 @@ def get_flows(self, type, **kwargs):
39073907
params[key] = val
39083908
del params['kwargs']
39093909

3910-
# verify the required parameter 'type' is set
3911-
if ('type' not in params) or (params['type'] is None):
3912-
raise ValueError("Missing the required parameter `type` when calling `get_flows`")
39133910

39143911

39153912
resource_path = '/api/v2/flows'.replace('{format}', 'json')
@@ -4327,7 +4324,7 @@ def get_flows_datatables(self, **kwargs):
43274324
callback=params.get('callback'))
43284325
return response
43294326

4330-
def get_flows_divisionviews(self, type, **kwargs):
4327+
def get_flows_divisionviews(self, **kwargs):
43314328
"""
43324329
Get a pageable list of basic flow information objects filterable by query parameters.
43334330
This returns a simplified version of /flow consisting of name and type.
@@ -4338,11 +4335,11 @@ def get_flows_divisionviews(self, type, **kwargs):
43384335
>>> def callback_function(response):
43394336
>>> pprint(response)
43404337
>>>
4341-
>>> thread = api.get_flows_divisionviews(type, callback=callback_function)
4338+
>>> thread = api.get_flows_divisionviews(callback=callback_function)
43424339
43434340
:param callback function: The callback function
43444341
for asynchronous request. (optional)
4345-
:param str type: Type (required)
4342+
:param list[str] type: Type
43464343
:param int page_number: Page number
43474344
:param int page_size: Page size
43484345
:param str sort_by: Sort by
@@ -4371,9 +4368,6 @@ def get_flows_divisionviews(self, type, **kwargs):
43714368
params[key] = val
43724369
del params['kwargs']
43734370

4374-
# verify the required parameter 'type' is set
4375-
if ('type' not in params) or (params['type'] is None):
4376-
raise ValueError("Missing the required parameter `type` when calling `get_flows_divisionviews`")
43774371

43784372

43794373
resource_path = '/api/v2/flows/divisionviews'.replace('{format}', 'json')

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,81 @@ def get_analytics_conversation_details(self, conversation_id, **kwargs):
382382
callback=params.get('callback'))
383383
return response
384384

385+
def get_analytics_conversations_details(self, **kwargs):
386+
"""
387+
Gets multiple conversations by id
388+
389+
390+
This method makes a synchronous HTTP request by default. To make an
391+
asynchronous HTTP request, please define a `callback` function
392+
to be invoked when receiving the response.
393+
>>> def callback_function(response):
394+
>>> pprint(response)
395+
>>>
396+
>>> thread = api.get_analytics_conversations_details(callback=callback_function)
397+
398+
:param callback function: The callback function
399+
for asynchronous request. (optional)
400+
:param list[str] id: Comma-separated conversation ids
401+
:return: AnalyticsConversation
402+
If the method is called asynchronously,
403+
returns the request thread.
404+
"""
405+
406+
all_params = ['id']
407+
all_params.append('callback')
408+
409+
params = locals()
410+
for key, val in iteritems(params['kwargs']):
411+
if key not in all_params:
412+
raise TypeError(
413+
"Got an unexpected keyword argument '%s'"
414+
" to method get_analytics_conversations_details" % key
415+
)
416+
params[key] = val
417+
del params['kwargs']
418+
419+
420+
421+
resource_path = '/api/v2/analytics/conversations/details'.replace('{format}', 'json')
422+
path_params = {}
423+
424+
query_params = {}
425+
if 'id' in params:
426+
query_params['id'] = params['id']
427+
428+
header_params = {}
429+
430+
form_params = []
431+
local_var_files = {}
432+
433+
body_params = None
434+
435+
# HTTP header `Accept`
436+
header_params['Accept'] = self.api_client.\
437+
select_header_accept(['application/json'])
438+
if not header_params['Accept']:
439+
del header_params['Accept']
440+
441+
# HTTP header `Content-Type`
442+
header_params['Content-Type'] = self.api_client.\
443+
select_header_content_type(['application/json'])
444+
445+
# Authentication setting
446+
auth_settings = ['PureCloud Auth']
447+
448+
response = self.api_client.call_api(resource_path, 'GET',
449+
path_params,
450+
query_params,
451+
header_params,
452+
body=body_params,
453+
post_params=form_params,
454+
files=local_var_files,
455+
response_type='AnalyticsConversation',
456+
auth_settings=auth_settings,
457+
callback=params.get('callback'))
458+
return response
459+
385460
def get_conversation(self, conversation_id, **kwargs):
386461
"""
387462
Get conversation

0 commit comments

Comments
 (0)