diff --git a/plugins/manage_engine_service_desk/.CHECKSUM b/plugins/manage_engine_service_desk/.CHECKSUM index 99d1396a55..7826d8e2f9 100644 --- a/plugins/manage_engine_service_desk/.CHECKSUM +++ b/plugins/manage_engine_service_desk/.CHECKSUM @@ -1,67 +1,67 @@ { - "spec": "0385a8168c8ee0395be7cf21f0365276", - "manifest": "b09f681332aefb9feeac40898764aea4", - "setup": "c60518a0fc7a5991c5833e29a3981a29", + "spec": "a108414e5e7ca8bde07e1aaafee7d70f", + "manifest": "b822df54b3be4f7defc1a642dd03bb83", + "setup": "421e7037838364662b87938a40ba48d9", "schemas": [ { "identifier": "add_request/schema.py", - "hash": "7a1ca2c9697346db0957fdf7277e0981" + "hash": "b5224166a82c6c4bebe1fa84ca61f1eb" }, { "identifier": "add_request_note/schema.py", - "hash": "e65dac30fc55f065ffdb3e8736b12c21" + "hash": "d4b7eade91f70e557ebf7fd70da2fe44" }, { "identifier": "add_resolution/schema.py", - "hash": "55a9c46c41c18d3e3487edbcf0be893f" + "hash": "159c228c7962242b6051db57b21438d7" }, { "identifier": "assign_request/schema.py", - "hash": "56e5084efaf5d94cc8daf8b2bc590239" + "hash": "8324b38e609c18dd4f480a0eab700c3b" }, { "identifier": "close_request/schema.py", - "hash": "91bcb28dabdb6e3b29b5b74201cfb7f0" + "hash": "31e13feb2e48352edcb9a8e3217f9c3d" }, { "identifier": "delete_request/schema.py", - "hash": "0c0f7f928867e40c774ee346b51560a7" + "hash": "50f38ef1e3afe86a8486aeaec94bd45b" }, { "identifier": "delete_request_note/schema.py", - "hash": "1f37cd61ae747f66041a129ef1eb620d" + "hash": "30316881a3bd088bdbeb1aa4d640464e" }, { "identifier": "edit_request/schema.py", - "hash": "34e9343072dd88e2c83414bf2ccb3652" + "hash": "7327327caf83eef763563ef5077bebb8" }, { "identifier": "edit_request_note/schema.py", - "hash": "7e4f08ff53ab0572a094918f3c8ed8fa" + "hash": "e197d90a1320ea64f0ff7f3389abb563" }, { "identifier": "get_list_request/schema.py", - "hash": "46a5fbd6f6bcfbd81eb11437d556e25c" + "hash": "5e638fe9a47b44657e2d7cdde99f9dce" }, { "identifier": "get_list_request_notes/schema.py", - "hash": "1c00d658d3c98da1798ac01e7b3fe6d4" + "hash": "f220c4f15f3573c064ccd8dace45b594" }, { "identifier": "get_request/schema.py", - "hash": "e761e122486c26573bb5c4190d2b3b49" + "hash": "8084dbc2967e8c51aeed577a22b1d347" }, { "identifier": "get_resolution/schema.py", - "hash": "6cd6021690c474a9e40e508631cd9b15" + "hash": "38574086268af102989c9f8e3be3a205" }, { "identifier": "pickup_request/schema.py", - "hash": "2e0df4254eb6a078d7d7afec479dd350" + "hash": "e38ea6ec7fe316aebb8580a41d962adb" }, { "identifier": "connection/schema.py", - "hash": "478db0f9bc81f4e7b17e9c556d54cec7" + "hash": "f69408c643c06ba3b871793859df686d" } ] } \ No newline at end of file diff --git a/plugins/manage_engine_service_desk/Dockerfile b/plugins/manage_engine_service_desk/Dockerfile index 3a5b4a1270..83fb535a57 100755 --- a/plugins/manage_engine_service_desk/Dockerfile +++ b/plugins/manage_engine_service_desk/Dockerfile @@ -1,26 +1,20 @@ -FROM rapid7/insightconnect-python-3-38-plugin:4 -# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version +FROM --platform=linux/amd64 rapid7/insightconnect-python-3-plugin:6.1.4 LABEL organization=rapid7 LABEL sdk=python -# Add any custom package dependencies here -# NOTE: Add pip packages to requirements.txt - -# End package dependencies - -# Add source code WORKDIR /python/src + ADD ./plugin.spec.yaml /plugin.spec.yaml -ADD . /python/src +ADD ./requirements.txt /python/src/requirements.txt -# Install pip dependencies RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi -# Install plugin +ADD . /python/src + RUN python setup.py build && python setup.py install # User to run plugin code. The two supported users are: root, nobody USER nobody -ENTRYPOINT ["/usr/local/bin/icon_manage_engine_service_desk"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/icon_manage_engine_service_desk"] diff --git a/plugins/manage_engine_service_desk/bin/icon_manage_engine_service_desk b/plugins/manage_engine_service_desk/bin/icon_manage_engine_service_desk index 18cb031623..84c3bb8ecd 100755 --- a/plugins/manage_engine_service_desk/bin/icon_manage_engine_service_desk +++ b/plugins/manage_engine_service_desk/bin/icon_manage_engine_service_desk @@ -1,12 +1,12 @@ #!/usr/bin/env python -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import os import json from sys import argv Name = "Manage Engine Service Desk" Vendor = "rapid7" -Version = "1.0.1" +Version = "1.0.2" Description = "ManageEngine's Service Desk has the ability to centralize and capture reported issues, allowing security and IT administrators to track and manage all incidents in an easy manner. The numerous help desk tickets raised are organized and tracked in the Requests module. The Requests module enables you to handle tickets promptly, assign tickets to technicians, merge similar requests, and so on" @@ -23,7 +23,7 @@ def main(): monkey.patch_all() import insightconnect_plugin_runtime - from icon_manage_engine_service_desk import connection, actions, triggers + from icon_manage_engine_service_desk import connection, actions, triggers, tasks class ICONManageEngineServiceDesk(insightconnect_plugin_runtime.Plugin): def __init__(self): @@ -34,34 +34,34 @@ def main(): description=Description, connection=connection.Connection() ) + self.add_action(actions.GetListRequest()) + + self.add_action(actions.GetRequest()) + self.add_action(actions.AddRequest()) - - self.add_action(actions.AddRequestNote()) - - self.add_action(actions.AddResolution()) - - self.add_action(actions.AssignRequest()) - - self.add_action(actions.CloseRequest()) - - self.add_action(actions.DeleteRequest()) - - self.add_action(actions.DeleteRequestNote()) - + self.add_action(actions.EditRequest()) - + + self.add_action(actions.DeleteRequest()) + + self.add_action(actions.CloseRequest()) + + self.add_action(actions.AssignRequest()) + + self.add_action(actions.PickupRequest()) + + self.add_action(actions.AddResolution()) + + self.add_action(actions.GetResolution()) + + self.add_action(actions.AddRequestNote()) + self.add_action(actions.EditRequestNote()) - - self.add_action(actions.GetListRequest()) - + + self.add_action(actions.DeleteRequestNote()) + self.add_action(actions.GetListRequestNotes()) - - self.add_action(actions.GetRequest()) - - self.add_action(actions.GetResolution()) - - self.add_action(actions.PickupRequest()) - + """Run plugin""" cli = insightconnect_plugin_runtime.CLI(ICONManageEngineServiceDesk()) diff --git a/plugins/manage_engine_service_desk/help.md b/plugins/manage_engine_service_desk/help.md old mode 100755 new mode 100644 index f1f6b64fe0..175971d596 --- a/plugins/manage_engine_service_desk/help.md +++ b/plugins/manage_engine_service_desk/help.md @@ -1,6 +1,6 @@ # Description -ManageEngine's Service Desk has the ability to centralize and capture reported issues, allowing security and IT administrators to track and manage all incidents in an easy manner. The numerous help desk tickets raised are organized and tracked in the Requests module. The Requests module enables you to handle tickets promptly, assign tickets to technicians, merge similar requests, and so on. +ManageEngine's Service Desk has the ability to centralize and capture reported issues, allowing security and IT administrators to track and manage all incidents in an easy manner. The numerous help desk tickets raised are organized and tracked in the Requests module. The Requests module enables you to handle tickets promptly, assign tickets to technicians, merge similar requests, and so on # Key Features @@ -13,8 +13,6 @@ The authentication between ServiceDesk Plus and an Insight Connect application i * To generate the API Key, click Admin -> Technicians under User block. * If you want to generate the API key for an existing technician, then click the edit icon beside the technician. * If you want to generate the API key for a new technician, click Add New Technician link, enter the technician details and provide login permission. -* Click Generate link under the API key details block. You can select a time frame for the key to expire using the calendar icon or simply retain the same key indefinitely. -* If a key is already generated for the technician, a Re-generate link appears. # Supported Product Versions @@ -24,13 +22,13 @@ The authentication between ServiceDesk Plus and an Insight Connect application i ## Setup -The connection configuration accepts the following parameters: +The connection configuration accepts the following parameters: -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|api_key|credential_secret_key|None|True|Manage Engine Service Desk Technican's API key|None|EXAMPLE1-API2-KEY3-HDFS-48GS24WSA6GE| -|sdp_base_url|string|None|True|Service Desk Plus Base URL|None|https://example.com| -|ssl_verify|boolean|True|True|SSL verify|None|True| +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|api_key|credential_secret_key|None|True|Manage Engine Service Desk Technican's API key|None|EXAMPLE1-API2-KEY3-HDFS-48GS24WSA6GE|None|None| +|sdp_base_url|string|None|True|Service Desk Plus Base URL|None|http://me-sdeskplus.dev.example.com:8080|None|None| +|ssl_verify|boolean|True|True|SSL verify|None|True|None|None| Example input: @@ -46,42 +44,44 @@ Example input: ### Actions -#### Add Request -Add new a request. Subject and requester parameters are required, others are optional. In every parameter containing `ID` and `Name` fields please provide at least one of them. +#### Add Request + +This action is used to add a new request. Subject and requester parameters are required, others are optional. In every +parameter containing `ID` and `Name` fields please provide at least one of them ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|assets|[]asset|None|False|Array of asset objects associated with this request|None|["{"name": "Software", "barcode": "test-barcode"}"]| -|category|category|None|False|Category to which this request belongs|None|{"name": "Operating System"}| -|description|string|None|False|Description of this request|None|Example description| -|email_ids_to_notify|[]string|None|False|Array of Email ids, which needs to be notified about the happenings of this request|None|["user@example.com"]| -|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}| -|impact|impact|None|False|Impact of this request|None|{"name": "High"}| -|is_fcr|boolean|None|False|Boolean value indicating if the request has been marked as First Call Resolution|None|True| -|item|item|None|False|Item of this request|None|{"name": "Install"}| -|level|level|None|False|Level of the request|None|{"name": "Tier 4"}| -|mode|mode|None|False|The mode in which this request is created|None|{"name": "Web Form"}| -|priority|priority|None|False|Priority of the request|None|{"name": "High"}| -|request_type|request_type|None|False|Type of this request|None|{"name" "Incident"}| -|requester|user_input|None|True|The requester of the request|None|{"name": "John"}| -|service_category|service_category|None|False|Service category to which this request belongs|None|{"name": "User Management"}| -|site|site|None|False|Denotes the site to which this request belongs|None|{"name": "Custom Site"}| -|status|status|None|False|Indicates the current status of this request|None|{"name": "Open"}| -|subcategory|subcategory|None|False|Subcategory to which this request belongs|None|{"name": "Mac OS X"}| -|subject|string|None|True|Subject of this request|None|Need a Monitor| -|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}| -|urgency|urgency|None|False|Urgency of the request|None|{"name": "Low"}| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|None|False|Array of asset objects associated with this request|None|["{"name": "Software", "barcode": "test-barcode"}"]|None|None| +|category|category|None|False|Category to which this request belongs|None|{"name": "Operating System"}|None|None| +|description|string|None|False|Description of this request|None|Example description|None|None| +|email_ids_to_notify|[]string|None|False|Array of Email ids, which needs to be notified about the happenings of this request|None|["user@example.com"]|None|None| +|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}|None|None| +|impact|impact|None|False|Impact of this request|None|{"name": "High"}|None|None| +|is_fcr|boolean|None|False|Boolean value indicating if the request has been marked as First Call Resolution|None|True|None|None| +|item|item|None|False|Item of this request|None|{"name": "Install"}|None|None| +|level|level|None|False|Level of the request|None|{"name": "Tier 4"}|None|None| +|mode|mode|None|False|The mode in which this request is created|None|{"name": "Web Form"}|None|None| +|priority|priority|None|False|Priority of the request|None|{"name": "High"}|None|None| +|request_type|request_type|None|False|Type of this request|None|{"name" "Incident"}|None|None| +|requester|user_input|None|True|The requester of the request|None|{"name": "John"}|None|None| +|service_category|service_category|None|False|Service category to which this request belongs|None|{"name": "User Management"}|None|None| +|site|site|None|False|Denotes the site to which this request belongs|None|{"name": "Custom Site"}|None|None| +|status|status|None|False|Indicates the current status of this request|None|{"name": "Open"}|None|None| +|subcategory|subcategory|None|False|Subcategory to which this request belongs|None|{"name": "Mac OS X"}|None|None| +|subject|string|None|True|Subject of this request|None|Need a Monitor|None|None| +|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}|None|None| +|urgency|urgency|None|False|Urgency of the request|None|{"name": "Low"}|None|None| + Example input: ``` { "subject": "Install xyz", "requester": { - "name": Mike" + "name": "Mike" } } ``` @@ -89,11 +89,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of newly created request|55| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -106,19 +106,19 @@ Example output: #### Add Request Note -Add a note to an existing request. +This action is used to add a note to an existing request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|add_to_linked_request|boolean|None|False|Whether to add the note to the linked requests|None|False| -|description|string|None|True|Note description (the content of the note) in HTML format|None|Additional information required...| -|mark_first_response|boolean|None|False|Whether to set the responded date of the request/ticket|None|True| -|notify_technician|boolean|None|False|Whether to notify the technician or not|None|True| -|request_id|integer|None|True|The id of the request|None|55| -|show_to_requester|boolean|None|False|Whether to show the note to requester or not|None|False| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|add_to_linked_request|boolean|None|False|Whether to add the note to the linked requests|None|False|None|None| +|description|string|None|True|Note description (the content of the note) in HTML format|None|Additional information required...|None|None| +|mark_first_response|boolean|None|False|Whether to set the responded date of the request/ticket|None|True|None|None| +|notify_technician|boolean|None|False|Whether to notify the technician or not|None|True|None|None| +|request_id|integer|None|True|The id of the request|None|55|None|None| +|show_to_requester|boolean|None|False|Whether to show the note to requester or not|None|False|None|None| + Example input: ``` @@ -134,19 +134,19 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the request|55| |request_note_id|integer|False|The id of the request note|209| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` { "request_id": 55, - "request_note_id": 336, + "request_note_id": 209, "status": "success", "status_code": 2000 } @@ -154,16 +154,16 @@ Example output: #### Add Resolution -Add or update the resolution of a request. +Add or update the resolution of a request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The id of the request|None|27| -|content|string|None|True|Resolution content|None|Sample resolution| -|add_to_linked_requests|boolean|None|True|Whether the resolution should be added to linked requests|None|True| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|add_to_linked_requests|boolean|None|True|Whether the resolution should be added to linked requests|None|True|None|None| +|content|string|None|True|Resolution content|None|Sample resolution|None|None| +|request_id|integer|None|True|The id of the request|None|27|None|None| + Example input: ``` @@ -177,11 +177,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the request|27| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -194,16 +194,16 @@ Example output: #### Assign Request -Assign a request to a technician or group. Request ID is required, as well as at least one of Group or Technician. In every parameter containing `ID` and `Name` fields please provide only one or the other. +Assign a request to a technician or group. Request ID is required, as well as at least one of Group or Technician. In every parameter containing `ID` and `Name` fields please provide only one or the other ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}| -|request_id|integer|None|True|The request id that should be assigned|None|27| -|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}|None|None| +|request_id|integer|None|True|The request id that should be assigned|None|27|None|None| +|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}|None|None| + Example input: ``` @@ -221,11 +221,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the assigned request|27| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -238,18 +238,18 @@ Example output: #### Close Request -Close the given request. +Close the given request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|closure_code|closure_code|None|False|Closure code to add to the request|None|{"name": "Success"}| -|closure_comments|string|None|False|The comments that should be added when closing the request|None|Reset the password solved the issue| -|request_id|integer|None|True|The request id that should be closed|None|54| -|requester_ack_comments|string|None|False|The requester comments|None|Mail fetching is up and running now| -|requester_ack_resolution|boolean|None|False|The requester resolution|None|True| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|closure_code|closure_code|None|False|Closure code to add to the request|None|{"name": "Success"}|None|None| +|closure_comments|string|None|False|The comments that should be added when closing the request|None|Reset the password solved the issue|None|None| +|request_id|integer|None|True|The request id that should be closed|None|54|None|None| +|requester_ack_comments|string|None|False|The requester comments|None|Mail fetching is up and running now|None|None| +|requester_ack_resolution|boolean|None|False|The requester resolution|None|True|None|None| + Example input: ``` @@ -267,11 +267,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the closed request|54| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -284,14 +284,14 @@ Example output: #### Delete Request -Delete the given request (move it to the trash). +Delete the given request (move it to the trash) ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The ID of a request to delete|None|54| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The ID of a request to delete|None|54|None|None| + Example input: ``` @@ -303,11 +303,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of deleted request|54| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -320,15 +320,15 @@ Example output: #### Delete Request Note -Delete a given request note on a specific request. +Delete a given request note on a specific request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The id of the request|None|55| -|request_note_id|integer|None|True|The id of the request note to delete|None|208| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The id of the request|None|55|None|None| +|request_note_id|integer|None|True|The id of the request note to delete|None|208|None|None| + Example input: ``` @@ -341,11 +341,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the request|55| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -358,34 +358,34 @@ Example output: #### Edit Request -Update the given request. At least one parameter other than Request ID is required. In every parameter containing `ID` and `Name` fields please provide only one or the other. +Update the given request. At least one parameter other than Request ID is required. In every parameter containing `ID` and `Name` fields please provide only one or the other ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|assets|[]asset|None|False|Array of asset objects associated with this request|None|["{"name": "Software", "barcode": "test-barcode"}"]| -|category|category|None|False|Category to which this request belongs|None|{"name": "Operating System"}| -|description|string|None|False|Description of this request|None|Example description| -|email_ids_to_notify|[]string|None|False|Array of Email ids, which needs to be notified about the happenings of this request|None|["user@example.com"]| -|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}| -|impact|impact|None|False|Impact of this request|None|{"name": "High"}| -|is_fcr|boolean|None|False|Boolean value indicating if the request has been marked as First Call Resolution|None|True| -|item|item|None|False|Item of this request|None|{"name": "Install"}| -|level|level|None|False|Level of the request|None|{"name": "Tier 4"}| -|mode|mode|None|False|The mode in which this request is created|None|{"name": "Web Form"}| -|priority|priority|None|False|Priority of the request|None|{"name": "High"}| -|request_id|integer|None|True|The ID of a request to edit|None|54| -|request_type|request_type|None|False|Type of this request|None|{"name" "Incident"}| -|requester|user_input|None|False|The requester of the request|None|{"name": "John"}| -|service_category|service_category|None|False|Service category to which this request belongs|None|{"name": "User Management"}| -|site|site|None|False|Denotes the site to which this request belongs|None|{"name": "Custom Site"}| -|status|status|None|False|Indicates the current status of this request|None|{"name": "Open"}| -|subcategory|subcategory|None|False|Subcategory to which this request belongs|None|{"name": "Mac OS X"}| -|subject|string|None|False|Subject of this request|None|Need a Monitor| -|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}| -|urgency|urgency|None|False|Urgency of the request|None|{"name": "Low"}| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|None|False|Array of asset objects associated with this request|None|["{"name": "Software", "barcode": "test-barcode"}"]|None|None| +|category|category|None|False|Category to which this request belongs|None|{"name": "Operating System"}|None|None| +|description|string|None|False|Description of this request|None|Example description|None|None| +|email_ids_to_notify|[]string|None|False|Array of Email ids, which needs to be notified about the happenings of this request|None|["user@example.com"]|None|None| +|group|group|None|False|The group to which the request belongs|None|{"name": "Network"}|None|None| +|impact|impact|None|False|Impact of this request|None|{"name": "High"}|None|None| +|is_fcr|boolean|None|False|Boolean value indicating if the request has been marked as First Call Resolution|None|True|None|None| +|item|item|None|False|Item of this request|None|{"name": "Install"}|None|None| +|level|level|None|False|Level of the request|None|{"name": "Tier 4"}|None|None| +|mode|mode|None|False|The mode in which this request is created|None|{"name": "Web Form"}|None|None| +|priority|priority|None|False|Priority of the request|None|{"name": "High"}|None|None| +|request_id|integer|None|True|The ID of a request to edit|None|54|None|None| +|request_type|request_type|None|False|Type of this request|None|{"name" "Incident"}|None|None| +|requester|user_input|None|False|The requester of the request|None|{"name": "John"}|None|None| +|service_category|service_category|None|False|Service category to which this request belongs|None|{"name": "User Management"}|None|None| +|site|site|None|False|Denotes the site to which this request belongs|None|{"name": "Custom Site"}|None|None| +|status|status|None|False|Indicates the current status of this request|None|{"name": "Open"}|None|None| +|subcategory|subcategory|None|False|Subcategory to which this request belongs|None|{"name": "Mac OS X"}|None|None| +|subject|string|None|False|Subject of this request|None|Need a Monitor|None|None| +|technician|technician|None|False|The technician that was assigned to the request|None|{"name": "John"}|None|None| +|urgency|urgency|None|False|Urgency of the request|None|{"name": "Low"}|None|None| + Example input: ``` @@ -393,7 +393,7 @@ Example input: "request_id": 54, "subject": "Install xyz", "requester": { - "name": Mike" + "name": "Mike" } } ``` @@ -401,11 +401,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of edited request|54| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -418,20 +418,20 @@ Example output: #### Edit Request Note -Update a note on the given request. At least one parameter other than Request ID and Note ID is required. +Update a note on the given request. At least one parameter other than Request ID and Note ID is required ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|add_to_linked_request|boolean|None|False|Whether to add the note to the linked requests|None|False| -|description|string|None|False|Note description in HTML format|None|Need help| -|mark_first_response|boolean|None|False|Whether to set the responded date of the request/ticket|None|True| -|notify_technician|boolean|None|False|Whether to notify the technician or not|None|True| -|request_id|integer|None|True|The id of the request|None|55| -|request_note_id|integer|None|True|The id of the request note|None|209| -|show_to_requester|boolean|None|False|Whether to show the note to requester or not|None|False| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|add_to_linked_request|boolean|None|False|Whether to add the note to the linked requests|None|False|None|None| +|description|string|None|False|Note description in HTML format|None|Need help|None|None| +|mark_first_response|boolean|None|False|Whether to set the responded date of the request/ticket|None|True|None|None| +|notify_technician|boolean|None|False|Whether to notify the technician or not|None|True|None|None| +|request_id|integer|None|True|The id of the request|None|55|None|None| +|request_note_id|integer|None|True|The id of the request note|None|209|None|None| +|show_to_requester|boolean|None|False|Whether to show the note to requester or not|None|False|None|None| + Example input: ``` @@ -449,11 +449,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the request|55| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -466,18 +466,18 @@ Example output: #### Get List Request -View the details of a list of requests matching a search. +View the details of a list of requests matching a search ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|page_size|integer|10|False|By default, will return only the first 10 requests|None|15| -|search_fields|object|None|False|The column name and value to be searched|None|{"subject": "test","priority.name": "Low"}| -|sort_field|string|subject|False|FieldName for sorting|None|subject| -|sort_order|string|asc|False|Sort order for the results|['asc', 'desc', 'None']|asc| -|start_index|integer|None|False|Use this to get a list of tasks starting from this index|None|2| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|page_size|integer|10|False|By default, will return only the first 10 requests|None|15|None|None| +|search_fields|object|None|False|The column name and value to be searched|None|{"subject": "test","priority.name": "Low"}|None|None| +|sort_field|string|subject|False|FieldName for sorting|None|subject|None|None| +|sort_order|string|asc|False|Sort order for the results|["asc", "desc", "None"]|asc|None|None| +|start_index|integer|None|False|Use this to get a list of tasks starting from this index|None|2|None|None| + Example input: ``` @@ -496,10 +496,10 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |requests|[]request_output|False|List of requests|["{"subject": "Install xyz", "requester": {"name": "Mike"}}"]| |status|string|True|Status of the request|success| - + Example output: ``` @@ -652,14 +652,14 @@ Example output: #### Get List Request Notes -Get the list of all notes associated with the given request. +Get the list of all notes associated with the given request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The id of the request|None|55| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The id of the request|None|55|None|None| + Example input: ``` @@ -671,12 +671,9 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| -|request_id|integer|True|The id of the request|55| -|notes|[]note|False|Notes assigned to the request|["{"note_id": "312", "added_time": "Jul 8, 2022 02:02 AM", "added_by": {"name": "John", "id": "71"}}"]| -|status|string|True|Status of the request|success| -|status_code|integer|False|Status code of the request|2000| - +| :--- | :--- | :--- | :--- | :--- | +|notes|[]note|False|Notes assigned to the request|["{"note_id": "312", "added_time": "Jul 8, 2022 02:02 AM", "added_by": {"name": "John"}"]| +|request_id|integer|True|The id of the request|55|', '|status|string|True|Status of the request|success|', '|status_code|integer|False|Status code of the request|2000| Example output: ``` @@ -717,14 +714,14 @@ Example output: #### Get Request -View the details of a request given the request id. +View the details of a request given the request ID ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The request id that should be returned|None|54| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The request id that should be returned|None|54|None|None| + Example input: ``` @@ -736,11 +733,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request|request_output|False|Request|{"subject": "Install xyz", "requester": {"name": "Mike"}}| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -830,14 +827,14 @@ Example output: #### Get Resolution -Get the resolution of the given request. +Get the resolution of the given request ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The id of the request|None|27| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The id of the request|None|27|None|None| + Example input: ``` @@ -848,13 +845,13 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|content|string|False|Resolution content|Sample resolution| |request_id|integer|False|The id of the request|27| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| -|content|string|False|Resolution content|Sample resolution| - + Example output: ``` @@ -868,14 +865,14 @@ Example output: #### Pickup Request -Pick up (assign) a given request in your name as a technician. +Pick up (assign) a given request in your name as a technician ##### Input -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|request_id|integer|None|True|The request id that should be assigned|None|27| - +|Name|Type|Default|Required|Description|Enum|Example|Placeholder|Tooltip| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|request_id|integer|None|True|The request id that should be assigned|None|27|None|None| + Example input: ``` @@ -887,11 +884,11 @@ Example input: ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|--------| +| :--- | :--- | :--- | :--- | :--- | |request_id|integer|False|The id of the picked up request|27| |status|string|True|Status of the request|success| |status_code|integer|False|Status code of the request|2000| - + Example output: ``` @@ -901,214 +898,216 @@ Example output: "status_code": 2000 } ``` - ### Triggers - -_This plugin does not contain any triggers._ - -### Custom Output Types - -#### added_by - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|Id of the creator| -|Name|string|False|Name of the creator| - -#### asset - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Barcode|string|False|Barcode of the asset| -|Id|integer|False|Id of the asset| -|Name|string|False|Name of the asset| - -#### category - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the category| -|Name|string|False|Name of the category| - -#### closure_code - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|Closure Code ID| -|Name|string|False|Closure Code name| - -#### group - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|Group's id| -|Name|string|False|Group's name| - -#### impact - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the impact| -|Name|string|False|Name impact| - -#### item - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the item| -|Name|string|False|Name of the item| - -#### last_updated_by - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|Id of the last editor| -|Name|string|False|Name of the last editor| - -#### level - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|Id of the level| -|Name|string|False|Name of the level| - -#### mode - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|Id of the mode| -|Name|string|False|Name of the mode| - -#### note - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Added by|added_by|False|Added by details| -|Added time|date|False|The time the request note was added| -|ID|integer|False|Note ID| -|Last updated by|last_updated_by|False|Last updated by details| -|Last updated time|date|False|The time the request note was updated| -|Show to Requester|boolean|False|Whether to show the note to requester or not| - -#### priority - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the priority| -|Name|string|False|Name of the priority| - -#### request_output - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Assets|[]asset|False|Array of asset objects associated with this request| -|Category|category|False|Category to which this request belongs| -|Created By|user_output|False|Creator of the request| -|Created Time|date|False|Time the request was created| -|Description|string|False|Description of this request| -|Due By Time|date|False|The due date of the request| -|email_ids_to_notify|[]string|False|Array of Email ids, which needs to be notified about the happenings of this request| -|Group|group|False|The group to which the request belongs| -|Has Notes|boolean|False|Indicates whether the request has notes| -|Id|integer|False|Id of the request| -|Impact|impact|False|Impact of this request| -|is_fcr|boolean|False|Boolean value indicating if the request has been marked as First Call Resolution| -|Is Overdue|boolean|False|Indicates if the request is overdue| -|Is Service Request|boolean|False|Indicates whether the request is a service request or not| -|item|item|False|Item of this request| -|Level|level|False|Level of the request| -|mode|mode|False|The mode in which this request is created| -|Priority|priority|False|Priority of the request| -|Request Type|request_type|False|Type of this request| -|Requester|user_output|True|The requester of the request| -|Service Category|service_category|False|Service category to which this request belongs| -|site|site|False|Denotes the site to which this request belongs| -|status|status|False|Indicates the current status of this request| -|subcategory|subcategory|False|Subcategory to which this request belongs| -|Subject|string|True|Subject of this request| -|Technician|technician|False|The technician that was assigned to the request| -|Udf Fields|object|False|Holds udf fields values associated with the request| -|Urgency|urgency|False|Urgency of the request| - -#### request_type - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the request type| -|Name|string|False|Name of the request type| - -#### service_category - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the service category| -|Name|string|False|Name of the service category| - -#### site - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|Site's id| -|Name|string|False|Site's name| - -#### status - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the current status| -|Name|string|False|Name of the current status| - -#### subcategory - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|ID of the subcategory| -|Name|string|False|Name of the subcategory| - -#### technician - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|Technician ID| -|Name|string|False|Technician Name| - -#### urgency - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|Id|integer|False|Id of the urgency| -|Name|string|False|Name of the urgency| - -#### user_input - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|User ID| -|Name|string|False|User name| - -#### user_output - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|ID|integer|False|User ID| -|Is Vipuser|boolean|False|Whether the user is a vip user or not| -|Name|string|False|User name| + +*This plugin does not contain any triggers.* +### Tasks + +*This plugin does not contain any tasks.* + +### Custom Types + +**request_type** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the request type|1| +|Name|string|None|False|Name of the request type|Incident| + +**impact** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the impact|1| +|Name|string|None|False|Name impact|High| + +**status** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the current status|2| +|Name|string|None|False|Name of the current status|Open| + +**mode** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Id of the mode|2| +|Name|string|None|False|Name of the mode|Web Form| + +**level** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Id of the level|4| +|Name|string|None|False|Name of the level|Tier 4| + +**urgency** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Id of the urgency|2| +|Name|string|None|False|Name of the urgency|High| + +**priority** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the priority|4| +|Name|string|None|False|Name of the priority|High| + +**service_category** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the service category|8| +|Name|string|None|False|Name of the service category|User Management| + +**user_output** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|User ID|71| +|Is Vipuser|boolean|None|False|Whether the user is a vip user or not|False| +|Name|string|None|False|User name|John| + +**user_input** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|User ID|71| +|Name|string|None|False|User name|John| + +**asset** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Barcode|string|None|False|Barcode of the asset|test-barcode| +|ID|integer|None|False|Id of the asset|4541563| +|Name|string|None|False|Name of the asset|Software| + +**site** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Site's id|2235435| +|Name|string|None|False|Site's name|Custom Site| + +**group** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Group's id|2| +|Name|string|None|False|Group's name|Network| + +**technician** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Technician ID|3| +|Name|string|None|False|Technician Name|Samuel| + +**category** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the category|8| +|Name|string|None|False|Name of the category|Operating System| + +**subcategory** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the subcategory|24| +|Name|string|None|False|Name of the subcategory|Mac OS X| + +**item** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|ID of the item|1| +|Name|string|None|False|Name of the item|Install| + +**request_output** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Assets|[]asset|None|False|Array of asset objects associated with this request|["{\"name\": \"Software\", \"id\": 4541563, \"barcode\": \"test-barcode\"}"]| +|Category|category|None|False|Category to which this request belongs|{"name": "Operating System", "id": 8}| +|Created By|user_output|None|False|Creator of the request|{"name": "John", "id": 71}| +|Created Time|date|None|False|Time the request was created|Jul 9, 2022 04:02 AM| +|Description|string|None|False|Description of this request|Example description| +|Due By Time|date|None|False|The due date of the request|Jul 13, 2022 04:02 AM| +|Email IDs to Notify|[]string|None|False|Array of Email ids, which needs to be notified about the happenings of this request|["user@example.com"]| +|Group|group|None|False|The group to which the request belongs|{"name": "Network", "id": 2}| +|Has Notes|boolean|None|False|Indicates whether the request has notes|True| +|ID|integer|None|False|Id of the request|92| +|Impact|impact|None|False|Impact of this request|{"id": 1, "name": "High"}| +|Is Fcr|boolean|None|False|Boolean value indicating if the request has been marked as First Call Resolution|True| +|Is Overdue|boolean|None|False|Indicates if the request is overdue|True| +|Is Service Request|boolean|None|False|Indicates whether the request is a service request or not|True| +|Item|item|None|False|Item of this request|{"name": "Install", "id": 1}| +|Level|level|None|False|Level of the request|{"name": "Tier 4", "id": 4}| +|Mode|mode|None|False|The mode in which this request is created|{"name": "Web Form", "id": 4}| +|Priority|priority|None|False|Priority of the request|{"name": "High", "id": 4}| +|Request Type|request_type|None|False|Type of this request|{"id": 1, "name" "Incident"}| +|Requester|user_output|None|False|The requester of the request|{"name": "John", "id": 7, "is_vipuser": true}| +|Service Category|service_category|None|False|Service category to which this request belongs|{"name": "User Management", "id": 8}| +|Site|site|None|False|Denotes the site to which this request belongs|{"name": "Custom Site", "id": 71}| +|Status|status|None|False|Indicates the current status of this request|{"name": "Open", "id": 2}| +|Subcategory|subcategory|None|False|Subcategory to which this request belongs|{"name": "Mac OS X", "id": 24}| +|Subject|string|None|False|Subject of this request|Need a Monitor| +|Technician|technician|None|False|The technician that was assigned to the request|{"name": "John", "id": 71}| +|Udf Fields|object|None|False|Holds udf fields values associated with the request|{"udf_sline_51":"abc test.com","udf_pick_52":"Tony Stark"}| +|Urgency|urgency|None|False|Urgency of the request|{"name": "Low", "id": 1}| + +**closure_code** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Closure Code ID|1| +|Name|string|None|False|Closure Code name|Success| + +**last_updated_by** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Id of the last editor|3| +|Name|string|None|False|Name of the last editor|Samuel| + +**added_by** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Id of the creator|3| +|Name|string|None|False|Name of the creator|Samuel| + +**note** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Added By|added_by|None|False|Added by details|{"name": "John", "id": 71}| +|Added Time|date|None|False|The time the request note was added|Jul 8, 2022 02:01 AM| +|ID|integer|None|False|Note ID|543| +|Last Updated By|last_updated_by|None|False|Last updated by details|{"name": "John", "id": 71}| +|Last Updated Time|date|None|False|The time the request note was updated|Jul 9, 2022 04:02 AM| +|Show to Requester|boolean|None|False|Whether to show the note to requester or not|False| ## Troubleshooting - -_This plugin does not contain any troubleshooting information._ + +*This plugin does not contain a troubleshooting.* # Version History +* 1.0.2 - Bumping requirements.txt | SDK bump to 6.1.4 * 1.0.1 - Fix `int` conversion issue in `Get List Request` and `Get Request` actions * 1.0.0 - Initial plugin - Create actions: `Add Request`, `Add Request Note`, `Add Resolution`, `Assign Request`, `Close Request`, `Delete Request`, `Delete Request Note`, `Edit Request`, `Edit Request Note`, `Get List Request`, `Get List Request Notes`, `Get Request`, `Get Resolution`, `Pickup Request` # Links -* [Manage Engine Service Desk API Docs](https://www.manageengine.com/products/service-desk/sdpod-v3-api) +* [Manage Engine Service Desk](https://manageengine.com/products/service-desk) ## References -* [Manage Engine Service Desk](https://manageengine.com/products/service-desk) - +* [Manage Engine Service Desk API Docs](https://www.manageengine.com/products/service-desk/sdpod-v3-api) \ No newline at end of file diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/__init__.py index a8f845665f..76a2a5ee52 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/__init__.py @@ -1,15 +1,30 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + +from .get_list_request.action import GetListRequest + +from .get_request.action import GetRequest + from .add_request.action import AddRequest -from .add_request_note.action import AddRequestNote -from .add_resolution.action import AddResolution -from .assign_request.action import AssignRequest -from .close_request.action import CloseRequest -from .delete_request.action import DeleteRequest -from .delete_request_note.action import DeleteRequestNote + from .edit_request.action import EditRequest + +from .delete_request.action import DeleteRequest + +from .close_request.action import CloseRequest + +from .assign_request.action import AssignRequest + +from .pickup_request.action import PickupRequest + +from .add_resolution.action import AddResolution + +from .get_resolution.action import GetResolution + +from .add_request_note.action import AddRequestNote + from .edit_request_note.action import EditRequestNote -from .get_list_request.action import GetListRequest + +from .delete_request_note.action import DeleteRequestNote + from .get_list_request_notes.action import GetListRequestNotes -from .get_request.action import GetRequest -from .get_resolution.action import GetResolution -from .pickup_request.action import PickupRequest + diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/__init__.py index 88588d9ea6..4a9fb7ec62 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/schema.py index 4178a03bcb..e016bd8a63 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request/schema.py @@ -1,10 +1,10 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: - DESCRIPTION = "Add a new request. Subject and requester parameters are required, others are optional. In every parameter containing `ID` and `Name` fields please provide at least one of them" + DESCRIPTION = "This action is used to add a new request. Subject and requester parameters are required, others are optional. In every parameter containing `ID` and `Name` fields please provide at least one of them" class Input: @@ -28,16 +28,16 @@ class Input: SUBJECT = "subject" TECHNICIAN = "technician" URGENCY = "urgency" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class AddRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -178,12 +178,6 @@ class AddRequestInput(insightconnect_plugin_runtime.Input): "type": "object", "title": "asset", "properties": { - "barcode": { - "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", - "order": 3 - }, "id": { "type": "integer", "title": "ID", @@ -195,41 +189,47 @@ class AddRequestInput(insightconnect_plugin_runtime.Input): "title": "Name", "description": "Name of the asset", "order": 2 + }, + "barcode": { + "type": "string", + "title": "Barcode", + "description": "Barcode of the asset", + "order": 3 } } }, - "category": { + "user_input": { "type": "object", - "title": "category", + "title": "user_input", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the category", + "description": "User ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the category", + "description": "User name", "order": 2 } } }, - "group": { + "request_type": { "type": "object", - "title": "group", + "title": "request_type", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Group's id", + "description": "ID of the request type", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Group's name", + "description": "Name of the request type", "order": 2 } } @@ -252,92 +252,92 @@ class AddRequestInput(insightconnect_plugin_runtime.Input): } } }, - "item": { + "status": { "type": "object", - "title": "item", + "title": "status", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the item", + "description": "ID of the current status", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the item", + "description": "Name of the current status", "order": 2 } } }, - "level": { + "mode": { "type": "object", - "title": "level", + "title": "mode", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the level", + "description": "Id of the mode", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the level", + "description": "Name of the mode", "order": 2 } } }, - "mode": { + "level": { "type": "object", - "title": "mode", + "title": "level", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the mode", + "description": "Id of the level", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the mode", + "description": "Name of the level", "order": 2 } } }, - "priority": { + "urgency": { "type": "object", - "title": "priority", + "title": "urgency", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the priority", + "description": "Id of the urgency", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the priority", + "description": "Name of the urgency", "order": 2 } } }, - "request_type": { + "priority": { "type": "object", - "title": "request_type", + "title": "priority", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the request type", + "description": "ID of the priority", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the request type", + "description": "Name of the priority", "order": 2 } } @@ -378,92 +378,92 @@ class AddRequestInput(insightconnect_plugin_runtime.Input): } } }, - "status": { + "group": { "type": "object", - "title": "status", + "title": "group", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the current status", + "description": "Group's id", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the current status", + "description": "Group's name", "order": 2 } } }, - "subcategory": { + "technician": { "type": "object", - "title": "subcategory", + "title": "technician", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the subcategory", + "description": "Technician ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the subcategory", + "description": "Technician Name", "order": 2 } } }, - "technician": { + "category": { "type": "object", - "title": "technician", + "title": "category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Technician ID", + "description": "ID of the category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Technician Name", + "description": "Name of the category", "order": 2 } } }, - "urgency": { + "subcategory": { "type": "object", - "title": "urgency", + "title": "subcategory", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the urgency", + "description": "ID of the subcategory", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the urgency", + "description": "Name of the subcategory", "order": 2 } } }, - "user_input": { + "item": { "type": "object", - "title": "user_input", + "title": "item", "properties": { "id": { "type": "integer", "title": "ID", - "description": "User ID", + "description": "ID of the item", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "User name", + "description": "Name of the item", "order": 2 } } @@ -477,7 +477,7 @@ def __init__(self): class AddRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -503,7 +503,8 @@ class AddRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/__init__.py index 9d3dbddc50..5499e6ba2a 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddRequestNote diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/schema.py index 093cbb100c..a1dd3b0368 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_request_note/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -14,17 +14,17 @@ class Input: NOTIFY_TECHNICIAN = "notify_technician" REQUEST_ID = "request_id" SHOW_TO_REQUESTER = "show_to_requester" - + class Output: REQUEST_ID = "request_id" REQUEST_NOTE_ID = "request_note_id" STATUS = "status" STATUS_CODE = "status_code" - + class AddRequestNoteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -69,7 +69,8 @@ class AddRequestNoteInput(insightconnect_plugin_runtime.Input): "required": [ "description", "request_id" - ] + ], + "definitions": {} } """) @@ -78,7 +79,7 @@ def __init__(self): class AddRequestNoteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -110,7 +111,8 @@ class AddRequestNoteOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/__init__.py index 2b789a455b..251c41b995 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddResolution diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/schema.py index 2bae3710b0..28206bf716 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/add_resolution/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,16 +11,16 @@ class Input: ADD_TO_LINKED_REQUESTS = "add_to_linked_requests" CONTENT = "content" REQUEST_ID = "request_id" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class AddResolutionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -48,7 +48,8 @@ class AddResolutionInput(insightconnect_plugin_runtime.Input): "add_to_linked_requests", "content", "request_id" - ] + ], + "definitions": {} } """) @@ -57,7 +58,7 @@ def __init__(self): class AddResolutionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -83,7 +84,8 @@ class AddResolutionOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/__init__.py index d926adc8ab..06936240e3 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AssignRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/schema.py index e7dbf9645a..ebb8bbb839 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/assign_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,16 +11,16 @@ class Input: GROUP = "group" REQUEST_ID = "request_id" TECHNICIAN = "technician" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class AssignRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -93,7 +93,7 @@ def __init__(self): class AssignRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -119,7 +119,8 @@ class AssignRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/__init__.py index 1eae830cee..f3306f267c 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CloseRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/schema.py index a82f329e63..4955afa28a 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/close_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -13,16 +13,16 @@ class Input: REQUEST_ID = "request_id" REQUESTER_ACK_COMMENTS = "requester_ack_comments" REQUESTER_ACK_RESOLUTION = "requester_ack_resolution" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class CloseRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -89,7 +89,7 @@ def __init__(self): class CloseRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -115,7 +115,8 @@ class CloseRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/__init__.py index 8bde25f35b..27ac39c662 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/schema.py index ee8b2bb24e..95e3ac1358 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,16 +9,16 @@ class Component: class Input: REQUEST_ID = "request_id" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class DeleteRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -32,7 +32,8 @@ class DeleteRequestInput(insightconnect_plugin_runtime.Input): }, "required": [ "request_id" - ] + ], + "definitions": {} } """) @@ -41,7 +42,7 @@ def __init__(self): class DeleteRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -67,7 +68,8 @@ class DeleteRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/__init__.py index 719f912e4f..4b006151ef 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteRequestNote diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/schema.py index accc270140..78a2a1f52a 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/delete_request_note/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,16 +10,16 @@ class Component: class Input: REQUEST_ID = "request_id" REQUEST_NOTE_ID = "request_note_id" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class DeleteRequestNoteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -40,7 +40,8 @@ class DeleteRequestNoteInput(insightconnect_plugin_runtime.Input): "required": [ "request_id", "request_note_id" - ] + ], + "definitions": {} } """) @@ -49,7 +50,7 @@ def __init__(self): class DeleteRequestNoteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -75,7 +76,8 @@ class DeleteRequestNoteOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/__init__.py index 3667915cbb..e973ead386 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import EditRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/schema.py index b8b334c2d7..24ec6de72e 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -29,16 +29,16 @@ class Input: SUBJECT = "subject" TECHNICIAN = "technician" URGENCY = "urgency" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class EditRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -184,12 +184,6 @@ class EditRequestInput(insightconnect_plugin_runtime.Input): "type": "object", "title": "asset", "properties": { - "barcode": { - "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", - "order": 3 - }, "id": { "type": "integer", "title": "ID", @@ -201,41 +195,47 @@ class EditRequestInput(insightconnect_plugin_runtime.Input): "title": "Name", "description": "Name of the asset", "order": 2 + }, + "barcode": { + "type": "string", + "title": "Barcode", + "description": "Barcode of the asset", + "order": 3 } } }, - "category": { + "user_input": { "type": "object", - "title": "category", + "title": "user_input", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the category", + "description": "User ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the category", + "description": "User name", "order": 2 } } }, - "group": { + "request_type": { "type": "object", - "title": "group", + "title": "request_type", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Group's id", + "description": "ID of the request type", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Group's name", + "description": "Name of the request type", "order": 2 } } @@ -258,92 +258,92 @@ class EditRequestInput(insightconnect_plugin_runtime.Input): } } }, - "item": { + "status": { "type": "object", - "title": "item", + "title": "status", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the item", + "description": "ID of the current status", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the item", + "description": "Name of the current status", "order": 2 } } }, - "level": { + "mode": { "type": "object", - "title": "level", + "title": "mode", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the level", + "description": "Id of the mode", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the level", + "description": "Name of the mode", "order": 2 } } }, - "mode": { + "level": { "type": "object", - "title": "mode", + "title": "level", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the mode", + "description": "Id of the level", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the mode", + "description": "Name of the level", "order": 2 } } }, - "priority": { + "urgency": { "type": "object", - "title": "priority", + "title": "urgency", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the priority", + "description": "Id of the urgency", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the priority", + "description": "Name of the urgency", "order": 2 } } }, - "request_type": { + "priority": { "type": "object", - "title": "request_type", + "title": "priority", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the request type", + "description": "ID of the priority", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the request type", + "description": "Name of the priority", "order": 2 } } @@ -384,92 +384,92 @@ class EditRequestInput(insightconnect_plugin_runtime.Input): } } }, - "status": { + "group": { "type": "object", - "title": "status", + "title": "group", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the current status", + "description": "Group's id", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the current status", + "description": "Group's name", "order": 2 } } }, - "subcategory": { + "technician": { "type": "object", - "title": "subcategory", + "title": "technician", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the subcategory", + "description": "Technician ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the subcategory", + "description": "Technician Name", "order": 2 } } }, - "technician": { + "category": { "type": "object", - "title": "technician", + "title": "category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Technician ID", + "description": "ID of the category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Technician Name", + "description": "Name of the category", "order": 2 } } }, - "urgency": { + "subcategory": { "type": "object", - "title": "urgency", + "title": "subcategory", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the urgency", + "description": "ID of the subcategory", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the urgency", + "description": "Name of the subcategory", "order": 2 } } }, - "user_input": { + "item": { "type": "object", - "title": "user_input", + "title": "item", "properties": { "id": { "type": "integer", "title": "ID", - "description": "User ID", + "description": "ID of the item", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "User name", + "description": "Name of the item", "order": 2 } } @@ -483,7 +483,7 @@ def __init__(self): class EditRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -509,7 +509,8 @@ class EditRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/__init__.py index 0b466052f4..9e11926ee6 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import EditRequestNote diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/schema.py index 27fc8d4e1a..5be3ff1a10 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/edit_request_note/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -15,16 +15,16 @@ class Input: REQUEST_ID = "request_id" REQUEST_NOTE_ID = "request_note_id" SHOW_TO_REQUESTER = "show_to_requester" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class EditRequestNoteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -75,7 +75,8 @@ class EditRequestNoteInput(insightconnect_plugin_runtime.Input): "required": [ "request_id", "request_note_id" - ] + ], + "definitions": {} } """) @@ -84,7 +85,7 @@ def __init__(self): class EditRequestNoteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -110,7 +111,8 @@ class EditRequestNoteOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/__init__.py index 6730769dd8..e8324387f2 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetListRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/schema.py index e7536c0b47..d2289a1e60 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -13,15 +13,15 @@ class Input: SORT_FIELD = "sort_field" SORT_ORDER = "sort_order" START_INDEX = "start_index" - + class Output: REQUESTS = "requests" STATUS = "status" - + class GetListRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -64,7 +64,8 @@ class GetListRequestInput(insightconnect_plugin_runtime.Input): "description": "Use this to get a list of tasks starting from this index", "order": 1 } - } + }, + "definitions": {} } """) @@ -73,7 +74,7 @@ def __init__(self): class GetListRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -98,98 +99,282 @@ class GetListRequestOutput(insightconnect_plugin_runtime.Output): "status" ], "definitions": { - "asset": { + "request_output": { "type": "object", - "title": "asset", + "title": "request_output", "properties": { - "barcode": { + "id": { + "type": "integer", + "title": "ID", + "description": "Id of the request", + "order": 1 + }, + "subject": { "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", + "title": "Subject", + "description": "Subject of this request", + "order": 2 + }, + "requester": { + "$ref": "#/definitions/user_output", + "title": "Requester", + "description": "The requester of the request", "order": 3 }, + "description": { + "type": "string", + "title": "Description", + "description": "Description of this request", + "order": 4 + }, + "request_type": { + "$ref": "#/definitions/request_type", + "title": "Request Type", + "description": "Type of this request", + "order": 5 + }, + "impact": { + "$ref": "#/definitions/impact", + "title": "Impact", + "description": "Impact of this request", + "order": 6 + }, + "status": { + "$ref": "#/definitions/status", + "title": "Status", + "description": "Indicates the current status of this request", + "order": 7 + }, + "mode": { + "$ref": "#/definitions/mode", + "title": "Mode", + "description": "The mode in which this request is created", + "order": 8 + }, + "level": { + "$ref": "#/definitions/level", + "title": "Level", + "description": "Level of the request", + "order": 9 + }, + "urgency": { + "$ref": "#/definitions/urgency", + "title": "Urgency", + "description": "Urgency of the request", + "order": 10 + }, + "priority": { + "$ref": "#/definitions/priority", + "title": "Priority", + "description": "Priority of the request", + "order": 11 + }, + "service_category": { + "$ref": "#/definitions/service_category", + "title": "Service Category", + "description": "Service category to which this request belongs", + "order": 12 + }, + "assets": { + "type": "array", + "title": "Assets", + "description": "Array of asset objects associated with this request", + "items": { + "$ref": "#/definitions/asset" + }, + "order": 13 + }, + "site": { + "$ref": "#/definitions/site", + "title": "Site", + "description": "Denotes the site to which this request belongs", + "order": 14 + }, + "group": { + "$ref": "#/definitions/group", + "title": "Group", + "description": "The group to which the request belongs", + "order": 15 + }, + "technician": { + "$ref": "#/definitions/technician", + "title": "Technician", + "description": "The technician that was assigned to the request", + "order": 16 + }, + "category": { + "$ref": "#/definitions/category", + "title": "Category", + "description": "Category to which this request belongs", + "order": 17 + }, + "subcategory": { + "$ref": "#/definitions/subcategory", + "title": "Subcategory", + "description": "Subcategory to which this request belongs", + "order": 18 + }, + "item": { + "$ref": "#/definitions/item", + "title": "Item", + "description": "Item of this request", + "order": 19 + }, + "email_ids_to_notify": { + "type": "array", + "title": "Email IDs to Notify", + "description": "Array of Email ids, which needs to be notified about the happenings of this request", + "items": { + "type": "string" + }, + "order": 20 + }, + "is_fcr": { + "type": "boolean", + "title": "Is Fcr", + "description": "Boolean value indicating if the request has been marked as First Call Resolution", + "order": 21 + }, + "is_service_request": { + "type": "boolean", + "title": "Is Service Request", + "description": "Indicates whether the request is a service request or not", + "order": 22 + }, + "has_notes": { + "type": "boolean", + "title": "Has Notes", + "description": "Indicates whether the request has notes", + "order": 23 + }, + "is_overdue": { + "type": "boolean", + "title": "Is Overdue", + "description": "Indicates if the request is overdue", + "order": 24 + }, + "udf_fields": { + "type": "object", + "title": "Udf Fields", + "description": "Holds udf fields values associated with the request", + "order": 25 + }, + "created_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Created Time", + "description": "Time the request was created", + "order": 26 + }, + "created_by": { + "$ref": "#/definitions/user_output", + "title": "Created By", + "description": "Creator of the request", + "order": 27 + }, + "due_by_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Due By Time", + "description": "The due date of the request", + "order": 28 + } + } + }, + "user_output": { + "type": "object", + "title": "user_output", + "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the asset", + "description": "User ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the asset", + "description": "User name", "order": 2 + }, + "is_vipuser": { + "type": "boolean", + "title": "Is Vipuser", + "description": "Whether the user is a vip user or not", + "order": 3 } } }, - "category": { + "request_type": { "type": "object", - "title": "category", + "title": "request_type", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the category", + "description": "ID of the request type", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the category", + "description": "Name of the request type", "order": 2 } } }, - "group": { + "impact": { "type": "object", - "title": "group", + "title": "impact", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Group's id", + "description": "ID of the impact", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Group's name", + "description": "Name impact", "order": 2 } } }, - "impact": { + "status": { "type": "object", - "title": "impact", + "title": "status", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the impact", + "description": "ID of the current status", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name impact", + "description": "Name of the current status", "order": 2 } } }, - "item": { + "mode": { "type": "object", - "title": "item", + "title": "mode", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the item", + "description": "Id of the mode", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the item", + "description": "Name of the mode", "order": 2 } } @@ -212,20 +397,20 @@ class GetListRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "mode": { + "urgency": { "type": "object", - "title": "mode", + "title": "urgency", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the mode", + "description": "Id of the urgency", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the mode", + "description": "Name of the urgency", "order": 2 } } @@ -248,525 +433,45 @@ class GetListRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "request_output": { + "service_category": { "type": "object", - "title": "request_output", - "properties": { - "assets": { - "type": "array", - "title": "Assets", - "description": "Array of asset objects associated with this request", - "items": { - "$ref": "#/definitions/asset" - }, - "order": 13 - }, - "category": { - "$ref": "#/definitions/category", - "title": "Category", - "description": "Category to which this request belongs", - "order": 17 - }, - "created_by": { - "$ref": "#/definitions/user_output", - "title": "Created By", - "description": "Creator of the request", - "order": 27 - }, - "created_time": { - "type": "string", - "title": "Created Time", - "displayType": "date", - "description": "Time the request was created", - "format": "date-time", - "order": 26 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of this request", - "order": 4 - }, - "due_by_time": { - "type": "string", - "title": "Due By Time", - "displayType": "date", - "description": "The due date of the request", - "format": "date-time", - "order": 28 - }, - "email_ids_to_notify": { - "type": "array", - "title": "Email IDs to Notify", - "description": "Array of Email ids, which needs to be notified about the happenings of this request", - "items": { - "type": "string" - }, - "order": 20 - }, - "group": { - "$ref": "#/definitions/group", - "title": "Group", - "description": "The group to which the request belongs", - "order": 15 - }, - "has_notes": { - "type": "boolean", - "title": "Has Notes", - "description": "Indicates whether the request has notes", - "order": 23 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the request", - "order": 1 - }, - "impact": { - "$ref": "#/definitions/impact", - "title": "Impact", - "description": "Impact of this request", - "order": 6 - }, - "is_fcr": { - "type": "boolean", - "title": "Is Fcr", - "description": "Boolean value indicating if the request has been marked as First Call Resolution", - "order": 21 - }, - "is_overdue": { - "type": "boolean", - "title": "Is Overdue", - "description": "Indicates if the request is overdue", - "order": 24 - }, - "is_service_request": { - "type": "boolean", - "title": "Is Service Request", - "description": "Indicates whether the request is a service request or not", - "order": 22 - }, - "item": { - "$ref": "#/definitions/item", - "title": "Item", - "description": "Item of this request", - "order": 19 - }, - "level": { - "$ref": "#/definitions/level", - "title": "Level", - "description": "Level of the request", - "order": 9 - }, - "mode": { - "$ref": "#/definitions/mode", - "title": "Mode", - "description": "The mode in which this request is created", - "order": 8 - }, - "priority": { - "$ref": "#/definitions/priority", - "title": "Priority", - "description": "Priority of the request", - "order": 11 - }, - "request_type": { - "$ref": "#/definitions/request_type", - "title": "Request Type", - "description": "Type of this request", - "order": 5 - }, - "requester": { - "$ref": "#/definitions/user_output", - "title": "Requester", - "description": "The requester of the request", - "order": 3 - }, - "service_category": { - "$ref": "#/definitions/service_category", - "title": "Service Category", - "description": "Service category to which this request belongs", - "order": 12 - }, - "site": { - "$ref": "#/definitions/site", - "title": "Site", - "description": "Denotes the site to which this request belongs", - "order": 14 - }, - "status": { - "$ref": "#/definitions/status", - "title": "Status", - "description": "Indicates the current status of this request", - "order": 7 - }, - "subcategory": { - "$ref": "#/definitions/subcategory", - "title": "Subcategory", - "description": "Subcategory to which this request belongs", - "order": 18 - }, - "subject": { - "type": "string", - "title": "Subject", - "description": "Subject of this request", - "order": 2 - }, - "technician": { - "$ref": "#/definitions/technician", - "title": "Technician", - "description": "The technician that was assigned to the request", - "order": 16 - }, - "udf_fields": { - "type": "object", - "title": "Udf Fields", - "description": "Holds udf fields values associated with the request", - "order": 25 - }, - "urgency": { - "$ref": "#/definitions/urgency", - "title": "Urgency", - "description": "Urgency of the request", - "order": 10 - } - }, - "definitions": { - "asset": { - "type": "object", - "title": "asset", - "properties": { - "barcode": { - "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", - "order": 3 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the asset", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the asset", - "order": 2 - } - } - }, - "category": { - "type": "object", - "title": "category", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the category", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the category", - "order": 2 - } - } - }, - "group": { - "type": "object", - "title": "group", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Group's id", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Group's name", - "order": 2 - } - } - }, - "impact": { - "type": "object", - "title": "impact", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the impact", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name impact", - "order": 2 - } - } - }, - "item": { - "type": "object", - "title": "item", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the item", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the item", - "order": 2 - } - } - }, - "level": { - "type": "object", - "title": "level", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the level", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the level", - "order": 2 - } - } - }, - "mode": { - "type": "object", - "title": "mode", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the mode", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the mode", - "order": 2 - } - } - }, - "priority": { - "type": "object", - "title": "priority", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the priority", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the priority", - "order": 2 - } - } - }, - "request_type": { - "type": "object", - "title": "request_type", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the request type", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the request type", - "order": 2 - } - } - }, - "service_category": { - "type": "object", - "title": "service_category", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the service category", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service category", - "order": 2 - } - } - }, - "site": { - "type": "object", - "title": "site", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Site's id", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Site's name", - "order": 2 - } - } - }, - "status": { - "type": "object", - "title": "status", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the current status", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the current status", - "order": 2 - } - } - }, - "subcategory": { - "type": "object", - "title": "subcategory", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the subcategory", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the subcategory", - "order": 2 - } - } - }, - "technician": { - "type": "object", - "title": "technician", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Technician ID", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Technician Name", - "order": 2 - } - } - }, - "urgency": { - "type": "object", - "title": "urgency", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the urgency", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the urgency", - "order": 2 - } - } - }, - "user_output": { - "type": "object", - "title": "user_output", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "User ID", - "order": 1 - }, - "is_vipuser": { - "type": "boolean", - "title": "Is Vipuser", - "description": "Whether the user is a vip user or not", - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "User name", - "order": 2 - } - } - } - } - }, - "request_type": { - "type": "object", - "title": "request_type", + "title": "service_category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the request type", + "description": "ID of the service category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the request type", + "description": "Name of the service category", "order": 2 } } }, - "service_category": { + "asset": { "type": "object", - "title": "service_category", + "title": "asset", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the service category", + "description": "Id of the asset", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the service category", + "description": "Name of the asset", "order": 2 + }, + "barcode": { + "type": "string", + "title": "Barcode", + "description": "Barcode of the asset", + "order": 3 } } }, @@ -788,98 +493,92 @@ class GetListRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "status": { + "group": { "type": "object", - "title": "status", + "title": "group", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the current status", + "description": "Group's id", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the current status", + "description": "Group's name", "order": 2 } } }, - "subcategory": { + "technician": { "type": "object", - "title": "subcategory", + "title": "technician", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the subcategory", + "description": "Technician ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the subcategory", + "description": "Technician Name", "order": 2 } } }, - "technician": { + "category": { "type": "object", - "title": "technician", + "title": "category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Technician ID", + "description": "ID of the category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Technician Name", + "description": "Name of the category", "order": 2 } } }, - "urgency": { + "subcategory": { "type": "object", - "title": "urgency", + "title": "subcategory", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the urgency", + "description": "ID of the subcategory", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the urgency", + "description": "Name of the subcategory", "order": 2 } } }, - "user_output": { + "item": { "type": "object", - "title": "user_output", + "title": "item", "properties": { "id": { "type": "integer", "title": "ID", - "description": "User ID", + "description": "ID of the item", "order": 1 }, - "is_vipuser": { - "type": "boolean", - "title": "Is Vipuser", - "description": "Whether the user is a vip user or not", - "order": 3 - }, "name": { "type": "string", "title": "Name", - "description": "User name", + "description": "Name of the item", "order": 2 } } diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/__init__.py index cbfaf2cc69..fbc7c822c3 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetListRequestNotes diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/schema.py index 1f21bd0a48..5c481c6a69 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_list_request_notes/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,17 +9,17 @@ class Component: class Input: REQUEST_ID = "request_id" - + class Output: NOTES = "notes" REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class GetListRequestNotesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -33,7 +33,8 @@ class GetListRequestNotesInput(insightconnect_plugin_runtime.Input): }, "required": [ "request_id" - ] + ], + "definitions": {} } """) @@ -42,7 +43,7 @@ def __init__(self): class GetListRequestNotesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -80,21 +81,49 @@ class GetListRequestNotesOutput(insightconnect_plugin_runtime.Output): "status" ], "definitions": { - "added_by": { + "note": { "type": "object", - "title": "added_by", + "title": "note", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the creator", + "description": "Note ID", "order": 1 }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the creator", + "show_to_requester": { + "type": "boolean", + "title": "Show to Requester", + "description": "Whether to show the note to requester or not", "order": 2 + }, + "last_updated_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Last Updated Time", + "description": "The time the request note was updated", + "order": 3 + }, + "added_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Added Time", + "description": "The time the request note was added", + "order": 4 + }, + "last_updated_by": { + "$ref": "#/definitions/last_updated_by", + "title": "Last Updated By", + "description": "Last updated by details", + "order": 5 + }, + "added_by": { + "$ref": "#/definitions/added_by", + "title": "Added By", + "description": "Added by details", + "order": 6 } } }, @@ -116,88 +145,22 @@ class GetListRequestNotesOutput(insightconnect_plugin_runtime.Output): } } }, - "note": { + "added_by": { "type": "object", - "title": "note", + "title": "added_by", "properties": { - "added_by": { - "$ref": "#/definitions/added_by", - "title": "Added By", - "description": "Added by details", - "order": 6 - }, - "added_time": { - "type": "string", - "title": "Added Time", - "displayType": "date", - "description": "The time the request note was added", - "format": "date-time", - "order": 4 - }, "id": { "type": "integer", "title": "ID", - "description": "Note ID", + "description": "Id of the creator", "order": 1 }, - "last_updated_by": { - "$ref": "#/definitions/last_updated_by", - "title": "Last Updated By", - "description": "Last updated by details", - "order": 5 - }, - "last_updated_time": { + "name": { "type": "string", - "title": "Last Updated Time", - "displayType": "date", - "description": "The time the request note was updated", - "format": "date-time", - "order": 3 - }, - "show_to_requester": { - "type": "boolean", - "title": "Show to Requester", - "description": "Whether to show the note to requester or not", + "title": "Name", + "description": "Name of the creator", "order": 2 } - }, - "definitions": { - "added_by": { - "type": "object", - "title": "added_by", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the creator", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the creator", - "order": 2 - } - } - }, - "last_updated_by": { - "type": "object", - "title": "last_updated_by", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the last editor", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the last editor", - "order": 2 - } - } - } } } } diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/__init__.py index fa006f0e6f..77b4746560 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/schema.py index f8248ae9e0..7501a94f94 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,16 +9,16 @@ class Component: class Input: REQUEST_ID = "request_id" - + class Output: REQUEST = "request" STATUS = "status" STATUS_CODE = "status_code" - + class GetRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -32,7 +32,8 @@ class GetRequestInput(insightconnect_plugin_runtime.Input): }, "required": [ "request_id" - ] + ], + "definitions": {} } """) @@ -41,7 +42,7 @@ def __init__(self): class GetRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -69,98 +70,282 @@ class GetRequestOutput(insightconnect_plugin_runtime.Output): "status" ], "definitions": { - "asset": { + "request_output": { "type": "object", - "title": "asset", + "title": "request_output", "properties": { - "barcode": { + "id": { + "type": "integer", + "title": "ID", + "description": "Id of the request", + "order": 1 + }, + "subject": { "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", + "title": "Subject", + "description": "Subject of this request", + "order": 2 + }, + "requester": { + "$ref": "#/definitions/user_output", + "title": "Requester", + "description": "The requester of the request", "order": 3 }, + "description": { + "type": "string", + "title": "Description", + "description": "Description of this request", + "order": 4 + }, + "request_type": { + "$ref": "#/definitions/request_type", + "title": "Request Type", + "description": "Type of this request", + "order": 5 + }, + "impact": { + "$ref": "#/definitions/impact", + "title": "Impact", + "description": "Impact of this request", + "order": 6 + }, + "status": { + "$ref": "#/definitions/status", + "title": "Status", + "description": "Indicates the current status of this request", + "order": 7 + }, + "mode": { + "$ref": "#/definitions/mode", + "title": "Mode", + "description": "The mode in which this request is created", + "order": 8 + }, + "level": { + "$ref": "#/definitions/level", + "title": "Level", + "description": "Level of the request", + "order": 9 + }, + "urgency": { + "$ref": "#/definitions/urgency", + "title": "Urgency", + "description": "Urgency of the request", + "order": 10 + }, + "priority": { + "$ref": "#/definitions/priority", + "title": "Priority", + "description": "Priority of the request", + "order": 11 + }, + "service_category": { + "$ref": "#/definitions/service_category", + "title": "Service Category", + "description": "Service category to which this request belongs", + "order": 12 + }, + "assets": { + "type": "array", + "title": "Assets", + "description": "Array of asset objects associated with this request", + "items": { + "$ref": "#/definitions/asset" + }, + "order": 13 + }, + "site": { + "$ref": "#/definitions/site", + "title": "Site", + "description": "Denotes the site to which this request belongs", + "order": 14 + }, + "group": { + "$ref": "#/definitions/group", + "title": "Group", + "description": "The group to which the request belongs", + "order": 15 + }, + "technician": { + "$ref": "#/definitions/technician", + "title": "Technician", + "description": "The technician that was assigned to the request", + "order": 16 + }, + "category": { + "$ref": "#/definitions/category", + "title": "Category", + "description": "Category to which this request belongs", + "order": 17 + }, + "subcategory": { + "$ref": "#/definitions/subcategory", + "title": "Subcategory", + "description": "Subcategory to which this request belongs", + "order": 18 + }, + "item": { + "$ref": "#/definitions/item", + "title": "Item", + "description": "Item of this request", + "order": 19 + }, + "email_ids_to_notify": { + "type": "array", + "title": "Email IDs to Notify", + "description": "Array of Email ids, which needs to be notified about the happenings of this request", + "items": { + "type": "string" + }, + "order": 20 + }, + "is_fcr": { + "type": "boolean", + "title": "Is Fcr", + "description": "Boolean value indicating if the request has been marked as First Call Resolution", + "order": 21 + }, + "is_service_request": { + "type": "boolean", + "title": "Is Service Request", + "description": "Indicates whether the request is a service request or not", + "order": 22 + }, + "has_notes": { + "type": "boolean", + "title": "Has Notes", + "description": "Indicates whether the request has notes", + "order": 23 + }, + "is_overdue": { + "type": "boolean", + "title": "Is Overdue", + "description": "Indicates if the request is overdue", + "order": 24 + }, + "udf_fields": { + "type": "object", + "title": "Udf Fields", + "description": "Holds udf fields values associated with the request", + "order": 25 + }, + "created_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Created Time", + "description": "Time the request was created", + "order": 26 + }, + "created_by": { + "$ref": "#/definitions/user_output", + "title": "Created By", + "description": "Creator of the request", + "order": 27 + }, + "due_by_time": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Due By Time", + "description": "The due date of the request", + "order": 28 + } + } + }, + "user_output": { + "type": "object", + "title": "user_output", + "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the asset", + "description": "User ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the asset", + "description": "User name", "order": 2 + }, + "is_vipuser": { + "type": "boolean", + "title": "Is Vipuser", + "description": "Whether the user is a vip user or not", + "order": 3 } } }, - "category": { + "request_type": { "type": "object", - "title": "category", + "title": "request_type", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the category", + "description": "ID of the request type", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the category", + "description": "Name of the request type", "order": 2 } } }, - "group": { + "impact": { "type": "object", - "title": "group", + "title": "impact", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Group's id", + "description": "ID of the impact", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Group's name", + "description": "Name impact", "order": 2 } } }, - "impact": { + "status": { "type": "object", - "title": "impact", + "title": "status", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the impact", + "description": "ID of the current status", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name impact", + "description": "Name of the current status", "order": 2 } } }, - "item": { + "mode": { "type": "object", - "title": "item", + "title": "mode", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the item", + "description": "Id of the mode", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the item", + "description": "Name of the mode", "order": 2 } } @@ -183,20 +368,20 @@ class GetRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "mode": { + "urgency": { "type": "object", - "title": "mode", + "title": "urgency", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the mode", + "description": "Id of the urgency", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the mode", + "description": "Name of the urgency", "order": 2 } } @@ -219,525 +404,45 @@ class GetRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "request_output": { + "service_category": { "type": "object", - "title": "request_output", - "properties": { - "assets": { - "type": "array", - "title": "Assets", - "description": "Array of asset objects associated with this request", - "items": { - "$ref": "#/definitions/asset" - }, - "order": 13 - }, - "category": { - "$ref": "#/definitions/category", - "title": "Category", - "description": "Category to which this request belongs", - "order": 17 - }, - "created_by": { - "$ref": "#/definitions/user_output", - "title": "Created By", - "description": "Creator of the request", - "order": 27 - }, - "created_time": { - "type": "string", - "title": "Created Time", - "displayType": "date", - "description": "Time the request was created", - "format": "date-time", - "order": 26 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of this request", - "order": 4 - }, - "due_by_time": { - "type": "string", - "title": "Due By Time", - "displayType": "date", - "description": "The due date of the request", - "format": "date-time", - "order": 28 - }, - "email_ids_to_notify": { - "type": "array", - "title": "Email IDs to Notify", - "description": "Array of Email ids, which needs to be notified about the happenings of this request", - "items": { - "type": "string" - }, - "order": 20 - }, - "group": { - "$ref": "#/definitions/group", - "title": "Group", - "description": "The group to which the request belongs", - "order": 15 - }, - "has_notes": { - "type": "boolean", - "title": "Has Notes", - "description": "Indicates whether the request has notes", - "order": 23 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the request", - "order": 1 - }, - "impact": { - "$ref": "#/definitions/impact", - "title": "Impact", - "description": "Impact of this request", - "order": 6 - }, - "is_fcr": { - "type": "boolean", - "title": "Is Fcr", - "description": "Boolean value indicating if the request has been marked as First Call Resolution", - "order": 21 - }, - "is_overdue": { - "type": "boolean", - "title": "Is Overdue", - "description": "Indicates if the request is overdue", - "order": 24 - }, - "is_service_request": { - "type": "boolean", - "title": "Is Service Request", - "description": "Indicates whether the request is a service request or not", - "order": 22 - }, - "item": { - "$ref": "#/definitions/item", - "title": "Item", - "description": "Item of this request", - "order": 19 - }, - "level": { - "$ref": "#/definitions/level", - "title": "Level", - "description": "Level of the request", - "order": 9 - }, - "mode": { - "$ref": "#/definitions/mode", - "title": "Mode", - "description": "The mode in which this request is created", - "order": 8 - }, - "priority": { - "$ref": "#/definitions/priority", - "title": "Priority", - "description": "Priority of the request", - "order": 11 - }, - "request_type": { - "$ref": "#/definitions/request_type", - "title": "Request Type", - "description": "Type of this request", - "order": 5 - }, - "requester": { - "$ref": "#/definitions/user_output", - "title": "Requester", - "description": "The requester of the request", - "order": 3 - }, - "service_category": { - "$ref": "#/definitions/service_category", - "title": "Service Category", - "description": "Service category to which this request belongs", - "order": 12 - }, - "site": { - "$ref": "#/definitions/site", - "title": "Site", - "description": "Denotes the site to which this request belongs", - "order": 14 - }, - "status": { - "$ref": "#/definitions/status", - "title": "Status", - "description": "Indicates the current status of this request", - "order": 7 - }, - "subcategory": { - "$ref": "#/definitions/subcategory", - "title": "Subcategory", - "description": "Subcategory to which this request belongs", - "order": 18 - }, - "subject": { - "type": "string", - "title": "Subject", - "description": "Subject of this request", - "order": 2 - }, - "technician": { - "$ref": "#/definitions/technician", - "title": "Technician", - "description": "The technician that was assigned to the request", - "order": 16 - }, - "udf_fields": { - "type": "object", - "title": "Udf Fields", - "description": "Holds udf fields values associated with the request", - "order": 25 - }, - "urgency": { - "$ref": "#/definitions/urgency", - "title": "Urgency", - "description": "Urgency of the request", - "order": 10 - } - }, - "definitions": { - "asset": { - "type": "object", - "title": "asset", - "properties": { - "barcode": { - "type": "string", - "title": "Barcode", - "description": "Barcode of the asset", - "order": 3 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the asset", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the asset", - "order": 2 - } - } - }, - "category": { - "type": "object", - "title": "category", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the category", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the category", - "order": 2 - } - } - }, - "group": { - "type": "object", - "title": "group", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Group's id", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Group's name", - "order": 2 - } - } - }, - "impact": { - "type": "object", - "title": "impact", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the impact", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name impact", - "order": 2 - } - } - }, - "item": { - "type": "object", - "title": "item", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the item", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the item", - "order": 2 - } - } - }, - "level": { - "type": "object", - "title": "level", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the level", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the level", - "order": 2 - } - } - }, - "mode": { - "type": "object", - "title": "mode", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the mode", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the mode", - "order": 2 - } - } - }, - "priority": { - "type": "object", - "title": "priority", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the priority", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the priority", - "order": 2 - } - } - }, - "request_type": { - "type": "object", - "title": "request_type", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the request type", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the request type", - "order": 2 - } - } - }, - "service_category": { - "type": "object", - "title": "service_category", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the service category", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service category", - "order": 2 - } - } - }, - "site": { - "type": "object", - "title": "site", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Site's id", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Site's name", - "order": 2 - } - } - }, - "status": { - "type": "object", - "title": "status", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the current status", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the current status", - "order": 2 - } - } - }, - "subcategory": { - "type": "object", - "title": "subcategory", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the subcategory", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the subcategory", - "order": 2 - } - } - }, - "technician": { - "type": "object", - "title": "technician", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Technician ID", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Technician Name", - "order": 2 - } - } - }, - "urgency": { - "type": "object", - "title": "urgency", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Id of the urgency", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the urgency", - "order": 2 - } - } - }, - "user_output": { - "type": "object", - "title": "user_output", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "User ID", - "order": 1 - }, - "is_vipuser": { - "type": "boolean", - "title": "Is Vipuser", - "description": "Whether the user is a vip user or not", - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "User name", - "order": 2 - } - } - } - } - }, - "request_type": { - "type": "object", - "title": "request_type", + "title": "service_category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the request type", + "description": "ID of the service category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the request type", + "description": "Name of the service category", "order": 2 } } }, - "service_category": { + "asset": { "type": "object", - "title": "service_category", + "title": "asset", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the service category", + "description": "Id of the asset", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the service category", + "description": "Name of the asset", "order": 2 + }, + "barcode": { + "type": "string", + "title": "Barcode", + "description": "Barcode of the asset", + "order": 3 } } }, @@ -759,98 +464,92 @@ class GetRequestOutput(insightconnect_plugin_runtime.Output): } } }, - "status": { + "group": { "type": "object", - "title": "status", + "title": "group", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the current status", + "description": "Group's id", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the current status", + "description": "Group's name", "order": 2 } } }, - "subcategory": { + "technician": { "type": "object", - "title": "subcategory", + "title": "technician", "properties": { "id": { "type": "integer", "title": "ID", - "description": "ID of the subcategory", + "description": "Technician ID", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the subcategory", + "description": "Technician Name", "order": 2 } } }, - "technician": { + "category": { "type": "object", - "title": "technician", + "title": "category", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Technician ID", + "description": "ID of the category", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Technician Name", + "description": "Name of the category", "order": 2 } } }, - "urgency": { + "subcategory": { "type": "object", - "title": "urgency", + "title": "subcategory", "properties": { "id": { "type": "integer", "title": "ID", - "description": "Id of the urgency", + "description": "ID of the subcategory", "order": 1 }, "name": { "type": "string", "title": "Name", - "description": "Name of the urgency", + "description": "Name of the subcategory", "order": 2 } } }, - "user_output": { + "item": { "type": "object", - "title": "user_output", + "title": "item", "properties": { "id": { "type": "integer", "title": "ID", - "description": "User ID", + "description": "ID of the item", "order": 1 }, - "is_vipuser": { - "type": "boolean", - "title": "Is Vipuser", - "description": "Whether the user is a vip user or not", - "order": 3 - }, "name": { "type": "string", "title": "Name", - "description": "User name", + "description": "Name of the item", "order": 2 } } diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/__init__.py index 14cd1b70d8..e734c581f1 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetResolution diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/schema.py index d3b89d6b42..a140e091de 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/get_resolution/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,17 +9,17 @@ class Component: class Input: REQUEST_ID = "request_id" - + class Output: CONTENT = "content" REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class GetResolutionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -33,7 +33,8 @@ class GetResolutionInput(insightconnect_plugin_runtime.Input): }, "required": [ "request_id" - ] + ], + "definitions": {} } """) @@ -42,7 +43,7 @@ def __init__(self): class GetResolutionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -74,7 +75,8 @@ class GetResolutionOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/__init__.py index 2b0275764a..d27bf54120 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import PickupRequest diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/schema.py index b4debcd1a5..a882275c44 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/actions/pickup_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,16 +9,16 @@ class Component: class Input: REQUEST_ID = "request_id" - + class Output: REQUEST_ID = "request_id" STATUS = "status" STATUS_CODE = "status_code" - + class PickupRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -32,7 +32,8 @@ class PickupRequestInput(insightconnect_plugin_runtime.Input): }, "required": [ "request_id" - ] + ], + "definitions": {} } """) @@ -41,7 +42,7 @@ def __init__(self): class PickupRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -67,7 +68,8 @@ class PickupRequestOutput(insightconnect_plugin_runtime.Output): }, "required": [ "status" - ] + ], + "definitions": {} } """) diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/__init__.py index a515dcf6b0..c78d3356be 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .connection import Connection diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/schema.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/schema.py index e4b106f177..9ffc1f9c80 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/schema.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/connection/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -7,10 +7,10 @@ class Input: API_KEY = "api_key" SDP_BASE_URL = "sdp_base_url" SSL_VERIFY = "ssl_verify" - + class ConnectionSchema(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -46,18 +46,18 @@ class ConnectionSchema(insightconnect_plugin_runtime.Input): "type": "object", "title": "Credential: Secret Key", "description": "A shared secret key", + "required": [ + "secretKey" + ], "properties": { "secretKey": { "type": "string", "title": "Secret Key", - "displayType": "password", "description": "The shared secret key", - "format": "password" + "format": "password", + "displayType": "password" } - }, - "required": [ - "secretKey" - ] + } } } } diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/tasks/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/tasks/__init__.py new file mode 100644 index 0000000000..7020c9a4ad --- /dev/null +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/tasks/__init__.py @@ -0,0 +1,2 @@ +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + diff --git a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/triggers/__init__.py b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/triggers/__init__.py index bace8db897..7020c9a4ad 100755 --- a/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/triggers/__init__.py +++ b/plugins/manage_engine_service_desk/icon_manage_engine_service_desk/triggers/__init__.py @@ -1 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + diff --git a/plugins/manage_engine_service_desk/plugin.spec.yaml b/plugins/manage_engine_service_desk/plugin.spec.yaml index b61c3666a9..a7227118d3 100644 --- a/plugins/manage_engine_service_desk/plugin.spec.yaml +++ b/plugins/manage_engine_service_desk/plugin.spec.yaml @@ -4,7 +4,8 @@ products: [insightconnect] name: manage_engine_service_desk title: Manage Engine Service Desk description: ManageEngine's Service Desk has the ability to centralize and capture reported issues, allowing security and IT administrators to track and manage all incidents in an easy manner. The numerous help desk tickets raised are organized and tracked in the Requests module. The Requests module enables you to handle tickets promptly, assign tickets to technicians, merge similar requests, and so on -version: 1.0.1 +version: 1.0.2 +connection_version: 1 supported_versions: ["ServiceDesk Plus 13008"] vendor: rapid7 support: rapid7 @@ -17,10 +18,32 @@ resources: tags: - Manage Engine - Service Desk +key_features: + - "Manage requests - add, edit, add resolution, assign, close, delete, pickup, get details and get list of requests" + - "Manage request notes - add, edit, delete, get list of notes" +sdk: + type: full + version: 6.1.4 + user: nobody +links: + - "[Manage Engine Service Desk](https://manageengine.com/products/service-desk)" +references: + - "[Manage Engine Service Desk API Docs](https://www.manageengine.com/products/service-desk/sdpod-v3-api)" +requirements: + - "The authentication between ServiceDesk Plus and an Insight Connect application is through an API key. A unique key is generated for a technician with login permission in the ServiceDesk Plus application." + - "To generate the API Key, click Admin -> Technicians under User block." + - "If you want to generate the API key for an existing technician, then click the edit icon beside the technician." + - "If you want to generate the API key for a new technician, click Add New Technician link, enter the technician details and provide login permission." + - "Click Generate link under the API key details block. You can select a time frame for the key to expire using the calendar icon or simply retain the same key indefinitely." + - "If a key is already generated for the technician, a Re-generate link appears." hub_tags: use_cases: [user_management] keywords: [management] features: [] +version_history: + - "1.0.2 - Bumping requirements.txt | SDK bump to 6.1.4" + - "1.0.1 - Fix `int` conversion issue in `Get List Request` and `Get Request` actions" + - "1.0.0 - Initial plugin - Create actions: `Add Request`, `Add Request Note`, `Add Resolution`, `Assign Request`, `Close Request`, `Delete Request`, `Delete Request Note`, `Edit Request`, `Edit Request Note`, `Get List Request`, `Get List Request Notes`, `Get Request`, `Get Resolution`, `Pickup Request`" types: request_type: id: @@ -610,7 +633,7 @@ actions: example: 2000 add_request: title: Add Request - description: Add a new request. Subject and requester parameters are required, others are optional. In every parameter containing `ID` and `Name` fields please provide at least one of them + description: This action is used to add a new request. Subject and requester parameters are required, others are optional. In every parameter containing `ID` and `Name` fields please provide at least one of them input: subject: title: Subject diff --git a/plugins/manage_engine_service_desk/requirements.txt b/plugins/manage_engine_service_desk/requirements.txt index 7d2c40d29c..d8f5e66f7e 100755 --- a/plugins/manage_engine_service_desk/requirements.txt +++ b/plugins/manage_engine_service_desk/requirements.txt @@ -1,5 +1,4 @@ # List third-party dependencies here, separated by newlines. # All dependencies must be version-pinned, eg. requests==1.2.0 # See: https://pip.pypa.io/en/stable/user_guide/#requirements-files -requests==2.28.1 -parameterized==0.8.1 \ No newline at end of file +parameterized==0.9.0 diff --git a/plugins/manage_engine_service_desk/setup.py b/plugins/manage_engine_service_desk/setup.py index b3e7029cd0..8c9ab91978 100755 --- a/plugins/manage_engine_service_desk/setup.py +++ b/plugins/manage_engine_service_desk/setup.py @@ -1,9 +1,9 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from setuptools import setup, find_packages setup(name="manage_engine_service_desk-rapid7-plugin", - version="1.0.1", + version="1.0.2", description="ManageEngine's Service Desk has the ability to centralize and capture reported issues, allowing security and IT administrators to track and manage all incidents in an easy manner. The numerous help desk tickets raised are organized and tracked in the Requests module. The Requests module enables you to handle tickets promptly, assign tickets to technicians, merge similar requests, and so on", author="rapid7", author_email="", diff --git a/plugins/manage_engine_service_desk/unit_test/__init__.py b/plugins/manage_engine_service_desk/unit_test/__init__.py new file mode 100644 index 0000000000..d9ae09fc16 --- /dev/null +++ b/plugins/manage_engine_service_desk/unit_test/__init__.py @@ -0,0 +1,4 @@ +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT +import sys + +sys.path.append("../") \ No newline at end of file