diff --git a/EventNames.MD b/EventNames.MD deleted file mode 100644 index c296066..0000000 --- a/EventNames.MD +++ /dev/null @@ -1,38 +0,0 @@ -# Event Names -## Direct Supplier Incident -**add**: `agile-process-teams:add-direct-supplier-incident:v3` -**edit**: `agile-process-teams:edit-direct-supplier-incident:v3` -**copy**: `agile-process-teams:copy-direct-supplier-incident:v2` -**close**: `agile-process-teams:close-direct-supplier-incident:v2` -**reopen**: `agile-process-teams:reopen-direct-supplier-incident:v1` -**submitPartner**: `agile-process-teams:submit-direct-supplier-incident-to-partner:v1` - -## Indirect Supplier Incident -**add**: `agile-process-teams:add-indirect-supplier-incident:v3` -**edit**: `agile-process-teams:edit-indirect-supplier-incident:v3` -**copy**: `agile-process-teams:copy-indirect-supplier-incident:v2` -**close**: `agile-process-teams:close-indirect-supplier-incident:v2` -**reopen**: `agile-process-teams:reopen-indirect-supplier-incident:v1` -**submitPartner**: `agile-process-teams:submit-indirect-supplier-incident-to-partner:v1` - -## External Manufacturing Incident -**add**: `agile-process-teams:add-external-manufacturing-incident:v3` -**edit**: `agile-process-teams:edit-external-manufacturing-incident:v3` -**copy**: `agile-process-teams:copy-external-manufacturing-incident:v1` -**close**: `agile-process-teams:close-external-manufacturing-incident:v2` -**reopen**: `agile-process-teams:reopen-external-manufacturing-incident:v1` -**submitPartner**: `agile-process-teams:submit-external-manufacturing-incident-to-partner:v1` - -## Internal Manufacturing Incident -**add**: `agile-process-teams:add-internal-manufacturing-incident:v3` -**edit**: `agile-process-teams:edit-internal-manufacturing-incident:v3` -**copy**: `agile-process-teams:copy-internal-manufacturing-incident:v1` -**close**: `agile-process-teams:close-internal-manufacturing-incident:v2` -**reopen**: `agile-process-teams:reopen-internal-manufacturing-incident:v1` - -## Shared Incident Operations -**add**: `agile-process-teams:add-comment-for-incident:v1` -**edit**: `agile-process-teams:edit-comment-for-incident:v1` -**list**: `agile-process-teams:list-comments-for-incident:v1` -**follow/unfollow**: `agile-process-teams:toggle-user-follows-incident:v1` -**getHistory**: `agile-process-teams:get-activity-history-for-incident:v1` diff --git a/python/FormatRequests.MD b/FormatRequests.md similarity index 97% rename from python/FormatRequests.MD rename to FormatRequests.md index 528d19c..93ba383 100644 --- a/python/FormatRequests.MD +++ b/FormatRequests.md @@ -22,7 +22,7 @@ The request body header identifies how APT processes your request. All items be | Name | Type | Description | Value | | -------------------- | ------- | ---------------------------------------------------------------------- | ------------------------------------------ | | `headerVersion` | integer | The version identifier for the request | `1` | -| `eventName` | string | The fully qualified name of the request event. | See [event name mapping](../EventNames.MD) | +| `eventName` | string | The fully qualified name of the request event. | See [event name mapping](../EventNames.md) | | `ownerID` | string | The Owner company associated with the request. | See [authentication](../authentication.md) | | `processNetworkId` | string | The network within the Owner company containing the process. | See [authentication](../authentication.md) | | `appName` | string | The application that owns the event. | `"agile-process-teams"` | @@ -55,4 +55,4 @@ An example of a complete payload body for adding a direct supplier incident: # Next Review [event name mapping](eventNames.json) for each event type. -Follow [the quickstart](Quickstart.MD) for an example using the APT-SCWM API. +Follow [the quickstart](Quickstart.md) for an example using the APT-SCWM API. diff --git a/GraphQL/GraphQL_Requests.md b/GraphQL/GraphQL_Requests.md new file mode 100644 index 0000000..c57d6e8 --- /dev/null +++ b/GraphQL/GraphQL_Requests.md @@ -0,0 +1,98 @@ +# Incorporating GraphQL into your automation solutions # +The GraphQL code samples provided contain the payloads necessary to make requests to the Opus platform. +Use your preferred programming language to construct the HTTP request for the desired action. Your ```Headers``` section contains the relevant authorization data for your environment. +Incorporate the payload into the body of your request. The request text must be converted to a JSON string for inclusion. +For example: +### Original Query ### +Query: +``` +mutation AddIncident($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} +``` +Variables +``` +{ +"action": "Addincident", +"payload":{ + "aptBusinessObjectSummary": "Printing error", + "aptBusinessObjectDescription":"Label printing offset", + "businessPriority":"LOW", + "incidentType":"LABEL_COMPLIANCE_ERROR", + "resolutionDueDate":"1736613281000" // 11 Jan 2025 + } +} +``` +Add your converted strings to a payload. Create a single object containing query and variables objects. +### Python ### +``` +import requests +import json + +url = "https://valvir-opus.tracelink.com/api/graphql" + +payload = "{\"query\":\"mutation AddIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addincident\",\"payload\": {\"aptBusinessObjectSummary\":\"Printing error\",\"aptBusinessObjectDescription\": \"Label printing offset on package\",\"businessPriority\": \"LOW\",\"incidentType\":\"LABEL_COMPLIANCE_ERROR\",\"resolutionDueDate\": \"1736613281000\"}}}" +headers = { + 'Authorization': 'Basic YOUR_AUTH_TOKEN', + 'Content-Type': 'application/json', + 'Dataspace': 'default', + 'companyId': 'YOUR_COMPANY_ID', + 'processNetworkId': 'YOUR_NETWORK_ID' +} + +response = requests.request("POST", url, headers=headers, data=payload) + +print(response.text) +``` +### Node.js ### +``` +var request = require('request'); +var options = { + 'method': 'POST', + 'url': 'https://valvir-opus.tracelink.com/api/graphql', + 'headers': { + 'Authorization': 'Basic YOUR_AUTH_TOKEN', + 'Content-Type': 'application/json', + 'Dataspace': 'default', + 'companyId': 'YOUR_COMPANY_ID', + 'processNetworkId': 'YOUR_NETWORK_ID' + }, + body: JSON.stringify({ + query: `mutation AddIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +}`, + variables: + {"action": "Addincident", + "payload": + {"aptBusinessObjectSummary":"Printing error", + "aptBusinessObjectDescription": "Label printing offset on package", + "businessPriority": "LOW", + "incidentType":"LABEL_COMPLIANCE_ERROR", + "resolutionDueDate": "1736613281000"}} + }) +}; +request(options, function (error, response) { + if (error) throw new Error(error); + console.log(response.body); +}); +``` +In this example, Opus automatically assigns Business Object and Id values. The response will contain both values and be similar to the example below: +``` +{ + "data": { + "genericActionCall": { + "result": "{\"aptBusinessObjectId\":\"USPT-0000\",\"id\":\"aa0a00aa-0a00-0aaa-0a00-000000a000000\"}", + "__typename": "ReadResult" + } + } +} +``` +The ```id``` item allows subsequent calls to update, comment, copy, close, or reopen this new record. diff --git a/GraphQL/ceIncident/addCEIncident.py b/GraphQL/ceIncident/addCEIncident.py deleted file mode 100644 index 7e56fb4..0000000 --- a/GraphQL/ceIncident/addCEIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddComplianceException($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addcomplianceexception\",\"payload\":{\"aptBusinessObjectSummary\": \"GraphQL flow test run 1\",\"aptBusinessObjectDescription\":\"Adding a compliance exception incident programmatically from postman using graphQL walkthrough demo.\",\"businessPriority\":\"MEDIUM\",\"resolutionDueDate\":\"1736613281000\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/ceIncident/addCEIncidentComment.py b/GraphQL/ceIncident/addCEIncidentComment.py deleted file mode 100644 index fea2cfb..0000000 --- a/GraphQL/ceIncident/addCEIncidentComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addcommentforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"complianceException\",\"aptCommentBox\":{\"aptComment\":{\"commentText\": \"Adding a test comment using GraphQL via Python command line.\",\"visibilityType\": \"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/ceIncident/editCEIncident.py b/GraphQL/ceIncident/editCEIncident.py deleted file mode 100644 index b7c671b..0000000 --- a/GraphQL/ceIncident/editCEIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editcomplianceexception\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Editing an compliance exception programmatically using graphQL via Python.\",\"businessPriority\":\"LOW\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/ceIncident/getCEIncidentHistory.py b/GraphQL/ceIncident/getCEIncidentHistory.py deleted file mode 100644 index 2eaf6ec..0000000 --- a/GraphQL/ceIncident/getCEIncidentHistory.py +++ /dev/null @@ -1,23 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"complianceException\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# print(response.text) -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/ceIncident/listCEIncidentComments.py b/GraphQL/ceIncident/listCEIncidentComments.py deleted file mode 100644 index 85d2692..0000000 --- a/GraphQL/ceIncident/listCEIncidentComments.py +++ /dev/null @@ -1,23 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforincident\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"complianceException\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# print(response.text) -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/ceIncident/readCEIncident.py b/GraphQL/ceIncident/readCEIncident.py deleted file mode 100644 index 4a3a168..0000000 --- a/GraphQL/ceIncident/readCEIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on ComplianceException {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n resolutionDueDate\\n businessPriority\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\n\",\"variables\":{\"type\":\"ComplianceException\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/addChange.py b/GraphQL/change/addChange.py deleted file mode 100644 index 5c00924..0000000 --- a/GraphQL/change/addChange.py +++ /dev/null @@ -1,26 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddChange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addchange\",\"payload\":{\"aptBusinessObjectSummary\":\"GraphQL using python demo\",\"aptBusinessObjectDescription\":\"Test case entering a change request using postman and graphQL\",\"isVisible\":false,\"businessPriority\":\"LOW\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/addChangeComment.py b/GraphQL/change/addChangeComment.py deleted file mode 100644 index c2b4ddb..0000000 --- a/GraphQL/change/addChangeComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addcommentforchange\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"complianceException\",\"aptCommentBox\":{\"aptComment\":{\"commentText\": \"Adding a test comment using GraphQL via Python command line.\",\"visibilityType\": \"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/edditChange.py b/GraphQL/change/edditChange.py deleted file mode 100644 index 70545ae..0000000 --- a/GraphQL/change/edditChange.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation Editchange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editchange\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Editing a compliance exception programmatically using graphQL and Python.\",\"businessPriority\":\"LOW\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/getChangeActivityHistory.py b/GraphQL/change/getChangeActivityHistory.py deleted file mode 100644 index ff8bebb..0000000 --- a/GraphQL/change/getChangeActivityHistory.py +++ /dev/null @@ -1,23 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"change\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# print(response.text) -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/listChangeComments.py b/GraphQL/change/listChangeComments.py deleted file mode 100644 index 799fc5b..0000000 --- a/GraphQL/change/listChangeComments.py +++ /dev/null @@ -1,23 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforchange\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"change\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# print(response.text) -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/change/readChange.py b/GraphQL/change/readChange.py deleted file mode 100644 index 7f925f4..0000000 --- a/GraphQL/change/readChange.py +++ /dev/null @@ -1,26 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readChange($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on Change {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n businessPriority\\n changeType\\n implementationDueDate\\n implementationTeam\\n subjectMatterExperts{\\n subjectMatterExpertName\\n subjectMatterExpertEmail\\n }\\n changeImpact{\\n changeReferenceIdentifiers{\\n referenceTransactionType\\n value\\n }\\n riskType\\n implementationNeededByDate\\n businessScopeImpact\\n otherBusinessScopeImpact\\n reasonForChange\\n reasonForChangeNotes\\n potentialRisks\\n evaluationsOfChange\\n }\\n createdByPartner\\n productId\\n aptBusinessObjectImpactsLocationMasterData{\\n locationType\\n locationContact\\n partnerLocationId\\n }\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n aptBusinessObjectContainsAttachment{\\n to {\\n ... on AptAttachment{\\n data{\\n fileName\\n fileSize\\n visibilityType\\n fileS3Location\\n }\\n }\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\n\",\"variables\":{\"type\":\"Change\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -print(response.text) - -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/addDocReview.py b/GraphQL/documentReview/addDocReview.py deleted file mode 100644 index fe40622..0000000 --- a/GraphQL/documentReview/addDocReview.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Adddocumentreview\",\"payload\":{\"aptBusinessObjectSummary\":\"New Document Review using graphQL and postman\",\"aptBusinessObjectDescription\":\"Adding a document review using Python and graphQL\",\"businessPriority\":\"LOW\",\"approvalDueDate\": \"1736613281000\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/addDocReviewComment.py b/GraphQL/documentReview/addDocReviewComment.py deleted file mode 100644 index 3ca6ea1..0000000 --- a/GraphQL/documentReview/addDocReviewComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addcommentfordocumentreview\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"documentReview\",\"aptCommentBox\":{\"aptComment\":{\"commentText\":\"Adding a test comment to Document Review using GraphQL via Python command line.\",\"visibilityType\":\"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/editDocReview.py b/GraphQL/documentReview/editDocReview.py deleted file mode 100644 index 1c348d8..0000000 --- a/GraphQL/documentReview/editDocReview.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editdocumentreview\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Using graphql and Python to edit document review incident\",\"businessPriority\":\"LOW\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/getDocRevActivity.py b/GraphQL/documentReview/getDocRevActivity.py deleted file mode 100644 index 4d8d625..0000000 --- a/GraphQL/documentReview/getDocRevActivity.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"documentReview\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/listDocRevComments.py b/GraphQL/documentReview/listDocRevComments.py deleted file mode 100644 index 50a0805..0000000 --- a/GraphQL/documentReview/listDocRevComments.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListDocumentReviewComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsfordocumentreview\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"documentReview\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/documentReview/readDocReview.py b/GraphQL/documentReview/readDocReview.py deleted file mode 100644 index 8f62bbf..0000000 --- a/GraphQL/documentReview/readDocReview.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readDocumentReview($id: String!, $type: String!)\\n{\\n genericGetObject(type: $type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on DocumentReview {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n businessPriority\\n createdByPartner\\n productId\\n aptBusinessObjectImpactsLocationMasterData{\\n locationType\\n locationContact\\n partnerLocationId\\n }\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n aptBusinessObjectContainsAttachment{\\n to {\\n ... on AptAttachment{\\n data{\\n fileName\\n fileSize\\n visibilityType\\n fileS3Location\\n }\\n }\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n } \\n}\",\"variables\":{\"type\":\"DocumentReview\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/addDSIncident.py b/GraphQL/dsIncident/addDSIncident.py deleted file mode 100644 index 4ccd937..0000000 --- a/GraphQL/dsIncident/addDSIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Adddirectsupplierincident\",\"payload\":{\"aptBusinessObjectSummary\": \"GraphQL Python DS Incident test run 1\",\"aptBusinessObjectDescription\":\"Adding an incident programmatically using graphQL via Python.\",\"directSupplierImpact\":{\"businessPriority\":\"MEDIUM\"},\"resolutionDueDate\":1736613281000}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/addDSIncidentComment.py b/GraphQL/dsIncident/addDSIncidentComment.py deleted file mode 100644 index d85f252..0000000 --- a/GraphQL/dsIncident/addDSIncidentComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addcommentforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"directSupplierIncident\",\"aptCommentBox\":{\"aptComment\":{\"commentText\": \"Adding a test comment using GraphQL via Python command line.\",\"visibilityType\": \"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/editDSIncident.py b/GraphQL/dsIncident/editDSIncident.py deleted file mode 100644 index 303268f..0000000 --- a/GraphQL/dsIncident/editDSIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editdirectsupplierincident\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Editing an incident programmatically using graphQL via Python command line.\",\"businessPriority\":\"LOW\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/getActivityHistoryForDSIncidents.py b/GraphQL/dsIncident/getActivityHistoryForDSIncidents.py deleted file mode 100644 index 412db4e..0000000 --- a/GraphQL/dsIncident/getActivityHistoryForDSIncidents.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"directSupplierIncident\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/listDSIncidentComments.py b/GraphQL/dsIncident/listDSIncidentComments.py deleted file mode 100644 index 71d29cc..0000000 --- a/GraphQL/dsIncident/listDSIncidentComments.py +++ /dev/null @@ -1,30 +0,0 @@ -import requests -import json -import sys - -url = "https://valvir-opus.tracelink.com/api/graphql" - -#id = sys.argv[1] -#print("Passing in id {0}".format(id)) - -payload = "{\"query\":\"query ListIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforincident\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"directSupplierIncident\"}}}" - -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/dsIncident/readDSIncident.py b/GraphQL/dsIncident/readDSIncident.py deleted file mode 100644 index e3dcca5..0000000 --- a/GraphQL/dsIncident/readDSIncident.py +++ /dev/null @@ -1,26 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on DirectSupplierIncident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n resolutionDueDate\\n directSupplierImpact{\\n businessPriority\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":{\"type\":\"DirectSupplierIncident\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# adding some parsing to beautify the results -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/addEMIncident.py b/GraphQL/emIncident/addEMIncident.py deleted file mode 100644 index e3ee736..0000000 --- a/GraphQL/emIncident/addEMIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addexternalmanufacturingincident\",\"payload\":{\"aptBusinessObjectSummary\": \"GraphQL Python test run\",\"aptBusinessObjectDescription\":\"Adding an incident programmatically from postman using graphQL walkthrough demo.\",\"externalManufacturingImpact\":{\"businessPriority\":\"MEDIUM\"},\"resolutionDueDate\":1736613281000}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/addEMIncidentComment.py b/GraphQL/emIncident/addEMIncidentComment.py deleted file mode 100644 index 2ca453f..0000000 --- a/GraphQL/emIncident/addEMIncidentComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addcommentforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"externalManufacturingIncident\",\"aptCommentBox\":{\"aptComment\":{\"commentText\":\"Adding a test comment using GraphQL via Python.\",\"visibilityType\":\"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/editEMIncident.py b/GraphQL/emIncident/editEMIncident.py deleted file mode 100644 index 2c8ba2e..0000000 --- a/GraphQL/emIncident/editEMIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editexternalmanufacturingincident\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Editing an external manufacturing incident programmatically using graphQL and Python.\",\"businessPriority\":\"MEDIUM\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/getEMIncidentHistory.py b/GraphQL/emIncident/getEMIncidentHistory.py deleted file mode 100644 index a28a427..0000000 --- a/GraphQL/emIncident/getEMIncidentHistory.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"externalManufacturingIncident\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/listEMIncidentComments.py b/GraphQL/emIncident/listEMIncidentComments.py deleted file mode 100644 index 557bf24..0000000 --- a/GraphQL/emIncident/listEMIncidentComments.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforincident\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"externalManufacturingIncident\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/emIncident/readEMIncident.py b/GraphQL/emIncident/readEMIncident.py deleted file mode 100644 index 3c1877d..0000000 --- a/GraphQL/emIncident/readEMIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on ExternalManufacturingIncident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n resolutionDueDate\\n externalManufacturingImpact{\\n businessImpact\\n businessPriority\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":{\"type\":\"ExternalManufacturingIncident\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/graphql b/GraphQL/graphql new file mode 100644 index 0000000..40ca9d2 --- /dev/null +++ b/GraphQL/graphql @@ -0,0 +1,6 @@ + mutation AddChangeComments($action: String!, $payload: JSON!) + {genericActionCall(action: $action, payload: $payload) + { + result + __typename} + } \ No newline at end of file diff --git a/GraphQL/incident/addIncident.py b/GraphQL/incident/addIncident.py deleted file mode 100644 index dc73b8f..0000000 --- a/GraphQL/incident/addIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addincident\",\"payload\":{\"aptBusinessObjectSummary\": \"GraphQL Python3 test run 1\",\"aptBusinessObjectDescription\":\"Adding an incident programmatically from postman using graphQL walkthrough demo.\",\"businessPriority\":\"MEDIUM\",\"incidentType\":\"LABEL_COMPLIANCE_ERROR\",\"resolutionDueDate\":\"1736613281000\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/incident/addIncidentComment.py b/GraphQL/incident/addIncidentComment.py deleted file mode 100644 index 73566ec..0000000 --- a/GraphQL/incident/addIncidentComment.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addcommentforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"incident\",\"aptCommentBox\":{\"aptComment\":{\"commentText\": \"Adding a test comment using GraphQL via Python.\",\"visibilityType\": \"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/incident/editIncident.py b/GraphQL/incident/editIncident.py deleted file mode 100644 index 9bfc0a6..0000000 --- a/GraphQL/incident/editIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Editincident\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectSummary\": \"GraphQL Python test edit 1\",\"aptBusinessObjectDescription\":\"Editing an incident programmatically using graphQL for a demo.\",\"businessPriority\":\"LOW\",\"responsiblePartyAtParner\":{}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/incident/getActivityHistoryForIncident.py b/GraphQL/incident/getActivityHistoryForIncident.py deleted file mode 100644 index f3013fd..0000000 --- a/GraphQL/incident/getActivityHistoryForIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"incident\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/incident/listIncidentComments.py b/GraphQL/incident/listIncidentComments.py deleted file mode 100644 index a62a37f..0000000 --- a/GraphQL/incident/listIncidentComments.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforincident\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"incident\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/incident/readIncident.py b/GraphQL/incident/readIncident.py deleted file mode 100644 index cdcb700..0000000 --- a/GraphQL/incident/readIncident.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query readIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on Incident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n businessPriority\\n resolutionDueDate\\n incidentConclusion {\\n dateClosed\\n finalRootCause\\n resolutionType\\n isReoccuring\\n closingStatement\\n __typename\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n issueRelatedToImpactedProductDetail {\\n to {\\n ... on ProductMasterData {\\n id\\n data {\\n productItemInformation {\\n productName\\n packSize\\n strength\\n dosageForm\\n productLanguageCode\\n isLightSensitive\\n __typename\\n }\\n packagingInformation {\\n packagingCode {\\n packagingCodeType\\n packagingCodeValue\\n __typename\\n }\\n __typename\\n }\\n regulatoryItemCodes {\\n regulatoryItemCode{\\n regulatoryItemCodeType\\n regulatoryItemCodeValue\\n __typename\\n }\\n __typename\\n }\\n packagingInformationAndRegulatoryItemCodesDerivedField\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n impactedLots\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":{\"type\":\"Incident\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/master/getCompanyMasterData.py b/GraphQL/master/getCompanyMasterData.py deleted file mode 100644 index 9805fd6..0000000 --- a/GraphQL/master/getCompanyMasterData.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query getQueryResults($regulatoryCompanyIdentifierValue: String!, $regulatoryCompanyIdentifierType: String!)\\n {\\n genericActionCall(\\n action: \\\"Getcompanybyidentifier\\\",\\n payload:{\\n regulatoryCompanyIdentifierValue: $regulatoryCompanyIdentifierValue,\\n regulatoryCompanyIdentifierType: $regulatoryCompanyIdentifierType\\n }\\n )\\n{result}\\n}\",\"variables\":{\"regulatoryCompanyIdentifierValue\":\"YOUR_COMPANY_ID\",\"regulatoryCompanyIdentifierType\":\"GLN\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/master/getPartnerMasterData.py b/GraphQL/master/getPartnerMasterData.py deleted file mode 100644 index bebdf7b..0000000 --- a/GraphQL/master/getPartnerMasterData.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query getQueryResults($regulatoryCompanyIdentifierValue: String!, $regulatoryCompanyIdentifierType: String!)\\n {\\n genericActionCall(\\n action: \\\"Getcompanybyidentifier\\\",\\n payload:{\\n regulatoryCompanyIdentifierValue: $regulatoryCompanyIdentifierValue,\\n regulatoryCompanyIdentifierType: $regulatoryCompanyIdentifierType\\n }\\n )\\n{result}\\n}\",\"variables\":{\"regulatoryCompanyIdentifierValue\":\"PARTNER_COMPANY_ID\",\"regulatoryCompanyIdentifierType\":\"GLN\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/master/getProductMasterData.py b/GraphQL/master/getProductMasterData.py deleted file mode 100644 index e2ad606..0000000 --- a/GraphQL/master/getProductMasterData.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query getProductMasterData($action: String!, $regulatoryItemCodeValue: String!, $regulatoryItemCodeType: String!)\\n{\\n genericActionCall(\\n action: $action,\\n payload:\\n {\\n regulatoryItemCodeValue: $regulatoryItemCodeValue,\\n regulatoryItemCodeType: $regulatoryItemCodeType\\n }\\n )\\n {\\n result\\n __typename\\n }\\n}\",\"variables\":{\"action\":\"Getproductbyitemcode\",\"regulatoryItemCodeValue\":\"YOUR_PRODUCT_ID\",\"regulatoryItemCodeType\":\"ITEM_CODE_TYPE\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/payload_samples/change_request/addChange.gql b/GraphQL/payload_samples/change_request/addChange.gql new file mode 100644 index 0000000..fa72229 --- /dev/null +++ b/GraphQL/payload_samples/change_request/addChange.gql @@ -0,0 +1,18 @@ +mutation AddChange($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Addchange", +"payload":{ + "aptBusinessObjectSummary": "GraphQL using postman demo", + "aptBusinessObjectDescription":"Test case entering a change request using postman and graphQL", + "isVisible": false, + "businessPriority": "MEDIUM" + } +} diff --git a/GraphQL/payload_samples/change_request/addChangeComments.gql b/GraphQL/payload_samples/change_request/addChangeComments.gql new file mode 100644 index 0000000..e5f50e0 --- /dev/null +++ b/GraphQL/payload_samples/change_request/addChangeComments.gql @@ -0,0 +1,22 @@ +mutation AddChangeComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Addcommentforchange", +"payload":{ + "processId":"{{change_id}}", + "processType":"change", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/change_request/closeChange.gql b/GraphQL/payload_samples/change_request/closeChange.gql new file mode 100644 index 0000000..2479978 --- /dev/null +++ b/GraphQL/payload_samples/change_request/closeChange.gql @@ -0,0 +1,17 @@ +mutation Closechange($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Closechange", +"payload":{ + "id":"{{change_id}}", + "aptBusinessObjectSummary":"GraphQL test run", + "aptBusinessObjectDescription":"Using graphql in postman to edit.", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/change_request/editChange.gql b/GraphQL/payload_samples/change_request/editChange.gql new file mode 100644 index 0000000..0e94fee --- /dev/null +++ b/GraphQL/payload_samples/change_request/editChange.gql @@ -0,0 +1,19 @@ +mutation Editchange($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Editchange", +"payload":{ + "id":"{{change_id}}", + "aptBusinessObjectSummary":"GraphQL test run", + "aptBusinessObjectDescription":"Using graphql in postman to edit.", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/change_request/getChangeHistory.gql b/GraphQL/payload_samples/change_request/getChangeHistory.gql new file mode 100644 index 0000000..f4ecac5 --- /dev/null +++ b/GraphQL/payload_samples/change_request/getChangeHistory.gql @@ -0,0 +1,16 @@ +query GetActivityHistoryForIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{change_id}}", + "processType":"change" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/change_request/listChangeComments.gql b/GraphQL/payload_samples/change_request/listChangeComments.gql new file mode 100644 index 0000000..1d9926b --- /dev/null +++ b/GraphQL/payload_samples/change_request/listChangeComments.gql @@ -0,0 +1,15 @@ +query ListChangeComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + } +} + +{ +"action": "Listcommentsforchange", +"payload":{ + "id":"{{change_id}}", + "processType":"change" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/change_request/readChange.gql b/GraphQL/payload_samples/change_request/readChange.gql new file mode 100644 index 0000000..2c32ed0 --- /dev/null +++ b/GraphQL/payload_samples/change_request/readChange.gql @@ -0,0 +1,81 @@ +query readChange($type: String!, $id: String!) +{ + genericGetObject(type:$type, id: $id) + { + ... on ALL_RETURNS{ + ... on Change { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + businessPriority + changeType + implementationDueDate + implementationTeam + subjectMatterExperts{ + subjectMatterExpertName + subjectMatterExpertEmail + } + changeImpact{ + changeReferenceIdentifiers{ + referenceTransactionType + value + } + riskType + implementationNeededByDate + businessScopeImpact + otherBusinessScopeImpact + reasonForChange + reasonForChangeNotes + potentialRisks + evaluationsOfChange + } + createdByPartner + productId + aptBusinessObjectImpactsLocationMasterData{ + locationType + locationContact + partnerLocationId + } + __typename + } + aptBusinessObjectContainsComment{ + to { + ... on AptComment{ + id + data{ + commentText + visibilityType + } + } + } + } + aptBusinessObjectContainsAttachment{ + to { + ... on AptAttachment{ + data{ + fileName + fileSize + visibilityType + fileS3Location + } + } + } + } + __typename + } + __typename + } + __typename + } +} + +{ + "type": "Change", + "id":"{{change_id}}" +} diff --git a/GraphQL/payload_samples/compliance_exception/addComplianceException.gql b/GraphQL/payload_samples/compliance_exception/addComplianceException.gql new file mode 100644 index 0000000..bccb38f --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/addComplianceException.gql @@ -0,0 +1,18 @@ +mutation AddComplianceException($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Addcomplianceexception", +"payload":{ + "aptBusinessObjectSummary": "GraphQL test run", + "aptBusinessObjectDescription":"Adding a compliance exception incident programmatically from postman using graphQL walkthrough demo.", + "businessPriority":"MEDIUM", + "resolutionDueDate":"1736613281000" // 11 Jan 2025 + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/compliance_exception/addComplianceExceptionComments.gql b/GraphQL/payload_samples/compliance_exception/addComplianceExceptionComments.gql new file mode 100644 index 0000000..1b15da7 --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/addComplianceExceptionComments.gql @@ -0,0 +1,22 @@ +mutation AddCEIncidentComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Addcommentforincident", +"payload":{ + "processId":"{{compliance_exception_incident_id}}", + "processType":"complianceException", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/compliance_exception/editComplianceException.gql b/GraphQL/payload_samples/compliance_exception/editComplianceException.gql new file mode 100644 index 0000000..b18787c --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/editComplianceException.gql @@ -0,0 +1,18 @@ +mutation EditComplianceException($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Editcomplianceexception", +"payload":{ + "id":"{{compliance_exception_incident_id}}", + "aptBusinessObjectDescription":"Editing an compliance exception programmatically using graphQL via Postman", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/compliance_exception/getComplianceExceptionHistory.gql b/GraphQL/payload_samples/compliance_exception/getComplianceExceptionHistory.gql new file mode 100644 index 0000000..de2209a --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/getComplianceExceptionHistory.gql @@ -0,0 +1,16 @@ +query GetActivityHistoryForCEIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{compliance_exception_incident_id}}", + "processType":"complianceException" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/compliance_exception/listComplianceExceptionComments.gql b/GraphQL/payload_samples/compliance_exception/listComplianceExceptionComments.gql new file mode 100644 index 0000000..6dcfbd6 --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/listComplianceExceptionComments.gql @@ -0,0 +1,16 @@ +query ListCEIncidentComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Listcommentsforincident", +"payload":{ + "id":"{{compliance_exception_incident_id}}", + "processType":"complianceException" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/compliance_exception/readComplianceException.gql b/GraphQL/payload_samples/compliance_exception/readComplianceException.gql new file mode 100644 index 0000000..f6b6ccb --- /dev/null +++ b/GraphQL/payload_samples/compliance_exception/readComplianceException.gql @@ -0,0 +1,151 @@ +query readCEIncident($type: String!, $id: String!) +{ + genericGetObject(type:$type, id: $id) + { + ... on ALL_RETURNS { + ... on ComplianceException { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + resolutionDueDate + businessPriority + referenceIdentifiers { + value + referenceTransactionType + __typename + } + dateSubmitted + createdByPartner + __typename + } + aptBusinessObjectBelongsToProcessNetwork { + to { + ... on ProcessNetwork { + id + __typename + } + __typename + } + __typename + } + aptBusinessObjectAssignedToCompanyPartnerMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on PartnerMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyMasterData{ + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + + __typename + } + __typename + } + __typename + } +} + +{ + "type":"ComplianceException", + "id":"{{compliance_exception_incident_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/addDSIncident.gql b/GraphQL/payload_samples/direct_supplier/addDSIncident.gql new file mode 100644 index 0000000..a98f061 --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/addDSIncident.gql @@ -0,0 +1,20 @@ +mutation AddDSIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Adddirectsupplierincident", +"payload":{ + "aptBusinessObjectSummary": "GraphQL Postman DS Incident test run", + "aptBusinessObjectDescription":"Adding an incident programmatically using graphQL via Postman", + "directSupplierImpact":{ + "businessPriority":"MEDIUM" + }, + "resolutionDueDate":1736613281000 // 11 Jan 2025 + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/addDSIncidentComment.gql b/GraphQL/payload_samples/direct_supplier/addDSIncidentComment.gql new file mode 100644 index 0000000..efa9b15 --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/addDSIncidentComment.gql @@ -0,0 +1,22 @@ +mutation AddDSIncidentComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Addcommentforincident", +"payload":{ + "processId":"{{direct_supplier_incident_id}}", + "processType":"directSupplierIncident", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/editDSIncident.gql b/GraphQL/payload_samples/direct_supplier/editDSIncident.gql new file mode 100644 index 0000000..634bcf6 --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/editDSIncident.gql @@ -0,0 +1,18 @@ +mutation EditDSIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Editdirectsupplierincident", +"payload":{ + "id":"{{direct_supplier_incident_id}}", + "aptBusinessObjectDescription":"Editing an incident programmatically using graphQL via Postman", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/getDSIncidentHistory.gql b/GraphQL/payload_samples/direct_supplier/getDSIncidentHistory.gql new file mode 100644 index 0000000..6a8f098 --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/getDSIncidentHistory.gql @@ -0,0 +1,16 @@ +query GetActivityHistoryForDSIncident($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{direct_supplier_incident_id}}", + "processType":"directSupplierIncident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/listDSIncidentComments.gql b/GraphQL/payload_samples/direct_supplier/listDSIncidentComments.gql new file mode 100644 index 0000000..1a80e52 --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/listDSIncidentComments.gql @@ -0,0 +1,16 @@ +query ListDSIncidentComments($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +} + +{ +"action": "Listcommentsforincident", +"payload":{ + "id":"{{direct_supplier_incident_id}}", + "processType":"directSupplierIncident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/direct_supplier/readDSIncident.gql b/GraphQL/payload_samples/direct_supplier/readDSIncident.gql new file mode 100644 index 0000000..7c5698b --- /dev/null +++ b/GraphQL/payload_samples/direct_supplier/readDSIncident.gql @@ -0,0 +1,232 @@ +query readDSIncident($type: String!, $id: String!) +{ + genericGetObject(type:$type, id: $id) + { + ... on ALL_RETURNS { + ... on DirectSupplierIncident { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + incidentType + resolutionDueDate + directSupplierImpact{ + businessPriority + } + referenceIdentifiers { + value + referenceTransactionType + __typename + } + dateSubmitted + createdByPartner + __typename + } + aptBusinessObjectBelongsToProcessNetwork { + to { + ... on ProcessNetwork { + id + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectAssignedToCompanyPartnerMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on PartnerMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyMasterData{ + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + aptBusinessObjectPrimaryPartnerLocationMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } +} +fragment userName on User { + id + data { + givenName + surname + __typename + } + __typename +} + +{ + "type":"DirectSupplierIncident", + "id":"{{direct_supplier_incident_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/addDocReview.gql b/GraphQL/payload_samples/document_review/addDocReview.gql new file mode 100644 index 0000000..57809db --- /dev/null +++ b/GraphQL/payload_samples/document_review/addDocReview.gql @@ -0,0 +1,16 @@ +mutation AddDocumentReview($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Adddocumentreview", +"payload":{ + "aptBusinessObjectSummary":"New Document Review using graphQL and postman", + "aptBusinessObjectDescription":"Adding a document review using postman and graphQL", + "businessPriority":"MEDIUM", + "approvalDueDate": "1736613281000" // 11 Jan 2025 +} +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/addDocReviewComment.gql b/GraphQL/payload_samples/document_review/addDocReviewComment.gql new file mode 100644 index 0000000..4257010 --- /dev/null +++ b/GraphQL/payload_samples/document_review/addDocReviewComment.gql @@ -0,0 +1,20 @@ +mutation AddChangeComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addcommentfordocumentreview", +"payload":{ + "processId":"{{document_review_id}}", + "processType":"documentReview", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment to Document Review using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/editDocReview.gql b/GraphQL/payload_samples/document_review/editDocReview.gql new file mode 100644 index 0000000..4c4a7a1 --- /dev/null +++ b/GraphQL/payload_samples/document_review/editDocReview.gql @@ -0,0 +1,16 @@ +mutation EditDocumentReview($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Editdocumentreview", +"payload":{ + "id":"{{document_review_id}}", + "aptBusinessObjectSummary":"GraphQL test run", + "aptBusinessObjectDescription":"Using graphql in postman to edit document review incident", + "businessPriority":"LOW" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/getDocReviewActivityHistory.gql b/GraphQL/payload_samples/document_review/getDocReviewActivityHistory.gql new file mode 100644 index 0000000..cd44f4a --- /dev/null +++ b/GraphQL/payload_samples/document_review/getDocReviewActivityHistory.gql @@ -0,0 +1,14 @@ +query GetActivityHistoryForDocumentReview($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{document_review_id}}", + "processType":"documentReview" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/listDocReviewComments.gql b/GraphQL/payload_samples/document_review/listDocReviewComments.gql new file mode 100644 index 0000000..6c46aa2 --- /dev/null +++ b/GraphQL/payload_samples/document_review/listDocReviewComments.gql @@ -0,0 +1,14 @@ +query ListDocumentReviewComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listcommentsfordocumentreview", +"payload":{ + "id":"{{document_review_id}}", + "processType":"documentReview" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/document_review/readDocReviewDetails.gql b/GraphQL/payload_samples/document_review/readDocReviewDetails.gql new file mode 100644 index 0000000..c3bad1a --- /dev/null +++ b/GraphQL/payload_samples/document_review/readDocReviewDetails.gql @@ -0,0 +1,57 @@ +query readDocumentReview($id: String!, $type: String!) { + genericGetObject(type: $type, id: $id) { + ... on ALL_RETURNS { + ... on DocumentReview { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + businessPriority + createdByPartner + productId + aptBusinessObjectImpactsLocationMasterData { + locationType + locationContact + partnerLocationId + } + __typename + } + aptBusinessObjectContainsComment { + to { + ... on AptComment { + id + data { + commentText + visibilityType + } + } + } + } + aptBusinessObjectContainsAttachment { + to { + ... on AptAttachment { + data { + fileName + fileSize + visibilityType + fileS3Location + } + } + } + } + __typename + } + __typename + } + } +} + +{ + "type":"DocumentReview", + "id":"{{document_review_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/addExtMfgIncident.gql b/GraphQL/payload_samples/external_manufacturing/addExtMfgIncident.gql new file mode 100644 index 0000000..7a7ce8b --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/addExtMfgIncident.gql @@ -0,0 +1,18 @@ +mutation AddIncident($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addexternalmanufacturingincident", +"payload":{ + "aptBusinessObjectSummary": "GraphQL test run 4/18/24", + "aptBusinessObjectDescription":"Adding an incident programmatically from postman using graphQL walkthrough demo.", + "externalManufacturingImpact":{ + "businessPriority":"MEDIUM" + }, + "resolutionDueDate":1736613281000 // 11 Jan 2025 + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/addExtMfgIncidentComment.gql b/GraphQL/payload_samples/external_manufacturing/addExtMfgIncidentComment.gql new file mode 100644 index 0000000..4372e2a --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/addExtMfgIncidentComment.gql @@ -0,0 +1,20 @@ +mutation AddIncidentComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addcommentforincident", +"payload":{ + "processId":"{{external_manufacturing_incident_id}}", + "processType":"externalManufacturingIncident", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/editExtMfgIncident.gql b/GraphQL/payload_samples/external_manufacturing/editExtMfgIncident.gql new file mode 100644 index 0000000..9ada312 --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/editExtMfgIncident.gql @@ -0,0 +1,21 @@ +{ +"action": "Addexternalmanufacturingincident", +"payload":{ + "aptBusinessObjectSummary": "GraphQL test run 4/18/24", + "aptBusinessObjectDescription":"Adding an incident programmatically from postman using graphQL walkthrough demo.", + "externalManufacturingImpact":{ + "businessPriority":"MEDIUM" + }, + "resolutionDueDate":1736613281000 // 11 Jan 2025 + } +} + +{ +"action": "Editexternalmanufacturingincident", +"payload":{ + "id":"{{external_manufacturing_incident_id}}", + "aptBusinessObjectDescription":"Editing an external manufacturing incident programmatically using graphQL for a demo.", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/getExtMfgIncidentHistory.gql b/GraphQL/payload_samples/external_manufacturing/getExtMfgIncidentHistory.gql new file mode 100644 index 0000000..7109ff2 --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/getExtMfgIncidentHistory.gql @@ -0,0 +1,15 @@ +{ +"action": "Listcommentsforincident", +"payload":{ + "id":"{{external_manufacturing_incident_id}}", + "processType":"externalManufacturingIncident" + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{external_manufacturing_incident_id}}", + "processType":"externalManufacturingIncident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/listExtMfgIncidentComments.gql b/GraphQL/payload_samples/external_manufacturing/listExtMfgIncidentComments.gql new file mode 100644 index 0000000..955e4ae --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/listExtMfgIncidentComments.gql @@ -0,0 +1,14 @@ +query ListIncidentComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listcommentsforincident", +"payload":{ + "id":"{{external_manufacturing_incident_id}}", + "processType":"externalManufacturingIncident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/external_manufacturing/readExtMfgIncidentDetails.gql b/GraphQL/payload_samples/external_manufacturing/readExtMfgIncidentDetails.gql new file mode 100644 index 0000000..bbcc83e --- /dev/null +++ b/GraphQL/payload_samples/external_manufacturing/readExtMfgIncidentDetails.gql @@ -0,0 +1,231 @@ +query readIncident($type: String!, $id: String!) { + genericGetObject(type: $type, id: $id) { + ... on ALL_RETURNS { + ... on ExternalManufacturingIncident { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + incidentType + resolutionDueDate + externalManufacturingImpact { + businessImpact + businessPriority + } + referenceIdentifiers { + value + referenceTransactionType + __typename + } + dateSubmitted + createdByPartner + __typename + } + aptBusinessObjectBelongsToProcessNetwork { + to { + ... on ProcessNetwork { + id + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectAssignedToCompanyPartnerMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on PartnerMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + aptBusinessObjectPrimaryPartnerLocationMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } +} +fragment userName on User { + id + data { + givenName + surname + __typename + } + __typename +} + +{ + "type":"ExternalManufacturingIncident", + "id":"{{external_manufacturing_incident_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/addIncident.gql b/GraphQL/payload_samples/incident/addIncident.gql new file mode 100644 index 0000000..f363cc6 --- /dev/null +++ b/GraphQL/payload_samples/incident/addIncident.gql @@ -0,0 +1,18 @@ +mutation AddIncident($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addincident", +"payload":{ + "aptBusinessObjectSummary": "GraphQL flow test run", + "aptBusinessObjectDescription":"Adding an incident programmatically from postman using graphQL", + "businessPriority":"MEDIUM", + "incidentType":"LABEL_COMPLIANCE_ERROR", + "resolutionDueDate":"1736613281000", // 11 Jan 2025 + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/addIncidentComments.gql b/GraphQL/payload_samples/incident/addIncidentComments.gql new file mode 100644 index 0000000..c3a2c03 --- /dev/null +++ b/GraphQL/payload_samples/incident/addIncidentComments.gql @@ -0,0 +1,20 @@ +mutation AddIncidentComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addcommentforincident", +"payload":{ + "processId":"{{incident_id}}", + "processType":"incident", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a test comment using Postman and GraphQL.", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/editIncident.gql b/GraphQL/payload_samples/incident/editIncident.gql new file mode 100644 index 0000000..78b5074 --- /dev/null +++ b/GraphQL/payload_samples/incident/editIncident.gql @@ -0,0 +1,16 @@ +mutation EditIncident($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Editincident", +"payload":{ + "id":"{{incident_id}}", + "aptBusinessObjectDescription":"Editing an incident programmatically using graphQL via postman", + "businessPriority":"LOW", + "responsiblePartyAtParner":{} + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/getIncidentHistory.gql b/GraphQL/payload_samples/incident/getIncidentHistory.gql new file mode 100644 index 0000000..5473a68 --- /dev/null +++ b/GraphQL/payload_samples/incident/getIncidentHistory.gql @@ -0,0 +1,14 @@ +query GetActivityHistoryForIncident($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{incident_id}}", + "processType":"incident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/listIncidentComments.gql b/GraphQL/payload_samples/incident/listIncidentComments.gql new file mode 100644 index 0000000..20d4bba --- /dev/null +++ b/GraphQL/payload_samples/incident/listIncidentComments.gql @@ -0,0 +1,14 @@ +query ListIncidentComments($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listcommentsforincident", +"payload":{ + "id":"{{incident_id}}", + "processType":"incident" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/incident/readIncidentDetails.gql b/GraphQL/payload_samples/incident/readIncidentDetails.gql new file mode 100644 index 0000000..d2ab892 --- /dev/null +++ b/GraphQL/payload_samples/incident/readIncidentDetails.gql @@ -0,0 +1,287 @@ +query readIncident($type: String!, $id: String!) { + genericGetObject(type: $type, id: $id) { + ... on ALL_RETURNS { + ... on Incident { + id + currentBaseState + currentSubState + data { + aptBusinessObjectId + aptBusinessObjectSummary + aptBusinessObjectDescription + responsibleDepartmentAtCompany + responsibleDepartmentAtPartner + incidentType + businessPriority + resolutionDueDate + incidentConclusion { + dateClosed + finalRootCause + resolutionType + isReoccuring + closingStatement + __typename + } + referenceIdentifiers { + value + referenceTransactionType + __typename + } + dateSubmitted + createdByPartner + __typename + } + aptBusinessObjectContainsComment { + to { + ... on AptComment { + id + data { + commentText + visibilityType + } + } + } + } + issueRelatedToImpactedProductDetail { + to { + ... on ProductMasterData { + id + data { + productItemInformation { + productName + packSize + strength + dosageForm + productLanguageCode + isLightSensitive + __typename + } + packagingInformation { + packagingCode { + packagingCodeType + packagingCodeValue + __typename + } + __typename + } + regulatoryItemCodes { + regulatoryItemCode { + regulatoryItemCodeType + regulatoryItemCodeValue + __typename + } + __typename + } + packagingInformationAndRegulatoryItemCodesDerivedField + __typename + } + __typename + } + __typename + } + impactedLots + __typename + } + aptBusinessObjectBelongsToProcessNetwork { + to { + ... on ProcessNetwork { + id + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerAssignedUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectCompanyOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectPartnerOwnerUser { + to { + ... on User { + ...userName + __typename + } + __typename + } + __typename + } + aptBusinessObjectAssignedToCompanyPartnerMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on PartnerMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + ... on CompanyMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + aptBusinessObjectPrimaryPartnerLocationMasterData { + to { + ... on PartnerLocationMasterData { + id + data { + businessMasterDataCommon { + businessName + businessAddress { + address1 + address2 + city + district + village + houseNumber + township + state + postalCode + country + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } + __typename + } +} +fragment userName on User { + id + data { + givenName + surname + __typename + } + __typename +} + +{ + "type":"Incident", + "id":"{{incident_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/master_data/companyMaster.gql b/GraphQL/payload_samples/master_data/companyMaster.gql new file mode 100644 index 0000000..99aec75 --- /dev/null +++ b/GraphQL/payload_samples/master_data/companyMaster.gql @@ -0,0 +1,19 @@ +query getQueryResults( + $regulatoryCompanyIdentifierValue: String! + $regulatoryCompanyIdentifierType: String! +) { + genericActionCall( + action: "Getcompanybyidentifier" + payload: { + regulatoryCompanyIdentifierValue: $regulatoryCompanyIdentifierValue + regulatoryCompanyIdentifierType: $regulatoryCompanyIdentifierType + } + ) { + result + } +} + +{ + "regulatoryCompanyIdentifierValue": "{{regulatory_company_identifier}}", + "regulatoryCompanyIdentifierType": "{{regulatory_company_type}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/master_data/partnerMaster.gql b/GraphQL/payload_samples/master_data/partnerMaster.gql new file mode 100644 index 0000000..025e7ff --- /dev/null +++ b/GraphQL/payload_samples/master_data/partnerMaster.gql @@ -0,0 +1,19 @@ +query getQueryResults( + $regulatoryIdentifierValue: String! + $regulatoryIdentifierType: String! +) { + genericActionCall( + action: "Getpartnerbyidentifier" + payload: { + regulatoryIdentifierValue: $regulatoryIdentifierValue + regulatoryIdentifierType: $regulatoryIdentifierType + } + ) { + result + } +} + +{ + "regulatoryIdentifierValue": "{{partner_regulatory_identifier}}", + "regulatoryIdentifierType": "{{partner_regulatory_identifier_type}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/master_data/productMaster.gql b/GraphQL/payload_samples/master_data/productMaster.gql new file mode 100644 index 0000000..69230b8 --- /dev/null +++ b/GraphQL/payload_samples/master_data/productMaster.gql @@ -0,0 +1,22 @@ +query getProductMasterData( + $action: String! + $regulatoryItemCodeValue: String! + $regulatoryItemCodeType: String! +) { + genericActionCall( + action: $action + payload: { + regulatoryItemCodeValue: $regulatoryItemCodeValue + regulatoryItemCodeType: $regulatoryItemCodeType + } + ) { + result + __typename + } +} + +{ +"action": "Getproductbyitemcode", +"regulatoryItemCodeValue":"{{regulatory_item_code_value}}", +"regulatoryItemCodeType": "{{regulatory_item_code_type}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/addSubTaskToTask.gql b/GraphQL/payload_samples/task/addSubTaskToTask.gql new file mode 100644 index 0000000..2c91fd6 --- /dev/null +++ b/GraphQL/payload_samples/task/addSubTaskToTask.gql @@ -0,0 +1,15 @@ +mutation AddSubTaskToTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addsubtasktotask", +"payload":{ + "taskId":"{{task_id}}", + "subTaskName": "Postman created using GraphQL", + "subTaskType": "Postman test" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/addTask.gql b/GraphQL/payload_samples/task/addTask.gql new file mode 100644 index 0000000..1970fbc --- /dev/null +++ b/GraphQL/payload_samples/task/addTask.gql @@ -0,0 +1,20 @@ +mutation AddTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addtask", +"payload":{ + "templateId": "{{task_template_id}}", + "aptBusinessObjectSummary": "GraphQL test run", + "aptBusinessObjectDescription": "Tasks for recurring purchase orders", + "businessPriority": "LOW", + "completionDueDate": "1737834411000", + "isVisible": true, + "isAtRisk": false + + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/addTaskComment.gql b/GraphQL/payload_samples/task/addTaskComment.gql new file mode 100644 index 0000000..79f3c71 --- /dev/null +++ b/GraphQL/payload_samples/task/addTaskComment.gql @@ -0,0 +1,20 @@ +mutation AddCommentForTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addcommentforprocess", +"payload":{ + "processId":"{{task_id}}", + "processType": "task", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Adding a comment using GraphQL via Postman", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/closeSubTask.gql b/GraphQL/payload_samples/task/closeSubTask.gql new file mode 100644 index 0000000..6d6e915 --- /dev/null +++ b/GraphQL/payload_samples/task/closeSubTask.gql @@ -0,0 +1,13 @@ +mutation CloseSubTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Closesubtask", +"payload":{ + "id":"{{subtask_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/closeTask.gql b/GraphQL/payload_samples/task/closeTask.gql new file mode 100644 index 0000000..8d0f88d --- /dev/null +++ b/GraphQL/payload_samples/task/closeTask.gql @@ -0,0 +1,14 @@ +mutation CloseTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Closetask", +"payload":{ + "id":"{{task_id}}", + "taskResolutionType":"CANCELLED" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/copyTask.gql b/GraphQL/payload_samples/task/copyTask.gql new file mode 100644 index 0000000..14d4791 --- /dev/null +++ b/GraphQL/payload_samples/task/copyTask.gql @@ -0,0 +1,13 @@ +mutation Copytask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Copytask", +"payload":{ + "id":"{{task_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/editSubTaskOnTask.gql b/GraphQL/payload_samples/task/editSubTaskOnTask.gql new file mode 100644 index 0000000..ed0503e --- /dev/null +++ b/GraphQL/payload_samples/task/editSubTaskOnTask.gql @@ -0,0 +1,14 @@ +mutation EditSubTaskOnTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Editsubtaskontask", +"payload":{ + "id":"{{subtask_id}}", + "subTaskType": "Postman test modification" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/editTask.gql b/GraphQL/payload_samples/task/editTask.gql new file mode 100644 index 0000000..e708f35 --- /dev/null +++ b/GraphQL/payload_samples/task/editTask.gql @@ -0,0 +1,14 @@ +mutation EditTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Edittask", +"payload":{ + "id":"{{task_id}}", + "aptBusinessObjectDescription":"Modifying the description using Postman and GraphQL" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/editTaskComment.gql b/GraphQL/payload_samples/task/editTaskComment.gql new file mode 100644 index 0000000..c25928b --- /dev/null +++ b/GraphQL/payload_samples/task/editTaskComment.gql @@ -0,0 +1,20 @@ +mutation EditCommentForTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Editcommentforprocess", +"payload":{ + "id":"{{task_comment_id}}", + "processType": "task", + "aptCommentBox":{ + "aptComment":{ + "commentText": "Modifying the comment programmatically using GraphQL via Postman", + "visibilityType": "Public" + } + } + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/getTaskHistory.gql b/GraphQL/payload_samples/task/getTaskHistory.gql new file mode 100644 index 0000000..e3f08fd --- /dev/null +++ b/GraphQL/payload_samples/task/getTaskHistory.gql @@ -0,0 +1,14 @@ +query GetActivityHistoryForTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Getactivityhistoryforincident", +"payload":{ + "processId":"{{task_id}}", + "processType":"task" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/listSubTasksForTask.gql b/GraphQL/payload_samples/task/listSubTasksForTask.gql new file mode 100644 index 0000000..d24b79e --- /dev/null +++ b/GraphQL/payload_samples/task/listSubTasksForTask.gql @@ -0,0 +1,13 @@ +query ListSubTaskForTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listsubtaskfortask", +"payload":{ + "taskId":"{{task_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/listTaskComments.gql b/GraphQL/payload_samples/task/listTaskComments.gql new file mode 100644 index 0000000..f039530 --- /dev/null +++ b/GraphQL/payload_samples/task/listTaskComments.gql @@ -0,0 +1,14 @@ +mutation ListCommentForTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listcommentsforprocess", +"payload":{ + "processId":"{{task_id}}", + "processType": "task" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/readTaskDetails.gql b/GraphQL/payload_samples/task/readTaskDetails.gql new file mode 100644 index 0000000..a5f8887 --- /dev/null +++ b/GraphQL/payload_samples/task/readTaskDetails.gql @@ -0,0 +1,30 @@ +query ReadTaskDetails($id: String!, $type: String!) { + genericGetObject(type: $type, id: $id) { + ... on ALL_RETURNS { + ... on Task { + id + data { + templateName + aptBusinessObjectDescription + isAddRemoveSubtaskAllowed + businessPriority + responsibleDepartmentAtCompany + } + taskContainsSubTask { + to { + subType + objectType + } + } + __typename + } + __typename + } + __typename + } +} + +{ + "type":"Task", + "id":"{{task_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/removeSubTask.gql b/GraphQL/payload_samples/task/removeSubTask.gql new file mode 100644 index 0000000..603c8fc --- /dev/null +++ b/GraphQL/payload_samples/task/removeSubTask.gql @@ -0,0 +1,13 @@ +mutation RemoveSubTaskFromTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Removesubtaskfromtask", +"payload":{ + "id":"{{subtask_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/reopenSubTask.gql b/GraphQL/payload_samples/task/reopenSubTask.gql new file mode 100644 index 0000000..ba43f5f --- /dev/null +++ b/GraphQL/payload_samples/task/reopenSubTask.gql @@ -0,0 +1,13 @@ +mutation ReopenSubTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Reopensubtask", +"payload":{ + "id":"{{subtask_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task/reopenTask.gql b/GraphQL/payload_samples/task/reopenTask.gql new file mode 100644 index 0000000..b38b933 --- /dev/null +++ b/GraphQL/payload_samples/task/reopenTask.gql @@ -0,0 +1,14 @@ +mutation CloseTask($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Closetask", +"payload":{ + "id":"{{task_id}}", + "resolutionType":"CANCELLED" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/addSubTaskToTemplate.gql b/GraphQL/payload_samples/task_template/addSubTaskToTemplate.gql new file mode 100644 index 0000000..2a8dad8 --- /dev/null +++ b/GraphQL/payload_samples/task_template/addSubTaskToTemplate.gql @@ -0,0 +1,16 @@ +mutation AddSubTaskToTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addsubtasktotemplate", +"payload":{ + "templateId":"{{task_template_id}}", + "subTaskName": "GQL Created Sub Task 2", + "subTaskType": "Test subTask", + "businessPriority": "LOW" +} +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/addTaskTemplate.gql b/GraphQL/payload_samples/task_template/addTaskTemplate.gql new file mode 100644 index 0000000..ce4ef4b --- /dev/null +++ b/GraphQL/payload_samples/task_template/addTaskTemplate.gql @@ -0,0 +1,18 @@ +mutation AddTaskTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Addtasktemplate", +"payload":{ + "templateName": "GQL Postman Created Task Template", + "aptBusinessObjectDescription": "Template to demonstrate subTask creation via GraphQL API and Postman", + "isTemplateModifiableByMember": true, + "isAddRemoveSubtaskAllowed": true, + "completionRequiredWithinDays": 14, + "businessPriority": "LOW" +} +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/copyTaskTemplate.gql b/GraphQL/payload_samples/task_template/copyTaskTemplate.gql new file mode 100644 index 0000000..bdee5d3 --- /dev/null +++ b/GraphQL/payload_samples/task_template/copyTaskTemplate.gql @@ -0,0 +1,16 @@ +mutation CopyTaskTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Copytasktemplate", +"payload":{ + "id":"{{task_template_id}}", + "templateName":"New template number 2", + "copyGeneralInfo": true, + "copySubTasks": false + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/editSubTaskOnTemplate.gql b/GraphQL/payload_samples/task_template/editSubTaskOnTemplate.gql new file mode 100644 index 0000000..6e14228 --- /dev/null +++ b/GraphQL/payload_samples/task_template/editSubTaskOnTemplate.gql @@ -0,0 +1,15 @@ +mutation EditSubTaskOnTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Editsubtaskontemplate", +"payload":{ + "id":"{{subtask_template_id}}", + "subTaskName":"Modified template name 1", + "businessPriority":"LOW" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/editTaskTemplate.gql b/GraphQL/payload_samples/task_template/editTaskTemplate.gql new file mode 100644 index 0000000..e065e18 --- /dev/null +++ b/GraphQL/payload_samples/task_template/editTaskTemplate.gql @@ -0,0 +1,14 @@ +mutation EditTaskTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Edittasktemplate", +"payload":{ + "id":"{{task_template_id}}", + "aptBusinessObjectDescription":"Modified template via Postman using GraphQL" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/listSubTaskForTemplate.gql b/GraphQL/payload_samples/task_template/listSubTaskForTemplate.gql new file mode 100644 index 0000000..16e0790 --- /dev/null +++ b/GraphQL/payload_samples/task_template/listSubTaskForTemplate.gql @@ -0,0 +1,13 @@ +query ListSubTaskForTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Listsubtaskfortemplate", +"payload":{ + "templateId":"{{task_template_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/readTemplateDetails.gql b/GraphQL/payload_samples/task_template/readTemplateDetails.gql new file mode 100644 index 0000000..99dd11f --- /dev/null +++ b/GraphQL/payload_samples/task_template/readTemplateDetails.gql @@ -0,0 +1,32 @@ +query ReadTemplateDetails($id: String!, $type: String!) { + genericGetObject(type: $type, id: $id) { + ... on ALL_RETURNS { + ... on TaskTemplate { + id + data { + templateName + aptBusinessObjectDescription + isTemplateModifiableByMember + isAddRemoveSubtaskAllowed + completionRequiredWithinDays + businessPriority + responsibleDepartmentAtCompany + } + taskTemplateContainsSubTask { + to { + subType + objectType + } + } + __typename + } + __typename + } + __typename + } +} + +{ + "type":"TaskTemplate", + "id":"{{task_template_id}}" +} \ No newline at end of file diff --git a/GraphQL/payload_samples/task_template/removeSubTaskFromTemplate.gql b/GraphQL/payload_samples/task_template/removeSubTaskFromTemplate.gql new file mode 100644 index 0000000..1a0d3b7 --- /dev/null +++ b/GraphQL/payload_samples/task_template/removeSubTaskFromTemplate.gql @@ -0,0 +1,13 @@ +mutation RemoveSubTaskFromTemplate($action: String!, $payload: JSON!) { + genericActionCall(action: $action, payload: $payload) { + result + __typename + } +} + +{ +"action": "Removesubtaskfromtemplate", +"payload":{ + "id":"{{subtask_template_id}}" + } +} \ No newline at end of file diff --git a/GraphQL/readme.MD b/GraphQL/readme.MD new file mode 100644 index 0000000..eedcefc --- /dev/null +++ b/GraphQL/readme.MD @@ -0,0 +1,8 @@ +# GraphQL Code Samples # +## Payload Samples ## +Contains the GraphQL code to be used in either a query tool or incorporated into program code. +## Program Integration ## +Contains a discussion and the minimum necessary code to construct a request. This code is extensible to construct larger solutions. + +[Use GraphQL in your solutions](GraphQL_Requests.md) +[Create requests using AsyncAPI](../asyncapi/AsyncAPI_Requests.md) diff --git a/GraphQL/task/addCommentForTask.py b/GraphQL/task/addCommentForTask.py deleted file mode 100644 index 034cc51..0000000 --- a/GraphQL/task/addCommentForTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addcommentforprocess\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"task\",\"aptCommentBox\":{\"aptComment\":{\"commentText\":\"Adding a comment using GraphQL via Python\",\"visibilityType\":\"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/addSubTaskToTask.py b/GraphQL/task/addSubTaskToTask.py deleted file mode 100644 index 45534a0..0000000 --- a/GraphQL/task/addSubTaskToTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddSubTaskToTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addsubtasktotask\",\"payload\":{\"taskId\":\"YOUR_ID\",\"subTaskName\":\"Python created using GraphQL\",\"subTaskType\":\"Python test\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/addTask.py b/GraphQL/task/addTask.py deleted file mode 100644 index 7af3d43..0000000 --- a/GraphQL/task/addTask.py +++ /dev/null @@ -1,24 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addtask\",\"payload\":{\"templateId\":\"YOUR_ID\",\"aptBusinessObjectSummary\":\"GraphQL Python created task\",\"aptBusinessObjectDescription\":\"Tasks for recurring purchase orders\",\"businessPriority\":\"LOW\",\"completionDueDate\":\"1737834411000\",\"isVisible\":true,\"isAtRisk\":false}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' - } - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/closeSubTask.py b/GraphQL/task/closeSubTask.py deleted file mode 100644 index ff8d01d..0000000 --- a/GraphQL/task/closeSubTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation CloseSubTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Closesubtask\",\"payload\":{\"id\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/closeTask.py b/GraphQL/task/closeTask.py deleted file mode 100644 index 9cb789a..0000000 --- a/GraphQL/task/closeTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation CloseTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Closetask\",\"payload\":{\"id\":\"YOUR_ID\",\"taskResolutionType\":\"CANCELLED\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/copyTask.py b/GraphQL/task/copyTask.py deleted file mode 100644 index 275d120..0000000 --- a/GraphQL/task/copyTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation CopyTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Copytask\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectSummary\":\"Copy of Task via python and GraphQL\",\"copyGeneralInfo\":true,\"copySubTasks\":true,\"copyRelatedProcesses\":true}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/editCommentForTask.py b/GraphQL/task/editCommentForTask.py deleted file mode 100644 index a3672de..0000000 --- a/GraphQL/task/editCommentForTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Editcommentforprocess\",\"payload\":{\"id\":\"YOUR_ID\",\"processType\":\"task\",\"aptCommentBox\":{\"aptComment\":{\"commentText\":\"Modifying the comment programmatically using GraphQL via Python\",\"visibilityType\":\"Public\"}}}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/editSubTaskOnTask.py b/GraphQL/task/editSubTaskOnTask.py deleted file mode 100644 index 12ab175..0000000 --- a/GraphQL/task/editSubTaskOnTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditSubTaskOnTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Editsubtaskontask\",\"payload\":{\"id\":\"YOUR_ID\",\"subTaskType\":\"Python test modification\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/editTask.py b/GraphQL/task/editTask.py deleted file mode 100644 index 4bc4984..0000000 --- a/GraphQL/task/editTask.py +++ /dev/null @@ -1,24 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Edittask\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Modifying the description using Python and GraphQL\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' - } - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/getActivityHistoryForTask.py b/GraphQL/task/getActivityHistoryForTask.py deleted file mode 100644 index 3e26a39..0000000 --- a/GraphQL/task/getActivityHistoryForTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query GetActivityHistoryForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Getactivityhistoryforincident\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"task\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/listCommentForTask.py b/GraphQL/task/listCommentForTask.py deleted file mode 100644 index d69a8be..0000000 --- a/GraphQL/task/listCommentForTask.py +++ /dev/null @@ -1,24 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation ListCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listcommentsforprocess\",\"payload\":{\"processId\":\"YOUR_ID\",\"processType\":\"task\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/listSubtaskForTask.py b/GraphQL/task/listSubtaskForTask.py deleted file mode 100644 index d5c8e7c..0000000 --- a/GraphQL/task/listSubtaskForTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListSubTaskForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listsubtaskfortask\",\"payload\":{\"taskId\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/readTaskDetails.py b/GraphQL/task/readTaskDetails.py deleted file mode 100644 index 51cc9d2..0000000 --- a/GraphQL/task/readTaskDetails.py +++ /dev/null @@ -1,24 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ReadTaskDetails($id: String!, $type: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on Task{\\n id\\n data{\\n templateName\\n aptBusinessObjectDescription\\n isAddRemoveSubtaskAllowed\\n businessPriority\\n responsibleDepartmentAtCompany\\n }\\n taskContainsSubTask{\\n to{\\n subType\\n objectType\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\",\"variables\":{\"type\":\"Task\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/removeSubtask.py b/GraphQL/task/removeSubtask.py deleted file mode 100644 index ccf3b8b..0000000 --- a/GraphQL/task/removeSubtask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation RemoveSubTaskFromTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Removesubtaskfromtask\",\"payload\":{\"id\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/reopenSubtask.py b/GraphQL/task/reopenSubtask.py deleted file mode 100644 index 168efb4..0000000 --- a/GraphQL/task/reopenSubtask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation ReopenSubTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Reopensubtask\",\"payload\":{\"id\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/task/reopenTask.py b/GraphQL/task/reopenTask.py deleted file mode 100644 index da1f11f..0000000 --- a/GraphQL/task/reopenTask.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation ReopenTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Reopentask\",\"payload\":{\"id\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/addSubTaskTemplate.py b/GraphQL/taskTemplate/addSubTaskTemplate.py deleted file mode 100644 index b6a8f8d..0000000 --- a/GraphQL/taskTemplate/addSubTaskTemplate.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddSubTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\": \"Addsubtasktotemplate\",\"payload\":{\"templateId\":\"YOUR_ID\",\"subTaskName\": \"GQL Created Sub Task 3\",\"subTaskType\": \"Test subTask\",\"businessPriority\": \"LOW\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/addTaskTemplate.py b/GraphQL/taskTemplate/addTaskTemplate.py deleted file mode 100644 index a9b01c1..0000000 --- a/GraphQL/taskTemplate/addTaskTemplate.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation AddTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Addtasktemplate\",\"payload\":{\"templateName\":\"GQL Python Created Task Template 1\",\"aptBusinessObjectDescription\":\"Template to demonstrate creation via GraphQL API and Python\",\"isTemplateModifiableByMember\":true,\"isAddRemoveSubtaskAllowed\":true,\"completionRequiredWithinDays\":14,\"businessPriority\":\"LOW\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/editSubTaskonTemplate.py b/GraphQL/taskTemplate/editSubTaskonTemplate.py deleted file mode 100644 index dd403d4..0000000 --- a/GraphQL/taskTemplate/editSubTaskonTemplate.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditSubTaskOnTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Editsubtaskontemplate\",\"payload\":{\"id\":\"YOUR_ID\",\"subTaskName\":\"Modified template name 2\",\"businessPriority\":\"LOW\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' - } - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/editTaskTemplate.py b/GraphQL/taskTemplate/editTaskTemplate.py deleted file mode 100644 index d9af7d3..0000000 --- a/GraphQL/taskTemplate/editTaskTemplate.py +++ /dev/null @@ -1,26 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation EditTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Edittasktemplate\",\"payload\":{\"id\":\"YOUR_ID\",\"aptBusinessObjectDescription\":\"Modified template via python using GraphQL\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' - } - -response = requests.request("POST", url, headers=headers, data=payload) - -print(response.text) - -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/listSubtaskForTemplate.py b/GraphQL/taskTemplate/listSubtaskForTemplate.py deleted file mode 100644 index 760680b..0000000 --- a/GraphQL/taskTemplate/listSubtaskForTemplate.py +++ /dev/null @@ -1,24 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ListSubTaskForTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Listsubtaskfortemplate\",\"payload\":{\"templateId\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/readTemplateDetails.py b/GraphQL/taskTemplate/readTemplateDetails.py deleted file mode 100644 index 5460e16..0000000 --- a/GraphQL/taskTemplate/readTemplateDetails.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"query ReadTemplateDetails($id: String!, $type: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on TaskTemplate{\\n id\\n data{\\n templateName\\n aptBusinessObjectDescription\\n isTemplateModifiableByMember\\n isAddRemoveSubtaskAllowed\\n completionRequiredWithinDays\\n businessPriority\\n responsibleDepartmentAtCompany\\n }\\n taskTemplateContainsSubTask{\\n to{\\n subType\\n objectType\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\",\"variables\":{\"type\":\"TaskTemplate\",\"id\":\"YOUR_ID\"}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -# schema_json = raw_json.get('data').get('genericActionCall') # drill into object -schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -# api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(schema_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/GraphQL/taskTemplate/removeSubTaskFromTemplate.py b/GraphQL/taskTemplate/removeSubTaskFromTemplate.py deleted file mode 100644 index 20cff86..0000000 --- a/GraphQL/taskTemplate/removeSubTaskFromTemplate.py +++ /dev/null @@ -1,25 +0,0 @@ -import requests -import json - -url = "https://valvir-opus.tracelink.com/api/graphql" - -payload = "{\"query\":\"mutation RemoveSubTaskFromTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{\"action\":\"Removesubtaskfromtemplate\",\"payload\":{\"id\":\"YOUR_ID\"}}}" -headers = { - 'Authorization': 'Basic YOUR_TOKEN', - 'Content-Type': 'application/json', - 'Dataspace': 'default', - 'companyId': 'YOUR_COMPANY_ID', - 'processNetworkId': 'YOUR_PROCESS_NETWORK_ID' -} - -response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) -raw_json = json.loads(response.text) # load the text result to into json - -schema_json = raw_json.get('data').get('genericActionCall') # drill into object -# schema_json = raw_json.get('data').get('genericGetObject') # use this for getObjectCalls -api_json = json.loads(schema_json.get('result')) # load the result object to json - -# for genericGetObject, use schema_json. for genericActionCall, use api_json. -print(json.dumps(api_json, indent=4, sort_keys=False)) # 'pretty print' the result diff --git a/python/License.txt b/License.txt similarity index 100% rename from python/License.txt rename to License.txt diff --git a/python/MasterDataQuery.MD b/MasterDataQuery.md similarity index 97% rename from python/MasterDataQuery.MD rename to MasterDataQuery.md index 84cbb24..4378783 100644 --- a/python/MasterDataQuery.MD +++ b/MasterDataQuery.md @@ -3,7 +3,7 @@ The full master data records for a company and its internal locations include th Query master data using the same methods as the incident requests. -Refer to the [Quickstart](Quickstart.MD) walkthrough to prepare your scripting environment and variables. +Refer to the [Quickstart](Quickstart.md) walkthrough to prepare your scripting environment and variables. ## Partner Master Data **Type or copy the following into your Python terminal, replacing necessary values** diff --git a/README.MD b/README.MD index 55feb23..6aa286c 100644 --- a/README.MD +++ b/README.MD @@ -1,39 +1,36 @@ -# TraceLink Opus Platform Code Samples +# TraceLink Opus Platform Code Samples # -## Communicating with Agile Process Teams using code +## Communicating with Agile Process Teams using code ## -This repository provides developers with code samples for interacting with the Agile Process Teams (APT) app. +This repository provides developers with code samples for interacting with the Agile Process Teams (APT) app. -APT is a multienterprise work management app that allows Owners to collaborate with cross-enterprise -and cross-functional trade partners throughout the supply chain by digitally executing, managing, and tracking shared -business processes, which increases speed and improves the effectiveness of the supply chain. Agile Process Teams allows -companies to create multiple networks that use the following processes for this digital collaboration: +APT is a multienterprise work management app that allows Owners to collaborate with cross-enterprise and cross-functional trade partners throughout the supply chain by digitally executing, managing, and tracking shared business processes, which increases speed and improves the effectiveness of the supply chain. Agile Process Teams allows companies to create multiple networks that use the following processes for this digital collaboration: -- Incidents: Direct Supplier, Indirect Supplier -- Incidents: External Manufacturing, Internal Manufacturing - Change Requests +- Document Review +- Incidents including Compliance Exception, Direct Supplier, External Manufacturing - Tasks -Currently, our API only supports incident management. Additional functionality will be added to this repository as it becomes -available. +Additional functionality will be added to this repository as it becomes available. -## Prerequisites +## Prerequisites ## -Your company must have licenses for the Suppy Chain Work Management solution and APT app. +Your company must have licenses for the Suppy Chain Work Management solution and APT app. -## Languages -Samples focus on basic actions using the most common scripting languages. These samples are organized in folders by language. Folders are added as language samples become available. +## Languages ## +Opus is capable of communicating in a language-agnostic manner. Users can use any programming or scripting language capable of sending and receiving HTTPS requests. Opus accepts AsyncAPI or GraphQL formats. -- [Python](python/README.MD) +[Use GraphQL in your automation solutions](GraphQL/GraphQL_Requests.md) +[Create requests using AsyncAPI](asyncapi/AsyncAPI_Requests.md) -## Support +## Support ## -If you find a bug or have feature request related to the code in this repository you can open a GitHub [issue](https://github.com/tracelink/code-samples/issues). +If you find a bug or have feature request related to the code in this repository you can open a GitHub [issue](https://github.com/tracelink/code-samples/issues). If you are having a technical issue with the API that requires troubleshooting, please [open a support ticket](https://www.tracelink.com/support). -## License +## License ## [MIT License](https://github.com/tracelink/code-samples/blob/4264373bdd1b093344538053709cfa538f36af47/LICENSE) -Copyright (c) 2022 TraceLink \ No newline at end of file +Copyright (c) 2022 TraceLink diff --git a/python/Troubleshooting.MD b/Troubleshooting.md similarity index 95% rename from python/Troubleshooting.MD rename to Troubleshooting.md index 2e8d0f7..ea36a52 100644 --- a/python/Troubleshooting.MD +++ b/Troubleshooting.md @@ -1,4 +1,4 @@ -# Troubleshooting Errors +# Troubleshooting Errors # The APT-SCWM API responds to each request with a status code and text describing the result of the request. @@ -51,4 +51,4 @@ Response message { "payload" : null } ``` -The **errMsg** reveals the validation of the payload object failed. In this case, the application determined the payload is missing `aptBusinessObjectSummary`, but it is required. +The **errMsg** reveals the validation of the payload object failed. In this case, the application determined the payload is missing `aptBusinessObjectSummary`, but it is required. diff --git a/asyncapi/AsyncAPI_Requests.md b/asyncapi/AsyncAPI_Requests.md new file mode 100644 index 0000000..93ba383 --- /dev/null +++ b/asyncapi/AsyncAPI_Requests.md @@ -0,0 +1,58 @@ +# Formatting API Requests + +## HTTP Request URL + +Your administrator can provide the URL you will use for submitting requests. +These requests will use the **POST** verb. + +## Request Header + +To authenticate with the APT application, include the following in the header of your HTTP request: +A **Token** that is your authorization to make requests. +A **Content Type** that identifies the format of the data passed. In this case it will be *application/json*. + +## Payload + +This is the data submitted to the application for processing, which contains a header and body. + +### Header + +The request body header identifies how APT processes your request. All items below are required: + +| Name | Type | Description | Value | +| -------------------- | ------- | ---------------------------------------------------------------------- | ------------------------------------------ | +| `headerVersion` | integer | The version identifier for the request | `1` | +| `eventName` | string | The fully qualified name of the request event. | See [event name mapping](../EventNames.md) | +| `ownerID` | string | The Owner company associated with the request. | See [authentication](../authentication.md) | +| `processNetworkId` | string | The network within the Owner company containing the process. | See [authentication](../authentication.md) | +| `appName` | string | The application that owns the event. | `"agile-process-teams"` | +| `dataspace` | string | The dataspace inside within the environment where the request is made. | `"default"` | + +### Body +A properly constructed JSON object is required as the payload. You can dynamically create the JSON object at runtime or create a file with the appropriate values to import as needed. + +The body parameters change depending on the `eventName` value passed in the body header. Please reference [API documentation](https://opus.tracelink.com/documentation/2021.1/en-US/apt/Content/topics/api/landing_incident_apis.htm?tocpath=Set%20up%20APIs%7CIncident%20process%20APIs%7C_____0) for more information on each event type. The [samples folder](../payload_samples) contains example payload bodies for each event type. + +An example of a complete payload body for adding a direct supplier incident: +``` +{ + "header": { + "headerVersion": 1, + "eventName": "agile-process-teams:add-direct-supplier-incident:v3", + "ownerId": "YOUR_OWNER_ID", + "processNetworkId": "YOUR_PROCESS_NETWORK_ID", + "appName": "agile-process-teams", + "dataspace": "default" + }, + "payload": { + "aptBusinessObjectSummary": "Product from manufacturer does not meet specifications.", + "directSupplierImpact": { + "businessPriority": "HIGH" + } + } +} +``` + +# Next +Review [event name mapping](eventNames.json) for each event type. +Follow [the quickstart](Quickstart.md) for an example using the APT-SCWM API. diff --git a/python/Quickstart.MD b/asyncapi/Quickstart.md similarity index 99% rename from python/Quickstart.MD rename to asyncapi/Quickstart.md index 0e9bdbf..fcc8094 100644 --- a/python/Quickstart.MD +++ b/asyncapi/Quickstart.md @@ -345,4 +345,4 @@ You will need a mechanism to create or update your payload data whether it is st You will also need a method to retain the `id` number for each incident you wish to reference. ## Troubleshooting -Review the [troubleshooting primer](Troubleshooting.MD). +Review the [troubleshooting primer](Troubleshooting.md). diff --git a/python/eventNames.json b/asyncapi/eventNames.json similarity index 100% rename from python/eventNames.json rename to asyncapi/eventNames.json diff --git a/payload_samples/changeRequest/ChangeRequest.MD b/asyncapi/json_payloads/change_request/ChangeRequest.md similarity index 100% rename from payload_samples/changeRequest/ChangeRequest.MD rename to asyncapi/json_payloads/change_request/ChangeRequest.md diff --git a/payload_samples/changeRequest/addChangeRequestAllFieldsPayloadTemplate.json b/asyncapi/json_payloads/change_request/addChangeRequestAllFieldsPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/addChangeRequestAllFieldsPayloadTemplate.json rename to asyncapi/json_payloads/change_request/addChangeRequestAllFieldsPayloadTemplate.json diff --git a/payload_samples/changeRequest/addChangeRequestMinFieldsPayloadTemplate.json b/asyncapi/json_payloads/change_request/addChangeRequestMinFieldsPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/addChangeRequestMinFieldsPayloadTemplate.json rename to asyncapi/json_payloads/change_request/addChangeRequestMinFieldsPayloadTemplate.json diff --git a/payload_samples/changeRequest/addCommentForChangePayloadTemplate.json b/asyncapi/json_payloads/change_request/addCommentForChangePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/addCommentForChangePayloadTemplate.json rename to asyncapi/json_payloads/change_request/addCommentForChangePayloadTemplate.json diff --git a/payload_samples/changeRequest/closeChangeRequestPayloadTemplate.json b/asyncapi/json_payloads/change_request/closeChangeRequestPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/closeChangeRequestPayloadTemplate.json rename to asyncapi/json_payloads/change_request/closeChangeRequestPayloadTemplate.json diff --git a/payload_samples/changeRequest/copyChangeRequestPayloadTemplate.json b/asyncapi/json_payloads/change_request/copyChangeRequestPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/copyChangeRequestPayloadTemplate.json rename to asyncapi/json_payloads/change_request/copyChangeRequestPayloadTemplate.json diff --git a/payload_samples/changeRequest/editChangeRequestBaseStatePayloadTemplate.json b/asyncapi/json_payloads/change_request/editChangeRequestBaseStatePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/editChangeRequestBaseStatePayloadTemplate.json rename to asyncapi/json_payloads/change_request/editChangeRequestBaseStatePayloadTemplate.json diff --git a/payload_samples/changeRequest/editChangeRequestPartnerImpactPayloadTemplate.json b/asyncapi/json_payloads/change_request/editChangeRequestPartnerImpactPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/editChangeRequestPartnerImpactPayloadTemplate.json rename to asyncapi/json_payloads/change_request/editChangeRequestPartnerImpactPayloadTemplate.json diff --git a/payload_samples/changeRequest/editCommentTextForChangePayloadTemplate.json b/asyncapi/json_payloads/change_request/editCommentTextForChangePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/editCommentTextForChangePayloadTemplate.json rename to asyncapi/json_payloads/change_request/editCommentTextForChangePayloadTemplate.json diff --git a/payload_samples/changeRequest/getChangeActivityHistoryPayloadTemplate.json b/asyncapi/json_payloads/change_request/getChangeActivityHistoryPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/getChangeActivityHistoryPayloadTemplate.json rename to asyncapi/json_payloads/change_request/getChangeActivityHistoryPayloadTemplate.json diff --git a/payload_samples/changeRequest/listCommentsForChangePayloadTemplate.json b/asyncapi/json_payloads/change_request/listCommentsForChangePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/listCommentsForChangePayloadTemplate.json rename to asyncapi/json_payloads/change_request/listCommentsForChangePayloadTemplate.json diff --git a/payload_samples/changeRequest/readChangePayloadTemplate.json b/asyncapi/json_payloads/change_request/readChangePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/readChangePayloadTemplate.json rename to asyncapi/json_payloads/change_request/readChangePayloadTemplate.json diff --git a/payload_samples/changeRequest/removeAttachmentFromchangeCommentPayloadTemplate.json b/asyncapi/json_payloads/change_request/removeAttachmentFromchangeCommentPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/removeAttachmentFromchangeCommentPayloadTemplate.json rename to asyncapi/json_payloads/change_request/removeAttachmentFromchangeCommentPayloadTemplate.json diff --git a/payload_samples/changeRequest/reopenChangeRequestPayloadTemplate.json b/asyncapi/json_payloads/change_request/reopenChangeRequestPayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/reopenChangeRequestPayloadTemplate.json rename to asyncapi/json_payloads/change_request/reopenChangeRequestPayloadTemplate.json diff --git a/payload_samples/changeRequest/toggleUserFollowsChangePayloadTemplate.json b/asyncapi/json_payloads/change_request/toggleUserFollowsChangePayloadTemplate.json similarity index 100% rename from payload_samples/changeRequest/toggleUserFollowsChangePayloadTemplate.json rename to asyncapi/json_payloads/change_request/toggleUserFollowsChangePayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/addDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/addDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/addDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/addDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/closeDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/closeDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/closeDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/closeDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/copyDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/copyDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/copyDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/copyDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/directSupplierIncident.MD b/asyncapi/json_payloads/direct_supplier/directSupplierIncident.md similarity index 100% rename from payload_samples/directSupplierIncident/directSupplierIncident.MD rename to asyncapi/json_payloads/direct_supplier/directSupplierIncident.md diff --git a/payload_samples/directSupplierIncident/editDirSupIncBaseStatePayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/editDirSupIncBaseStatePayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/editDirSupIncBaseStatePayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/editDirSupIncBaseStatePayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/editDirSupIncFinalRespPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/editDirSupIncFinalRespPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/editDirSupIncFinalRespPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/editDirSupIncFinalRespPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/editDirSupIncInitRespPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/editDirSupIncInitRespPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/editDirSupIncInitRespPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/editDirSupIncInitRespPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/editDirSupIncPartnerImpPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/editDirSupIncPartnerImpPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/editDirSupIncPartnerImpPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/editDirSupIncPartnerImpPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/readDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/readDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/readDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/readDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/reopenDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/reopenDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/reopenDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/reopenDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/directSupplierIncident/submitDirSupIncidentPayloadTemplate.json b/asyncapi/json_payloads/direct_supplier/submitDirSupIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/directSupplierIncident/submitDirSupIncidentPayloadTemplate.json rename to asyncapi/json_payloads/direct_supplier/submitDirSupIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/addExtMfgIncidentPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/addExtMfgIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/addExtMfgIncidentPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/addExtMfgIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/closeExtMfgIncidentPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/closeExtMfgIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/closeExtMfgIncidentPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/closeExtMfgIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/copyExtMfgIncidentPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/copyExtMfgIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/copyExtMfgIncidentPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/copyExtMfgIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/editExtMfgIncBaseStatePayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/editExtMfgIncBaseStatePayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/editExtMfgIncBaseStatePayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/editExtMfgIncBaseStatePayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/editMfgIncFinalRespPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/editMfgIncFinalRespPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/editMfgIncFinalRespPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/editMfgIncFinalRespPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/editMfgIncInitRespPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/editMfgIncInitRespPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/editMfgIncInitRespPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/editMfgIncInitRespPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/editMfgIncPartnerImpactPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/editMfgIncPartnerImpactPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/editMfgIncPartnerImpactPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/editMfgIncPartnerImpactPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/externalManufacturingIncident.MD b/asyncapi/json_payloads/external_manufacturing/externalManufacturingIncident.md similarity index 100% rename from payload_samples/externalManufacturingIncident/externalManufacturingIncident.MD rename to asyncapi/json_payloads/external_manufacturing/externalManufacturingIncident.md diff --git a/payload_samples/externalManufacturingIncident/readExtMfgIncidentPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/readExtMfgIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/readExtMfgIncidentPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/readExtMfgIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/reopenExtMfgIncidentPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/reopenExtMfgIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/reopenExtMfgIncidentPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/reopenExtMfgIncidentPayloadTemplate.json diff --git a/payload_samples/externalManufacturingIncident/submitExtMfgIncToPartnerPayloadTemplate.json b/asyncapi/json_payloads/external_manufacturing/submitExtMfgIncToPartnerPayloadTemplate.json similarity index 100% rename from payload_samples/externalManufacturingIncident/submitExtMfgIncToPartnerPayloadTemplate.json rename to asyncapi/json_payloads/external_manufacturing/submitExtMfgIncToPartnerPayloadTemplate.json diff --git a/payload_samples/incident/addIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/addIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/addIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/addIncidentPayloadTemplate.json diff --git a/payload_samples/incident/closeIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/closeIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/closeIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/closeIncidentPayloadTemplate.json diff --git a/payload_samples/incident/copyIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/copyIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/copyIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/copyIncidentPayloadTemplate.json diff --git a/payload_samples/incident/editIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/editIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/editIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/editIncidentPayloadTemplate.json diff --git a/payload_samples/incident/incident.MD b/asyncapi/json_payloads/incident/incident.md similarity index 100% rename from payload_samples/incident/incident.MD rename to asyncapi/json_payloads/incident/incident.md diff --git a/payload_samples/incident/readIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/readIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/readIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/readIncidentPayloadTemplate.json diff --git a/payload_samples/incident/reopenIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/reopenIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/reopenIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/reopenIncidentPayloadTemplate.json diff --git a/payload_samples/incident/submitIncidentPayloadTemplate.json b/asyncapi/json_payloads/incident/submitIncidentPayloadTemplate.json similarity index 100% rename from payload_samples/incident/submitIncidentPayloadTemplate.json rename to asyncapi/json_payloads/incident/submitIncidentPayloadTemplate.json diff --git a/payload_samples/masterData/masterData.MD b/asyncapi/json_payloads/master_data/masterData.md similarity index 100% rename from payload_samples/masterData/masterData.MD rename to asyncapi/json_payloads/master_data/masterData.md diff --git a/payload_samples/masterData/queryCompanyMasterTemplate.json b/asyncapi/json_payloads/master_data/queryCompanyMasterTemplate.json similarity index 100% rename from payload_samples/masterData/queryCompanyMasterTemplate.json rename to asyncapi/json_payloads/master_data/queryCompanyMasterTemplate.json diff --git a/payload_samples/masterData/queryPartnerMasterTemplate.json b/asyncapi/json_payloads/master_data/queryPartnerMasterTemplate.json similarity index 100% rename from payload_samples/masterData/queryPartnerMasterTemplate.json rename to asyncapi/json_payloads/master_data/queryPartnerMasterTemplate.json diff --git a/payload_samples/masterData/queryProductMasterTemplate.json b/asyncapi/json_payloads/master_data/queryProductMasterTemplate.json similarity index 100% rename from payload_samples/masterData/queryProductMasterTemplate.json rename to asyncapi/json_payloads/master_data/queryProductMasterTemplate.json diff --git a/payload_samples/shared/addCommentPayloadTemplate.json b/asyncapi/json_payloads/shared/addCommentPayloadTemplate.json similarity index 100% rename from payload_samples/shared/addCommentPayloadTemplate.json rename to asyncapi/json_payloads/shared/addCommentPayloadTemplate.json diff --git a/payload_samples/shared/editCommentForProcessRespPayloadTemplate.json b/asyncapi/json_payloads/shared/editCommentForProcessRespPayloadTemplate.json similarity index 100% rename from payload_samples/shared/editCommentForProcessRespPayloadTemplate.json rename to asyncapi/json_payloads/shared/editCommentForProcessRespPayloadTemplate.json diff --git a/payload_samples/shared/getActivityHistoryPayloadTemplate.json b/asyncapi/json_payloads/shared/getActivityHistoryPayloadTemplate.json similarity index 100% rename from payload_samples/shared/getActivityHistoryPayloadTemplate.json rename to asyncapi/json_payloads/shared/getActivityHistoryPayloadTemplate.json diff --git a/payload_samples/shared/listCommentsPayloadTemplate.json b/asyncapi/json_payloads/shared/listCommentsPayloadTemplate.json similarity index 100% rename from payload_samples/shared/listCommentsPayloadTemplate.json rename to asyncapi/json_payloads/shared/listCommentsPayloadTemplate.json diff --git a/payload_samples/shared/shared.MD b/asyncapi/json_payloads/shared/shared.md similarity index 100% rename from payload_samples/shared/shared.MD rename to asyncapi/json_payloads/shared/shared.md diff --git a/payload_samples/shared/toggleUserFollowsProcessPayloadTemplate.json b/asyncapi/json_payloads/shared/toggleUserFollowsProcessPayloadTemplate.json similarity index 100% rename from payload_samples/shared/toggleUserFollowsProcessPayloadTemplate.json rename to asyncapi/json_payloads/shared/toggleUserFollowsProcessPayloadTemplate.json diff --git a/payload_samples/task/addTaskPayloadTemplate.json b/asyncapi/json_payloads/task/addTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/addTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/addTaskPayloadTemplate.json diff --git a/payload_samples/task/addTaskSubTaskPayloadTemplate.json b/asyncapi/json_payloads/task/addTaskSubTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/addTaskSubTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/addTaskSubTaskPayloadTemplate.json diff --git a/payload_samples/task/closeSubTaskPayloadTemplate.json b/asyncapi/json_payloads/task/closeSubTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/closeSubTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/closeSubTaskPayloadTemplate.json diff --git a/payload_samples/task/closeTaskPayloadTemplate.json b/asyncapi/json_payloads/task/closeTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/closeTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/closeTaskPayloadTemplate.json diff --git a/payload_samples/task/copyTaskPayloadTemplate.json b/asyncapi/json_payloads/task/copyTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/copyTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/copyTaskPayloadTemplate.json diff --git a/payload_samples/task/editSubTaskPayloadTemplate.json b/asyncapi/json_payloads/task/editSubTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/editSubTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/editSubTaskPayloadTemplate.json diff --git a/payload_samples/task/editTaskPayloadTemplate.json b/asyncapi/json_payloads/task/editTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/editTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/editTaskPayloadTemplate.json diff --git a/payload_samples/task/listSubTaskForTaskPayloadTemplate.json b/asyncapi/json_payloads/task/listSubTaskForTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/listSubTaskForTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/listSubTaskForTaskPayloadTemplate.json diff --git a/payload_samples/task/readTaskPayloadTemplate.json b/asyncapi/json_payloads/task/readTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/readTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/readTaskPayloadTemplate.json diff --git a/payload_samples/task/removeSubTaskFromTaskPayloadTemplate.json b/asyncapi/json_payloads/task/removeSubTaskFromTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/removeSubTaskFromTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/removeSubTaskFromTaskPayloadTemplate.json diff --git a/payload_samples/task/reopenSubTaskPayloadTemplate.json b/asyncapi/json_payloads/task/reopenSubTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/reopenSubTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/reopenSubTaskPayloadTemplate.json diff --git a/payload_samples/task/reopenTaskPayloadTemplate.json b/asyncapi/json_payloads/task/reopenTaskPayloadTemplate.json similarity index 100% rename from payload_samples/task/reopenTaskPayloadTemplate.json rename to asyncapi/json_payloads/task/reopenTaskPayloadTemplate.json diff --git a/payload_samples/task/submitSubTaskToPartnerPayloadTemplate.json b/asyncapi/json_payloads/task/submitSubTaskToPartnerPayloadTemplate.json similarity index 100% rename from payload_samples/task/submitSubTaskToPartnerPayloadTemplate.json rename to asyncapi/json_payloads/task/submitSubTaskToPartnerPayloadTemplate.json diff --git a/payload_samples/task/task.MD b/asyncapi/json_payloads/task/task.md similarity index 100% rename from payload_samples/task/task.MD rename to asyncapi/json_payloads/task/task.md diff --git a/payload_samples/taskTemplate/addSubTaskToTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/addSubTaskToTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/addSubTaskToTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/addSubTaskToTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/addTaskTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/addTaskTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/addTaskTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/addTaskTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/copyTaskTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/copyTaskTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/copyTaskTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/copyTaskTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/editSubTaskOnTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/editSubTaskOnTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/editSubTaskOnTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/editSubTaskOnTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/editTaskTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/editTaskTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/editTaskTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/editTaskTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/listSubTaskForTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/listSubTaskForTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/listSubTaskForTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/listSubTaskForTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/removeSubTaskfromTemplatePayloadTemplate.json b/asyncapi/json_payloads/task_template/removeSubTaskfromTemplatePayloadTemplate.json similarity index 100% rename from payload_samples/taskTemplate/removeSubTaskfromTemplatePayloadTemplate.json rename to asyncapi/json_payloads/task_template/removeSubTaskfromTemplatePayloadTemplate.json diff --git a/payload_samples/taskTemplate/taskTemplate.MD b/asyncapi/json_payloads/task_template/taskTemplate.md similarity index 100% rename from payload_samples/taskTemplate/taskTemplate.MD rename to asyncapi/json_payloads/task_template/taskTemplate.md diff --git a/authentication.md b/authentication.md index 99ed771..eee9476 100644 --- a/authentication.md +++ b/authentication.md @@ -18,8 +18,8 @@ This process involves: 3. Using the directions below for your designated browser, generate the following values: - `_store_js_production_token`, a short lived token valid for one session -- `_store_js_production_processNetworkOwnerId`, passed in the [body header](python/FormatRequests.MD#header) -- `_store_js_production_processNetworkId`, passed in the [body header](python/FormatRequests.MD#header) +- `_store_js_production_processNetworkOwnerId`, passed in the [body header](python/FormatRequests.md#header) +- `_store_js_production_processNetworkId`, passed in the [body header](python/FormatRequests.md#header) ### Chrome diff --git a/collections/insomnia/TL_Insomnia_Collection.json b/collections/insomnia/TL_Insomnia_Collection.json new file mode 100644 index 0000000..845ed3d --- /dev/null +++ b/collections/insomnia/TL_Insomnia_Collection.json @@ -0,0 +1,4381 @@ +{ + "_type": "export", + "__export_format": 4, + "__export_date": "2024-11-01T14:07:44.775Z", + "__export_source": "insomnia.desktop.app:v8.2.0", + "resources": [ + { + "_id": "req_f6bfba61797c470095c5f4597d763d12", + "parentId": "fld_4678300409c74185aedb36908db22e32", + "modified": 1730465014572, + "created": 1730465014572, + "url": "{{val_server}}/api/events", + "name": "Generate API Key/Secret", + "description": "", + "method": "POST", + "body": { + "mimeType": "", + "text": "{\n \"payload\": {\n \"description\": \"uspt1\"\n },\n \"header\": {\n \"dataspace\": \"default\",\n \"appName\": \"user-admin\",\n \"headerVersion\": 1,\n \"eventName\": \"authorization-manager:generate-apiKeyCredentials:v1\",\n \"ownerId\": \"00000000-0000-0000-0000-000000000000\"\n }\n}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Bearer {{token}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014572, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_4678300409c74185aedb36908db22e32", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014571, + "created": 1730465014571, + "name": "Utility", + "description": "", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014571, + "_type": "request_group" + }, + { + "_id": "fld_939d6c0c84d841e08a401ab64e686cbe", + "parentId": "wrk_23dbdcfdc2b346e6a7e2efa3df639244", + "modified": 1730465014461, + "created": 1730465014461, + "name": "TraceLink Opus Platform APIs", + "description": "Communicate with the Opus platform using a set of parameterized requests designed to help you create, edit, view, and submit different types of incidents and business requests.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014461, + "_type": "request_group" + }, + { + "_id": "wrk_23dbdcfdc2b346e6a7e2efa3df639244", + "parentId": null, + "modified": 1730469765328, + "created": 1730469765328, + "name": "TraceLink Insomnia collection", + "description": "", + "scope": "collection", + "_type": "workspace" + }, + { + "_id": "req_74a5f7cefcf14cc0a126ec3154dbfe06", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014570, + "created": 1730465014570, + "url": "{{val_server}}/api/graphql", + "name": "Read Template Details", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ReadTemplateDetails($id: String!, $type: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on TaskTemplate{\\n id\\n data{\\n templateName\\n aptBusinessObjectDescription\\n isTemplateModifiableByMember\\n isAddRemoveSubtaskAllowed\\n completionRequiredWithinDays\\n businessPriority\\n responsibleDepartmentAtCompany\\n }\\n taskTemplateContainsSubTask{\\n to{\\n subType\\n objectType\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"type\\\":\\\"TaskTemplate\\\",\\n \\\"id\\\":\\\"{{task_template_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014570, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014562, + "created": 1730465014562, + "name": "Task Template Management", + "description": "Add, edit, and copy task templates and manage the associated template sub-tasks.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014562, + "_type": "request_group" + }, + { + "_id": "req_091179cd648d49e1ab963df1121b0873", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014569, + "created": 1730465014569, + "url": "{{val_server}}/api/graphql", + "name": "Copy Task Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CopyTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Copytasktemplate\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_template_id}}\\\",\\n \\\"templateName\\\":\\\"New template number 2\\\",\\n \\\"copyGeneralInfo\\\": true,\\n \\\"copySubTasks\\\": false\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014569, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_16839c186caa4b5b989f7c28f0d944b6", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014568, + "created": 1730465014568, + "url": "{{val_server}}/api/graphql", + "name": "Remove SubTask from Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation RemoveSubTaskFromTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Removesubtaskfromtemplate\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_template_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014568, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_78aaa6a4e4ba4d33a2778c0d38e30f74", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014567, + "created": 1730465014567, + "url": "{{val_server}}/api/graphql", + "name": "List SubTask for Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListSubTaskForTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listsubtaskfortemplate\\\",\\n\\\"payload\\\":{\\n \\\"templateId\\\":\\\"{{task_template_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014567, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_0444f96a8e5146f79b064b36e9345466", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014566, + "created": 1730465014566, + "url": "{{val_server}}/api/graphql", + "name": "Edit Sub Task on Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditSubTaskOnTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editsubtaskontemplate\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_template_id}}\\\",\\n \\\"subTaskName\\\":\\\"Modified template name 1\\\",\\n \\\"businessPriority\\\":\\\"LOW\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014566, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_44470a0f674c4108b1c427de31f2c883", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014565, + "created": 1730465014565, + "url": "{{val_server}}/api/graphql", + "name": "Edit Task Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Edittasktemplate\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_template_id}}\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"Modified template via Postman using GraphQL\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014565, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_f08f7115824e465b84c3977a7fbf46e0", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014564, + "created": 1730465014564, + "url": "{{val_server}}/api/graphql", + "name": "Add SubTask to Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddSubTaskToTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addsubtasktotemplate\\\",\\n\\\"payload\\\":{\\n \\\"templateId\\\":\\\"{{task_template_id}}\\\",\\n \\\"subTaskName\\\": \\\"GQL Created Sub Task 2\\\",\\n \\\"subTaskType\\\": \\\"Test subTask\\\",\\n \\\"businessPriority\\\": \\\"LOW\\\"\\n}\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014564, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_decd67113cdb4125895a3462d77910e4", + "parentId": "fld_54caaaf7d8e1449886bb6e6fdef2274c", + "modified": 1730465014563, + "created": 1730465014563, + "url": "{{val_server}}/api/graphql", + "name": "Add Task Template", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddTaskTemplate($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addtasktemplate\\\",\\n\\\"payload\\\":{\\n \\\"templateName\\\": \\\"Customer Service Task Template\\\",\\n \\\"aptBusinessObjectDescription\\\": \\\"Template for customer service tasks\\\",\\n \\\"isTemplateModifiableByMember\\\": false,\\n \\\"isAddRemoveSubtaskAllowed\\\": true,\\n \\\"completionRequiredWithinDays\\\": 7,\\n \\\"businessPriority\\\": \\\"LOW\\\",\\n \\\"responsibleDepartmentAtCompany\\\":\\\"CUSTOMER_SERVICE\\\"\\n}\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014563, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_352feb2c98514f2eb49a891696c060e3", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014561, + "created": 1730465014561, + "url": "{{val_server}}/api/graphql", + "name": "Submit a task to partner", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation SubmitTaskToPartner($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Submitsubtasktopartner\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014561, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_db99956bbb7a4e15967969d7ae39ec96", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014540, + "created": 1730465014540, + "name": "Task Management", + "description": "Add, edit, and copy task templates and manage the associated template sub-tasks.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014540, + "_type": "request_group" + }, + { + "_id": "req_71d6e427c6d941fdbdb3ed4d497a3dd5", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014559, + "created": 1730465014559, + "url": "{{val_server}}/api/graphql", + "name": "Toggle User follows task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ToggleFollowTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Toggleuserfollowstask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_id}}\\\",\\n \\\"processType\\\":\\\"task\\\",\\n \\\"follow\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014559, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_cfebde55c832474b8e841ff0872f442f", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014558, + "created": 1730465014558, + "url": "{{val_server}}/api/graphql", + "name": "Edit Subtask on Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditSubTaskOnTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editsubtaskontask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_id}}\\\",\\n \\\"newBaseState\\\": \\\"InProgress\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014558, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_4428d2311077464bba5acbe2ec7ab2da", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014557, + "created": 1730465014557, + "url": "{{val_server}}/api/graphql", + "name": "List SubTask for Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListSubTaskForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listsubtaskfortask\\\",\\n\\\"payload\\\":{\\n \\\"taskId\\\":\\\"{{task_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014557, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_692c9693254243e58bfca52cf915d1da", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014555, + "created": 1730465014555, + "url": "{{val_server}}/api/graphql", + "name": "Add SubTask to Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddSubTaskToTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addsubtasktotask\\\",\\n\\\"payload\\\":{\\n \\\"taskId\\\":\\\"{{task_id}}\\\",\\n \\\"subTaskName\\\": \\\"Sub-Task 1234\\\",\\n \\\"subTaskType\\\": \\\"Sub-Task type ABC\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014555, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_ac13a13660254f37977165ce6cffb82c", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014554, + "created": 1730465014554, + "url": "{{val_server}}/api/graphql", + "name": "Reopen Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Reopentask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014554, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_2daa874ea437497595e26f46561614b2", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014553, + "created": 1730465014553, + "url": "{{val_server}}/api/graphql", + "name": "List Comments For Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ListCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforprocess\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{task_id}}\\\",\\n \\\"processType\\\": \\\"task\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014553, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_5893889be0524d91bce2454ce4cc5a55", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014552, + "created": 1730465014552, + "url": "{{val_server}}/api/graphql", + "name": "Edit Comment For Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editcommentforprocess\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_comment_id}}\\\",\\n \\\"processType\\\": \\\"task\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Incorrect order uploaded\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014552, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_244995fae8d545738fa8a97ee184db86", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014551, + "created": 1730465014551, + "url": "{{val_server}}/api/graphql", + "name": "Add Comment For Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddCommentForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforprocess\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{task_id}}\\\",\\n \\\"processType\\\": \\\"task\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Attaching latest order documentation per Jen's request\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014551, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_72fa5dea73fb4637a2c9f685102cb2d7", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014550, + "created": 1730465014550, + "url": "{{val_server}}/api/graphql", + "name": "Remove Subtask", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation RemoveSubTaskFromTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Removesubtaskfromtask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014550, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d71bcb095d1f4fbe88c27ff2808249d3", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014549, + "created": 1730465014549, + "url": "{{val_server}}/api/graphql", + "name": "Get Activity History for Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{task_id}}\\\",\\n \\\"processType\\\":\\\"task\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014549, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_096add34a6c84dceb83a5f536ccaa804", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014548, + "created": 1730465014548, + "url": "{{val_server}}/api/graphql", + "name": "Reopen Subtask", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ReopenSubTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Reopensubtask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014548, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_3b74205640044691adf76a6e9cd70c2c", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014547, + "created": 1730465014547, + "url": "{{val_server}}/api/graphql", + "name": "Close Subtask", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseSubTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Closesubtask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{subtask_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014547, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_5076a2252e104c138f4709742e8722e8", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014546, + "created": 1730465014546, + "url": "{{val_server}}/api/graphql", + "name": "Close Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Closetask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_id}}\\\",\\n \\\"taskResolutionType\\\":\\\"CANCELLED\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014546, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_008c95571b0e46e8b085d5c0e9a78bff", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014545, + "created": 1730465014545, + "url": "{{val_server}}/api/graphql", + "name": "Copy Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Copytask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Copytask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_id}}\\\",\\n \\\"aptBusinessObjectSummary\\\": \\\"Copy of Task 1234\\\",\\n \\\"copyGeneralInfo\\\": true,\\n \\\"copySubTasks\\\": true,\\n \\\"copyRelatedProcesses\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014545, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_26f887f1e4fe438597b1874e3f0b4943", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465914978, + "created": 1730465014544, + "url": "{{ _.val_server }}/api/graphql", + "name": "Read Task Details", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ReadTaskDetails($id: String!, $type: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on Task{\\n id\\n data{\\n templateName\\n aptBusinessObjectDescription\\n isAddRemoveSubtaskAllowed\\n businessPriority\\n responsibleDepartmentAtCompany\\n }\\n taskContainsSubTask{\\n to{\\n subType\\n objectType\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"type\\\":\\\"Task\\\",\\n \\\"id\\\":\\\"{{task_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014544, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_91e9a0c010824852869d14cf0273aa6d", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014543, + "created": 1730465014543, + "url": "{{val_server}}/api/graphql", + "name": "Edit Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Edittask\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{task_id}}\\\",\\n \\\"newBaseState\\\":\\\"InProgress\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014543, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_3527492dfde84cc3b62da2687576f73f", + "parentId": "fld_db99956bbb7a4e15967969d7ae39ec96", + "modified": 1730465014541, + "created": 1730465014541, + "url": "{{val_server}}/api/graphql", + "name": "Add Task", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddTask($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addtask\\\",\\n\\\"payload\\\":{\\n \\\"templateId\\\": \\\"{{task_template_id}}\\\",\\n \\\"aptBusinessObjectSummary\\\": \\\"Quarterly Purchase Order Tasks\\\",\\n \\\"aptBusinessObjectDescription\\\": \\\"Tasks for recurring purchase orders\\\",\\n \\\"businessPriority\\\": \\\"HIGH\\\",\\n \\\"completionDueDate\\\": \\\"1737834411000\\\", \\n \\\"isVisible\\\": true,\\n \\\"isAtRisk\\\": false\\n \\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014541, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_a1f3372c17a9422c94457189b7a614e1", + "parentId": "fld_f32352280a084a55ae1d41ba9d5c0740", + "modified": 1730465014539, + "created": 1730465014539, + "url": "{{val_server}}/api/graphql", + "name": "Get Product Master Data", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query getProductMasterData($action: String!, $regulatoryItemCodeValue: String!, $regulatoryItemCodeType: String!)\\n{\\n genericActionCall(\\n action: $action,\\n payload:\\n {\\n regulatoryItemCodeValue: $regulatoryItemCodeValue,\\n regulatoryItemCodeType: $regulatoryItemCodeType\\n }\\n )\\n {\\n result\\n __typename\\n }\\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getproductbyitemcode\\\", \\n\\\"regulatoryItemCodeValue\\\":\\\"{{regulatory_item_code_value}}\\\",\\n\\\"regulatoryItemCodeType\\\": \\\"{{regulatory_item_code_type}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014539, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_f32352280a084a55ae1d41ba9d5c0740", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014536, + "created": 1730465014536, + "name": "Master Data Queries", + "description": "The Master Data Manager app allows customers to manage their Company, Company Location, Partner, Partner Location and Product information. This Master Data is used by all sorts of applications provided by TraceLink on TTS (SOM, SNM, Government Reporting) and Opus (APT, Government Reporting, etc).", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014536, + "_type": "request_group" + }, + { + "_id": "req_d5adaaf97e684535b35b534856bbdad2", + "parentId": "fld_f32352280a084a55ae1d41ba9d5c0740", + "modified": 1730465014538, + "created": 1730465014538, + "url": "{{val_server}}/api/graphql", + "name": "Get Partner Master Data", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query getQueryResults($regulatoryIdentifierValue: String!, $regulatoryIdentifierType: String!)\\n {\\n genericActionCall(\\n action: \\\"Getpartnerbyidentifier\\\",\\n payload:{\\n regulatoryIdentifierValue: $regulatoryIdentifierValue,\\n regulatoryIdentifierType: $regulatoryIdentifierType\\n }\\n )\\n{result}\\n}\",\"variables\":\"{\\n \\\"regulatoryIdentifierValue\\\": \\\"{{partner_regulatory_identifier}}\\\",\\n \\\"regulatoryIdentifierType\\\": \\\"{{partner_regulatory_identifier_type}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014538, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_927e5927d8e4486bb31a23e983d96a0b", + "parentId": "fld_f32352280a084a55ae1d41ba9d5c0740", + "modified": 1730465014537, + "created": 1730465014537, + "url": "{{val_server}}/api/graphql", + "name": "Get Company Master Data", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query getQueryResults($regulatoryCompanyIdentifierValue: String!, $regulatoryCompanyIdentifierType: String!)\\n {\\n genericActionCall(\\n action: \\\"Getcompanybyidentifier\\\",\\n payload:{\\n regulatoryCompanyIdentifierValue: $regulatoryCompanyIdentifierValue,\\n regulatoryCompanyIdentifierType: $regulatoryCompanyIdentifierType\\n }\\n )\\n{result}\\n}\",\"variables\":\"{\\n \\\"regulatoryCompanyIdentifierValue\\\": \\\"{{regulatory_company_identifier}}\\\",\\n \\\"regulatoryCompanyIdentifierType\\\": \\\"{{regulatory_company_type}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014537, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_82fe274941f842fb9be09f4f33fd052e", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014535, + "created": 1730465014535, + "url": "{{val_server}}/api/graphql", + "name": "Submit an Incident to partner", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation SubmitIncidentToPartner($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Submitincidenttopartner\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{incident_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014535, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_987de088208045458c4dc78617011e21", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014522, + "created": 1730465014522, + "name": "Incident Management", + "description": "Incident process APIs enable Suppliers, Manufacturers, CMOs, CPOs, 3PLs, and Repackagers to manage, track, and close a variety of issues and disruptions that occur throughout the supply chain.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014522, + "_type": "request_group" + }, + { + "_id": "req_8f8a0441c234429699576801875b6da7", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014534, + "created": 1730465014534, + "url": "{{val_server}}/api/graphql", + "name": "Reopen an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ReopenIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Reopenincident\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Reopening for audit purposes.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{incident_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014534, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_1e09eaf092984a31b1ae0bb80f5eed8c", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014533, + "created": 1730465014533, + "url": "{{val_server}}/api/graphql", + "name": "Close an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Closeincident\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Issue created by clerical error.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{incident_id}}\\\",\\n \\\"resolutionType\\\": \\\"NOT_AN_ISSUE\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014533, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_45ae4b8a64984fd0bf38b63f06a6490c", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014532, + "created": 1730465014532, + "url": "{{val_server}}/api/graphql", + "name": "Toggle User follows incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ToggleFollowIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Toggleuserfollowsincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{incident_id}}\\\",\\n \\\"processType\\\":\\\"incident\\\",\\n \\\"follow\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014532, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_3ed071ca8b26432faa1114b5e5ff083c", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014531, + "created": 1730465014531, + "url": "{{val_server}}/api/graphql", + "name": "Copy an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CopyIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\":\\\"Copyincident\\\",\\n \\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"Copy without generalInfo\\\",\\n \\\"copyGeneralInfo\\\": false,\\n \\\"copyImpactInfo\\\": true,\\n \\\"copyPartnerInfo\\\": false,\\n \\\"copyReferenceIds\\\": false,\\n \\\"copyRelatedProcesses\\\": true,\\n \\\"createdByPartner\\\":false,\\n \\\"id\\\": \\\"{{incident_id}}\\\",\\n \\\"isVisible\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014531, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_5d275bcb0f2a4dacb51b430ef6c0f686", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014530, + "created": 1730465014530, + "url": "{{val_server}}/api/graphql", + "name": "Get activity history for an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{incident_id}}\\\",\\n \\\"processType\\\":\\\"incident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014530, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_b9359b0868e2402ab31aa7fd659dbf8e", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014529, + "created": 1730465014529, + "url": "{{val_server}}/api/graphql", + "name": "List comments for an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{incident_id}}\\\",\\n \\\"processType\\\":\\\"incident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014529, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d58e61b1a99847789f4300ca95aa627c", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014527, + "created": 1730465014527, + "url": "{{val_server}}/api/graphql", + "name": "Add comments to an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{incident_id}}\\\",\\n \\\"processType\\\":\\\"incident\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Assigning investigation official.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014527, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_0d205d02f3e045deafc466304885021c", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014526, + "created": 1730465014526, + "url": "{{val_server}}/api/graphql", + "name": "Read incident details", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on Incident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n businessPriority\\n resolutionDueDate\\n incidentConclusion {\\n dateClosed\\n finalRootCause\\n resolutionType\\n isReoccuring\\n closingStatement\\n __typename\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n issueRelatedToImpactedProductDetail {\\n to {\\n ... on ProductMasterData {\\n id\\n data {\\n productItemInformation {\\n productName\\n packSize\\n strength\\n dosageForm\\n productLanguageCode\\n isLightSensitive\\n __typename\\n }\\n packagingInformation {\\n packagingCode {\\n packagingCodeType\\n packagingCodeValue\\n __typename\\n }\\n __typename\\n }\\n regulatoryItemCodes {\\n regulatoryItemCode{\\n regulatoryItemCodeType\\n regulatoryItemCodeValue\\n __typename\\n }\\n __typename\\n }\\n packagingInformationAndRegulatoryItemCodesDerivedField\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n impactedLots\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":\"{\\n \\\"type\\\":\\\"Incident\\\",\\n \\\"id\\\":\\\"{{incident_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014526, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_26a32298d9bf42ac91fd6f1c191f6665", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014525, + "created": 1730465014525, + "url": "{{val_server}}/api/graphql", + "name": "Edit an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{incident_id}}\\\",\\n \\\"businessPriority\\\":\\\"MEDIUM\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014525, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_29e6ec7dac7a4f35a2d76c8897501e26", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014524, + "created": 1730465014524, + "url": "{{val_server}}/api/graphql", + "name": "Edit a comment for an incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditIncidentComment($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Editcommentforincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{incident_comment_id}}\\\",\\n \\\"processType\\\": \\\"incident\\\",\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Uploading corrected documentation.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014524, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_716e6f50222c485e9ae3f70a291a6f55", + "parentId": "fld_987de088208045458c4dc78617011e21", + "modified": 1730465014523, + "created": 1730465014523, + "url": "{{val_server}}/api/graphql", + "name": "Create a new incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addincident\\\",\\n\\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"ABC Pharma | ACME Inc | INC-2023-01 | No EPCIS Data for 1 package\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"Shipment quarantined due to T1 reflecting incomplete data|SO 3027209239\\\",\\n \\\"businessPriority\\\":\\\"HIGH\\\",\\n \\\"incidentCategory\\\":\\\"Aggregate Shipment Error\\\",\\n \\\"resolutionDueDate\\\":\\\"1736613281000\\\", // 11 Jan 2025\\n \\\"responsiblePartyAtParner\\\":{}\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014523, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_9da07b14798e4787892be5f735714c52", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014521, + "created": 1730465014521, + "url": "{{val_server}}/api/graphql", + "name": "Submit an External Manufacturing Incident to partner", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation SubmitXMFGIncidentToPartner($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n }\\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Submitexternalmanufacturingincidenttopartner\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{external_manufacturing_incident_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014521, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_c9e5c20b434a4d90879c66e35e683735", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014508, + "created": 1730465014508, + "name": "External Manufacturing Incident", + "description": "Add, update, and resolve external manufacturing incidents (i.e. incidents involving providers of contract manufacturing and packaging services for APIs, bulk, and finished goods).", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014508, + "_type": "request_group" + }, + { + "_id": "req_d8d31d01a1a2476cb94a94dcf8edbbc5", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014520, + "created": 1730465014520, + "url": "{{val_server}}/api/graphql", + "name": "Get activity history for an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"processType\\\":\\\"externalManufacturingIncident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014520, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_421ea5f6ff364e8fa17854fdffaff649", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014519, + "created": 1730465014519, + "url": "{{val_server}}/api/graphql", + "name": "List comments for an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListXMFGIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"processType\\\":\\\"externalManufacturingIncident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014519, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_337e6e0f0c6b48a7b79def77d3e6120a", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014518, + "created": 1730465014518, + "url": "{{val_server}}/api/graphql", + "name": "Add a comment to an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddXMFGIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"processType\\\":\\\"externalManufacturingIncident\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"No explanation for shortage from raw material supplier. Researching feasibility of alternate suppliers\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014518, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d0166bc72ffd4ad1ac1fb65813369d82", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014516, + "created": 1730465014517, + "url": "{{val_server}}/api/graphql", + "name": "Read details of an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readXMFGIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on ExternalManufacturingIncident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n resolutionDueDate\\n externalManufacturingImpact{\\n businessImpact\\n businessPriority\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":\"{\\n \\\"type\\\":\\\"ExternalManufacturingIncident\\\",\\n \\\"id\\\":\\\"{{external_manufacturing_incident_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014517, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d26d99e00d984b5fa300426ab2273667", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014515, + "created": 1730465014515, + "url": "{{val_server}}/api/graphql", + "name": "Copy an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CopyXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Copyexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"createdByPartner\\\": false,\\n \\\"aptBusinessObjectSummary\\\": \\\"Tracking replacement order\\\",\\n \\\"copyGeneralInfo\\\": true,\\n \\\"copyPartnerInfo\\\": true,\\n \\\"copyMaterialInfo\\\": true,\\n \\\"copyImpactInfo\\\": false,\\n \\\"copyReferenceIds\\\": true,\\n \\\"copyRelatedProcesses\\\": false\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014515, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_5b2a48c16682462ca7517a15c955bc90", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014515, + "created": 1730465014515, + "url": "{{val_server}}/api/graphql", + "name": "Reopen an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ReopenXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Reopenexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"ABCD-1234 closed prematurely - reopening to finalize record.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014515, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_9072a24cf48f4170aa3a72a97aba676e", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014514, + "created": 1730465014514, + "url": "{{val_server}}/api/graphql", + "name": "Close an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Closeexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"resolutionType\\\":\\\"DUPLICATE\\\",\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Issue already identified in incident ABCD-2345\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014514, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_1660eaea2db744f28bae5ca710f2e8f2", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014512, + "created": 1730465014512, + "url": "{{val_server}}/api/graphql", + "name": "Edit Comment on an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Editexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"externalManufacturingResponse\\\": {\\n \\\"initialResponseInformation\\\": \\\"Assigning onsite investigator.\\\",\\n \\\"submitInitialResponse\\\": true\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014512, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_f716b24c2dfe4e1b813d8d7bced20cee", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014511, + "created": 1730465014511, + "url": "{{val_server}}/api/graphql", + "name": "Edit an External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Editexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{external_manufacturing_incident_id}}\\\",\\n \\\"externalManufacturingResponse\\\": {\\n \\\"initialResponseInformation\\\": \\\"Assigning onsite investigator.\\\",\\n \\\"submitInitialResponse\\\": true\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014511, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_edd697b6c58d49ef8f243cd2a86c0bf0", + "parentId": "fld_c9e5c20b434a4d90879c66e35e683735", + "modified": 1730465014510, + "created": 1730465014510, + "url": "{{val_server}}/api/graphql", + "name": "Create a new External Manufacturing Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddXMFGIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Addexternalmanufacturingincident\\\",\\n \\\"payload\\\": {\\n \\\"aptBusinessObjectSummary\\\": \\\"Raw materials shortage at Location XYZ\\\",\\n \\\"aptBusinessObjectDescription\\\": \\\"Supplier is experiencing a shortage.\\\",\\n \\\"externalManufacturingImpact\\\": {\\n \\\"businessPriority\\\": \\\"HIGH\\\"\\n },\\n \\\"resolutionDueDate\\\": 1736613281000 // 11 Jan 2025\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014510, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_bff2133f77e64637af0ebb1e51deaef0", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014507, + "created": 1730465014507, + "url": "{{val_server}}/api/graphql", + "name": "Toggle User follows review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ToggleFollowReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Toggleuserfollowsdocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{document_review_id}}\\\",\\n \\\"processType\\\":\\\"documentReview\\\",\\n \\\"follow\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014507, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_f6c8f615a52147c6970d37ce93751bbf", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014497, + "created": 1730465014497, + "name": "Document Review Process", + "description": "Document review process APIs enable supplier relationship managers, quality compliance managers, and manufacturing plant managers at companies that own or link to Agile Process Teams to manage, track, and complete document reviews.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014497, + "_type": "request_group" + }, + { + "_id": "req_81f0740f9d8a4a9fa36659560ea8b6c6", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014506, + "created": 1730465014506, + "url": "{{val_server}}/api/graphql", + "name": "Read Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readDocumentReview($id: String!, $type: String!)\\n{\\n genericGetObject(type: $type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on DocumentReview {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n businessPriority\\n createdByPartner\\n productId\\n aptBusinessObjectImpactsLocationMasterData{\\n locationType\\n locationContact\\n partnerLocationId\\n }\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n aptBusinessObjectContainsAttachment{\\n to {\\n ... on AptAttachment{\\n data{\\n fileName\\n fileSize\\n visibilityType\\n fileS3Location\\n }\\n }\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n } \\n}\",\"variables\":\"{\\n \\\"type\\\":\\\"DocumentReview\\\",\\n \\\"id\\\":\\\"{{document_review_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014506, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_78193da54d4e4a358f8dfc5d9e73b9de", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014505, + "created": 1730465014505, + "url": "{{val_server}}/api/graphql", + "name": "Get Activity History for Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{document_review_id}}\\\",\\n \\\"processType\\\":\\\"documentReview\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014505, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_af6c6d0742a1473ebced955de197ac52", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014503, + "created": 1730465014503, + "url": "{{val_server}}/api/graphql", + "name": "List Document Review Comments", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListDocumentReviewComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsfordocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{document_review_id}}\\\",\\n \\\"processType\\\":\\\"documentReview\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014503, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_7fe5a73d73c24e64a0ff718733398429", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014502, + "created": 1730465014502, + "url": "{{val_server}}/api/graphql", + "name": "Add Document Review Comment", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentfordocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{document_review_id}}\\\",\\n \\\"processType\\\":\\\"documentReview\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Attaching purchase order documentation per request\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014502, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_69c7674751994424bf3ef907a7f8651a", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014501, + "created": 1730465014501, + "url": "{{val_server}}/api/graphql", + "name": "Edit Document Review Comment", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Editcommentfordocumentreview\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{document_review_comment_id}}\\\",\\n \\\"processType\\\":\\\"documentReview\\\",\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Attaching purchase order with updated cost estimate\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014501, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_dccc66ee9ee84b6383550a87d2e79e3a", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014500, + "created": 1730465014500, + "url": "{{val_server}}/api/graphql", + "name": "Reopen Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ReopenDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Reopendocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{document_review_id}}\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Reopening document review for audit trail\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014500, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_fc2757dacd764777848734d286840ede", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014499, + "created": 1730465014499, + "url": "{{val_server}}/api/graphql", + "name": "Close Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Closedocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{document_review_id}}\\\",\\n \\\"reviewResolutionType\\\":\\\"NOT_APPLICABLE\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"approval not required for this review\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014499, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_6eb9bad2d73747ec9c839795b2acab00", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014498, + "created": 1730465014498, + "url": "{{val_server}}/api/graphql", + "name": "Edit Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editdocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{document_review_id}}\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Re-assigning to Jen\\\",\\n \\\"visibilityType\\\": \\\"InternalOnly\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014498, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_49c976a4323547b38edf56c483432449", + "parentId": "fld_f6c8f615a52147c6970d37ce93751bbf", + "modified": 1730465014497, + "created": 1730465014497, + "url": "{{val_server}}/api/graphql", + "name": "Add Document Review", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddDocumentReview($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Adddocumentreview\\\",\\n\\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\":\\\"PN3161193783831918\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"APT-INCSummary161193783832157\\\",\\n \\\"businessPriority\\\":\\\"MEDIUM\\\",\\n \\\"approvalDueDate\\\": \\\"1736613281000\\\" // 11 Jan 2025\\n}\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014497, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d64878fa9f3d4a19aee8d44cc04a33a0", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014496, + "created": 1730465014496, + "url": "{{val_server}}/api/graphql", + "name": "Get the activity history for a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForDSIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{direct_supplier_incident_id}}\\\",\\n \\\"processType\\\":\\\"directSupplierIncident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014496, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014484, + "created": 1730465014484, + "name": "Direct Supplier Incident", + "description": "Add, update, and resolve direct supply incidents (i.e. incidents involving providers of raw materials, components, and services related to manufacturing of products).", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014484, + "_type": "request_group" + }, + { + "_id": "req_df74712b7ed6487c87c062cb75df14ca", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014495, + "created": 1730465014495, + "url": "{{val_server}}/api/graphql", + "name": "Submit a Direct Supplier Incident to partner", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation SubmitDSIncidentToPartner($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Submitdirectsupplierincidenttopartner\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{direct_supplier_incident_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014495, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_9882569058624dfa9c40f72272829e72", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014493, + "created": 1730465014493, + "url": "{{val_server}}/api/graphql", + "name": "List comments for a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListDSIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{direct_supplier_incident_id}}\\\",\\n \\\"processType\\\":\\\"directSupplierIncident\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014493, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_ccc2335ce9804834866f916dfdfc6124", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014492, + "created": 1730465014492, + "url": "{{val_server}}/api/graphql", + "name": "Add a comment to a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddDSIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{direct_supplier_incident_id}}\\\",\\n \\\"processType\\\":\\\"directSupplierIncident\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Assigning investigator on location.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014492, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_a1bf388de4904b6380546321c0fb31d9", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014491, + "created": 1730465014491, + "url": "{{val_server}}/api/graphql", + "name": "Copy a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CopyIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n }\\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Copydirectsupplierincident\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{direct_supplier_incident_id}}\\\",\\n \\\"createdByPartner\\\": false,\\n \\\"aptBusinessObjectSummary\\\": \\\"Raw materials issue\\\",\\n \\\"copyGeneralInfo\\\": true,\\n \\\"copyPartnerInfo\\\": false,\\n \\\"copyMaterialInfo\\\": true,\\n \\\"copyImpactInfo\\\": false,\\n \\\"copyReferenceIds\\\": false,\\n \\\"copyRelatedProcesses\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "ownerId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": { + "type": "basic", + "disabled": false + }, + "metaSortKey": -1730465014491, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_ab27bcc4a34542e0a18b6d6332387076", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014490, + "created": 1730465014490, + "url": "{{val_server}}/api/graphql", + "name": "Reopen a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Reopendirectsupplierincident\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Reopening incident to expand the investigation.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{direct_supplier_incident_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014490, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_40f75a55eb7d421390ca5af4d07c9023", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014489, + "created": 1730465014489, + "url": "{{val_server}}/api/graphql", + "name": "Close a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation CloseIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Closedirectsupplierincident\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Closing incident, materials arrived in a separate shipment.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{direct_supplier_incident_id}}\\\",\\n \\\"resolutionType\\\": \\\"NOT_AN_ISSUE\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014489, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_477bf4128a87401bb6ad039ef172d53c", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014487, + "created": 1730465014487, + "url": "{{val_server}}/api/graphql", + "name": "Read the details of a Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readDSIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on DirectSupplierIncident {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n incidentType\\n resolutionDueDate\\n directSupplierImpact{\\n businessPriority\\n }\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerAssignedUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectCompanyOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPartnerOwnerUser {\\n to {\\n ... on User {\\n ...userName\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectPrimaryPartnerLocationMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\nfragment userName on User {\\n id\\n data {\\n givenName\\n surname\\n __typename\\n }\\n __typename\\n} \",\"variables\":\"{\\n \\\"type\\\":\\\"DirectSupplierIncident\\\",\\n \\\"id\\\":\\\"{{direct_supplier_incident_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014487, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_430b5a3e0f314c46b1c415e05b04b444", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014486, + "created": 1730465014486, + "url": "{{val_server}}/api/graphql", + "name": "Edit an existing Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditDSIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editdirectsupplierincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{direct_supplier_incident_id}}\\\",\\n \\\"directSupplierResponse\\\":{\\n \\\"initialResponseInformation\\\":\\\"Investigating issue. Reviewing records at location.\\\"\\n },\\n \\\"submitInitialResponse\\\": false\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014486, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_87145fdea52c4a30852b78f2b49965b8", + "parentId": "fld_ffd118a6cfe3472e8d274aa6eb2a8cb8", + "modified": 1730465014485, + "created": 1730465014485, + "url": "{{val_server}}/api/graphql", + "name": "Create a new Direct Supplier Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddDSIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Adddirectsupplierincident\\\",\\n\\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"Raw materials shortage at Location XYZ\\\",\\n \\\"directSupplierImpact\\\":{\\n \\\"businessPriority\\\":\\\"MEDIUM\\\"\\n },\\n \\\"resolutionDueDate\\\":1736613281000 // 11 Jan 2025\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014485, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_d603c7da8269429bb7673de39ffcbe95", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014483, + "created": 1730465014483, + "url": "{{val_server}}/api/graphql", + "name": "Get activity history for an existing Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForCEIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{compliance_exception_incident_id}}\\\",\\n \\\"processType\\\":\\\"complianceException\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014483, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_45787f7a22a0419a878a382ff61b1882", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014477, + "created": 1730465014477, + "name": "Compliance Exception Incident", + "description": "Add, update, and resolve supply chain compliance exception incidents on the Owner's network.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014477, + "_type": "request_group" + }, + { + "_id": "req_a7361b39cd884c45af45443c280ca9b4", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014482, + "created": 1730465014482, + "url": "{{val_server}}/api/graphql", + "name": "List comments for an existing Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListCEIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforincident\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{compliance_exception_incident_id}}\\\",\\n \\\"processType\\\":\\\"complianceException\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014482, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_5442c8d20b184aec9a6e6d59ecc29b67", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014481, + "created": 1730465014481, + "url": "{{val_server}}/api/graphql", + "name": "Add comments to an existing Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddCEIncidentComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{compliance_exception_incident_id}}\\\",\\n \\\"processType\\\":\\\"complianceException\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Adding a test comment using Postman and GraphQL.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014481, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_ca4c2574890c4cec905cab07f67dab80", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014480, + "created": 1730465014480, + "url": "{{val_server}}/api/graphql", + "name": "Read the details of a Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readCEIncident($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS {\\n ... on ComplianceException {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n resolutionDueDate\\n businessPriority\\n referenceIdentifiers {\\n value\\n referenceTransactionType\\n __typename\\n }\\n dateSubmitted\\n createdByPartner\\n __typename\\n }\\n aptBusinessObjectBelongsToProcessNetwork {\\n to {\\n ... on ProcessNetwork {\\n id\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\\n to {\\n ... on PartnerLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on PartnerMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyLocationMasterData {\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n ... on CompanyMasterData{\\n id\\n data {\\n businessMasterDataCommon {\\n businessName\\n businessAddress {\\n address1\\n address2\\n city\\n district\\n village\\n houseNumber\\n township\\n state\\n postalCode\\n country\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\n\",\"variables\":\"{\\n \\\"type\\\":\\\"ComplianceException\\\",\\n \\\"id\\\":\\\"{{compliance_exception_incident_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014480, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_491f914f95724886b37818dbd14eace3", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014479, + "created": 1730465014479, + "url": "{{val_server}}/api/graphql", + "name": "Edit an existing Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation EditComplianceException($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editcomplianceexception\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{compliance_exception_incident_id}}\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"Editing an compliance exception programmatically using graphQL via Postman\\\",\\n \\\"businessPriority\\\":\\\"LOW\\\",\\n \\\"responsiblePartyAtParner\\\":{}\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014479, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_e2bd2ffeaa4f4712913528a3f3f4bc1d", + "parentId": "fld_45787f7a22a0419a878a382ff61b1882", + "modified": 1730465014478, + "created": 1730465014478, + "url": "{{val_server}}/api/graphql", + "name": "Create a new Compliance Exception Incident", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddComplianceException($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcomplianceexception\\\",\\n\\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"Kendall Pharma | ACME Inc | INC-2023-01 | No EPCIS Data for 1 package\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"Shipment quarantined due to T1 reflecting incomplete data|SO 3027209239|PO 5201019344|Transaminase enzyme, CDX-017 (ACS-4007466). EPCIS shows 48 pallets and receiving called out 50 received.\\\",\\n \\\"businessPriority\\\":\\\"HIGH\\\",\\n \\\"createdByPartner\\\": false,\\n \\\"resolutionDueDateISO\\\": \\\"2025-04-15T01:30:00.000-05:00\\\"\\n //,\\\"resolutionDueDate\\\":\\\"1736613281000\\\" // 11 Jan 2025\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014478, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_23f0c169f84840799f5de6f279f9f2eb", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014475, + "created": 1730465014475, + "url": "{{val_server}}/api/graphql", + "name": "Read the details of a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query readChange($type: String!, $id: String!)\\n{\\n genericGetObject(type:$type, id: $id)\\n {\\n ... on ALL_RETURNS{\\n ... on Change {\\n id\\n currentBaseState\\n currentSubState\\n data {\\n aptBusinessObjectId\\n aptBusinessObjectSummary\\n aptBusinessObjectDescription\\n responsibleDepartmentAtCompany\\n responsibleDepartmentAtPartner\\n businessPriority\\n changeType\\n implementationDueDate\\n implementationTeam\\n subjectMatterExperts{\\n subjectMatterExpertName\\n subjectMatterExpertEmail\\n }\\n changeImpact{\\n changeReferenceIdentifiers{\\n referenceTransactionType\\n value\\n }\\n riskType\\n implementationNeededByDate\\n businessScopeImpact\\n otherBusinessScopeImpact\\n reasonForChange\\n reasonForChangeNotes\\n potentialRisks\\n evaluationsOfChange\\n }\\n createdByPartner\\n productId\\n aptBusinessObjectImpactsLocationMasterData{\\n locationType\\n locationContact\\n partnerLocationId\\n }\\n __typename\\n }\\n aptBusinessObjectContainsComment{\\n to {\\n ... on AptComment{\\n id\\n data{\\n commentText\\n visibilityType\\n }\\n }\\n }\\n }\\n aptBusinessObjectContainsAttachment{\\n to {\\n ... on AptAttachment{\\n data{\\n fileName\\n fileSize\\n visibilityType\\n fileS3Location\\n }\\n }\\n }\\n }\\n __typename\\n }\\n __typename\\n }\\n __typename\\n } \\n}\\n\",\"variables\":\"{\\n \\\"type\\\": \\\"Change\\\",\\n \\\"id\\\":\\\"{{change_id}}\\\"\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014475, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "fld_b2926a66ee224bbd968b8012bc42b710", + "parentId": "fld_939d6c0c84d841e08a401ab64e686cbe", + "modified": 1730465014463, + "created": 1730465014463, + "name": "Change Request Management", + "description": "Add, evaluate, and implement process change requests with their internal locations and external Partners on the network.", + "environment": {}, + "environmentPropertyOrder": null, + "metaSortKey": -1730465014463, + "_type": "request_group" + }, + { + "_id": "req_ef3b61e723924272821fe4fbf1c238a0", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014474, + "created": 1730465014474, + "url": "{{val_server}}/api/graphql", + "name": "Toggle User follows change", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation ToggleFollowChange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Toggleuserfollowschange\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{change_id}}\\\",\\n \\\"processType\\\":\\\"change\\\",\\n \\\"follow\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014474, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_06dab7eafbad467ca1bd7d1951afd4be", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014473, + "created": 1730465014473, + "url": "{{val_server}}/api/graphql", + "name": "Get activity history for a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Getactivityhistoryforincident\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{change_id}}\\\",\\n \\\"processType\\\":\\\"change\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014473, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_2a6229180a5f46ecb1a4cc55f9d518b0", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014472, + "created": 1730465014472, + "url": "{{val_server}}/api/graphql", + "name": "List comments for a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"query ListChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Listcommentsforchange\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{change_id}}\\\",\\n \\\"processType\\\":\\\"change\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014472, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_fae3f3de66f749278c4a64b28addaf24", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014470, + "created": 1730465014470, + "url": "{{val_server}}/api/graphql", + "name": "Add a comment to a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddChangeComments($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addcommentforchange\\\",\\n\\\"payload\\\":{\\n \\\"processId\\\":\\\"{{change_id}}\\\",\\n \\\"processType\\\":\\\"change\\\",\\n \\\"aptCommentBox\\\":{\\n \\\"aptComment\\\":{\\n \\\"commentText\\\": \\\"Uploading new specification documents.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014470, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_f358bf8e020846a7831b786c9e73de13", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014469, + "created": 1730465014469, + "url": "{{val_server}}/api/graphql", + "name": "Copy a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Copychange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\":\\\"Copychange\\\",\\n \\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"Make a copy of a change\\\",\\n \\\"copyGeneralInfo\\\": true,\\n \\\"copyImpactInfo\\\": true,\\n \\\"copyPartnerInfo\\\": false,\\n \\\"copyReferenceIds\\\": false,\\n \\\"copyRelatedProcesses\\\": true,\\n \\\"createdByPartner\\\":false,\\n \\\"id\\\": \\\"{{change_id}}\\\",\\n \\\"isVisible\\\": true\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014470, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_eeb859852f534c62964776aae3d42291", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014469, + "created": 1730465014469, + "url": "{{val_server}}/api/graphql", + "name": "Reopen a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Reopenchange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Reopenchange\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Change has caused unexpected issues, reopening issue to investigate.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{change_id}}\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014469, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_a5329144d1fc44079ddef70d3f358ca9", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014467, + "created": 1730465014467, + "url": "{{val_server}}/api/graphql", + "name": "Close a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Closechange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Closechange\\\",\\n \\\"payload\\\": {\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Closing Request 001. Requested changes approved and complete.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n },\\n \\\"id\\\": \\\"{{change_id}}\\\",\\n \\\"changeResolutionType\\\": \\\"NOT_APPLICABLE\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014467, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_f3d07b095eb14049a6bb5849c4990801", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014466, + "created": 1730465014466, + "url": "{{val_server}}/api/graphql", + "name": "Edit a change request comment", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Editchange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n \\\"action\\\": \\\"Editcommentforchange\\\",\\n \\\"payload\\\": {\\n \\\"id\\\": \\\"{{change_comment_id}}\\\",\\n \\\"processType\\\": \\\"Change\\\",\\n \\\"aptCommentBox\\\": {\\n \\\"aptComment\\\": {\\n \\\"commentText\\\": \\\"Attaching updated scanner Purchase Order per request.\\\",\\n \\\"visibilityType\\\": \\\"Public\\\"\\n }\\n }\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014466, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_ab5a7518b7a04291b8d2a1c12bfca3db", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014465, + "created": 1730465014465, + "url": "{{val_server}}/api/graphql", + "name": "Edit a change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation Editchange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Editchange\\\",\\n\\\"payload\\\":{\\n \\\"id\\\":\\\"{{change_id}}\\\",\\n \\\"isVisible\\\":true,\\n \\\"aptBusinessObjectDescription\\\":\\\"Replace existing scanners at warehouses company wide with upgraded model\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014465, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "req_43d0ca5e69104b1bb967ad6b2b981d84", + "parentId": "fld_b2926a66ee224bbd968b8012bc42b710", + "modified": 1730465014464, + "created": 1730465014464, + "url": "{{val_server}}/api/graphql", + "name": "Create a new change request", + "description": "", + "method": "POST", + "body": { + "mimeType": "application/graphql", + "text": "{\"query\":\"mutation AddChange($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":\"{\\n\\\"action\\\": \\\"Addchange\\\",\\n\\\"payload\\\":{\\n \\\"aptBusinessObjectSummary\\\": \\\"Scanner Upgrade\\\",\\n \\\"aptBusinessObjectDescription\\\":\\\"Replace existing scanners at Warehouse B with upgraded model\\\",\\n \\\"isVisible\\\": false,\\n \\\"businessPriority\\\": \\\"MEDIUM\\\"\\n }\\n}\"}" + }, + "parameters": [], + "headers": [ + { + "name": "Authorization", + "value": "Basic {{basicKey}}" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Dataspace", + "value": "default" + }, + { + "name": "companyId", + "value": "{{ownerId}}" + }, + { + "name": "processNetworkId", + "value": "{{processNetworkId}}" + } + ], + "authentication": {}, + "metaSortKey": -1730465014464, + "isPrivate": false, + "settingStoreCookies": true, + "settingSendCookies": true, + "settingDisableRenderRequestBody": false, + "settingEncodeUrl": true, + "settingRebuildPath": true, + "settingFollowRedirects": "global", + "_type": "request" + }, + { + "_id": "env_4c0e538ab46b43c9b46145f8ffa95ece", + "parentId": "wrk_23dbdcfdc2b346e6a7e2efa3df639244", + "modified": 1730469944612, + "created": 1730464983493, + "name": "Base Environment", + "data": {}, + "dataPropertyOrder": {}, + "color": null, + "isPrivate": false, + "metaSortKey": 1730464983493, + "_type": "environment" + }, + { + "_id": "jar_f0ba57f6e51a4f0187625b010f425b52", + "parentId": "wrk_23dbdcfdc2b346e6a7e2efa3df639244", + "modified": 1730469899170, + "created": 1730464983495, + "name": "Default Jar", + "cookies": [], + "_type": "cookie_jar" + } + ] +} diff --git a/collections/insomnia/TL_Insomnia_Environment.json b/collections/insomnia/TL_Insomnia_Environment.json new file mode 100644 index 0000000..1ff60ec --- /dev/null +++ b/collections/insomnia/TL_Insomnia_Environment.json @@ -0,0 +1,54 @@ +{ + "val_server": "https://valvir-opus.tracelink.com", + "response_body": "", + "prod_server": "https://prod-opus.tracelink.com", + "token": "", + "apiKey": "", + "apiSecret": "", + "ownerId": "", + "processNetworkId": "", + "ownerId_zero": "00000000-0000-0000-0000-000000000000", + "basicKey": "", + "task_template_id": "", + "task_id": "", + "subtask_id": "", + "incident_id": "", + "apt_incident_id": "", + "apt_task_id": "", + "payload_data": "", + "direct_supplier_incident_id": "", + "apt_direct_supplier_incident_id": "", + "direct_supplier_incident_comment_id": "", + "apt_change_id": "", + "tde_process_Network": "", + "comment_id": "", + "tde_bearer_token": "", + "tde_owner": "", + "change_comment_id": "", + "change_edit_id": "", + "copied_task_template_id": "", + "external_manufacturing_incident_id": "", + "apt_external_manufacturing_incident_id": "", + "external_manufacturing_incident_comment_id": "", + "compliance_exception_incident_id": "", + "copied_task_id": "", + "apt_compliance_exeption_id": "", + "compliance_exception_incident_comment_id": "", + "document_review_id": "", + "apt_document_review_id": "", + "document_review_comment_id": "", + "incident_type": "incident", + "incident_comment_id": "", + "partnerId": "", + "partnerUserId": "", + "change_id": "", + "parsedResult": "", + "regulatory_company_identifier": "", + "regulatory_company_type": "GLN", + "regulatory_item_code_value": "", + "regulatory_item_code_type": "US_NDC532", + "partner_regulatory_identifier": "", + "partner_regulatory_identifier_type": "GCP", + "subtask_template_id": "", + "task_comment_id": "" +} diff --git a/collections/postman/TL_Postman_Collection.json b/collections/postman/TL_Postman_Collection.json new file mode 100644 index 0000000..e567c36 --- /dev/null +++ b/collections/postman/TL_Postman_Collection.json @@ -0,0 +1,4548 @@ +{ + "info": { + "_postman_id": "282210fa-8de8-48fe-b965-aa6071a1c507", + "name": "GraphQL Requests", + "description": "Communicate with Supply Chain Work Management applications using a set of parameterized requests designed to help you create, edit, view, and submit different types of incidents and business requests.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "37528820", + "_collection_link": "https://tracelink-1.postman.co/workspace/Opus-automation~06848056-7fc9-4be9-8fb4-18f7c8831284/collection/37528820-282210fa-8de8-48fe-b965-aa6071a1c507?action=share&source=collection_link&creator=37528820" + }, + "item": [ + { + "name": "incident", + "item": [ + { + "name": "AddIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"incident_id\", mResult.id);", + "pm.environment.set(\"apt_incident_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addincident\",\n\"payload\":{\n \"aptBusinessObjectSummary\": \"GraphQL flow test run\",\n \"aptBusinessObjectDescription\":\"Adding an incident programmatically from postman using graphQL\",\n \"businessPriority\":\"MEDIUM\",\n \"incidentType\":\"LABEL_COMPLIANCE_ERROR\",\n \"resolutionDueDate\":\"1736613281000\", // 11 Jan 2025\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "EditIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editincident\",\n\"payload\":{\n \"id\":\"{{incident_id}}\",\n \"aptBusinessObjectDescription\":\"Editing an incident programmatically using graphQL via postman\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ReadIncident", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readIncident($type: String!, $id: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS {\n ... on Incident {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n incidentType\n businessPriority\n resolutionDueDate\n incidentConclusion {\n dateClosed\n finalRootCause\n resolutionType\n isReoccuring\n closingStatement\n __typename\n }\n referenceIdentifiers {\n value\n referenceTransactionType\n __typename\n }\n dateSubmitted\n createdByPartner\n __typename\n }\n aptBusinessObjectContainsComment{\n to {\n ... on AptComment{\n id\n data{\n commentText\n visibilityType\n }\n }\n }\n }\n issueRelatedToImpactedProductDetail {\n to {\n ... on ProductMasterData {\n id\n data {\n productItemInformation {\n productName\n packSize\n strength\n dosageForm\n productLanguageCode\n isLightSensitive\n __typename\n }\n packagingInformation {\n packagingCode {\n packagingCodeType\n packagingCodeValue\n __typename\n }\n __typename\n }\n regulatoryItemCodes {\n regulatoryItemCode{\n regulatoryItemCodeType\n regulatoryItemCodeValue\n __typename\n }\n __typename\n }\n packagingInformationAndRegulatoryItemCodesDerivedField\n __typename\n }\n __typename\n }\n __typename\n }\n impactedLots\n __typename\n }\n aptBusinessObjectBelongsToProcessNetwork {\n to {\n ... on ProcessNetwork {\n id\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on PartnerMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyMasterData{\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPrimaryPartnerLocationMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}\nfragment userName on User {\n id\n data {\n givenName\n surname\n __typename\n }\n __typename\n} ", + "variables": "{\n \"type\":\"Incident\",\n \"id\":\"{{incident_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "AddIncidentComment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"incident_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforincident\",\n\"payload\":{\n \"processId\":\"{{incident_id}}\",\n \"processType\":\"incident\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment using Postman and GraphQL.\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ListIncidentComments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforincident\",\n\"payload\":{\n \"id\":\"{{incident_id}}\",\n \"processType\":\"incident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "GetActivityHistoryForIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{incident_id}}\",\n \"processType\":\"incident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Direct Supplier Incident", + "item": [ + { + "name": "AddDsIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"direct_supplier_incident_id\", mResult.id);", + "pm.environment.set(\"apt_direct_supplier_incident_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddDSIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Adddirectsupplierincident\",\n\"payload\":{\n \"aptBusinessObjectSummary\": \"GraphQL Postman DS Incident test run\",\n \"aptBusinessObjectDescription\":\"Adding an incident programmatically using graphQL via Postman\",\n \"directSupplierImpact\":{\n \"businessPriority\":\"MEDIUM\"\n },\n \"resolutionDueDate\":1736613281000 // 11 Jan 2025\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "EditDsIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditDSIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editdirectsupplierincident\",\n\"payload\":{\n \"id\":\"{{direct_supplier_incident_id}}\",\n \"aptBusinessObjectDescription\":\"Editing an incident programmatically using graphQL via Postman\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ReadDsIncident", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readDSIncident($type: String!, $id: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS {\n ... on DirectSupplierIncident {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n incidentType\n resolutionDueDate\n directSupplierImpact{\n businessPriority\n }\n referenceIdentifiers {\n value\n referenceTransactionType\n __typename\n }\n dateSubmitted\n createdByPartner\n __typename\n }\n aptBusinessObjectBelongsToProcessNetwork {\n to {\n ... on ProcessNetwork {\n id\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on PartnerMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyMasterData{\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPrimaryPartnerLocationMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}\nfragment userName on User {\n id\n data {\n givenName\n surname\n __typename\n }\n __typename\n} ", + "variables": "{\n \"type\":\"DirectSupplierIncident\",\n \"id\":\"{{direct_supplier_incident_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "AddDsIncidentComment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"direct_supplier_incident_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddDSIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforincident\",\n\"payload\":{\n \"processId\":\"{{direct_supplier_incident_id}}\",\n \"processType\":\"directSupplierIncident\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment using Postman and GraphQL.\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ListDsIncidentComments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListDSIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforincident\",\n\"payload\":{\n \"id\":\"{{direct_supplier_incident_id}}\",\n \"processType\":\"directSupplierIncident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "GetActivityHistoryForDsIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForDSIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{direct_supplier_incident_id}}\",\n \"processType\":\"directSupplierIncident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "External Manufacturing Incident", + "item": [ + { + "name": "AddXMfgIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"external_manufacturing_incident_id\", mResult.id);", + "pm.environment.set(\"apt_external_manufacturing_incident_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddXMFGIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addexternalmanufacturingincident\",\n\"payload\":{\n \"aptBusinessObjectSummary\": \"GraphQL Postman test run\",\n \"aptBusinessObjectDescription\":\"Adding an incident programmatically from postman using graphQL\",\n \"externalManufacturingImpact\":{\n \"businessPriority\":\"MEDIUM\"\n },\n \"resolutionDueDate\":1736613281000 // 11 Jan 2025\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "EditXMfgIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditXMFGIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editexternalmanufacturingincident\",\n\"payload\":{\n \"id\":\"{{external_manufacturing_incident_id}}\",\n \"aptBusinessObjectDescription\":\"Editing an external manufacturing incident programmatically using graphQL via postman\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ReadXMfgIncident", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readXMFGIncident($type: String!, $id: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS {\n ... on ExternalManufacturingIncident {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n incidentType\n resolutionDueDate\n externalManufacturingImpact{\n businessImpact\n businessPriority\n }\n referenceIdentifiers {\n value\n referenceTransactionType\n __typename\n }\n dateSubmitted\n createdByPartner\n __typename\n }\n aptBusinessObjectBelongsToProcessNetwork {\n to {\n ... on ProcessNetwork {\n id\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerAssignedUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectCompanyOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPartnerOwnerUser {\n to {\n ... on User {\n ...userName\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on PartnerMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyMasterData{\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectPrimaryPartnerLocationMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}\nfragment userName on User {\n id\n data {\n givenName\n surname\n __typename\n }\n __typename\n} ", + "variables": "{\n \"type\":\"ExternalManufacturingIncident\",\n \"id\":\"{{external_manufacturing_incident_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "AddXMfgIncidentComment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"external_manufacturing_incident_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddXMFGIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforincident\",\n\"payload\":{\n \"processId\":\"{{external_manufacturing_incident_id}}\",\n \"processType\":\"externalManufacturingIncident\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment using Postman and GraphQL\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ListXMfgIncidentComments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListXMFGIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforincident\",\n\"payload\":{\n \"id\":\"{{external_manufacturing_incident_id}}\",\n \"processType\":\"externalManufacturingIncident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "GetActivityHistoryForXMfgIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForXMFGIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{external_manufacturing_incident_id}}\",\n \"processType\":\"externalManufacturingIncident\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Compliance Exception Incident", + "item": [ + { + "name": "AddCEIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result)", + "// pm.environment.set(\"payload_data\", jsonData.data);", + "pm.environment.set(\"compliance_exception_incident_id\", mResult.id);", + "pm.environment.set(\"apt_compliance_exeption_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddComplianceException($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcomplianceexception\",\n\"payload\":{\n \"aptBusinessObjectSummary\": \"GraphQL test run\",\n \"aptBusinessObjectDescription\":\"Adding a compliance exception incident programmatically from postman using graphQL walkthrough demo.\",\n \"businessPriority\":\"MEDIUM\",\n \"resolutionDueDate\":\"1736613281000\" // 11 Jan 2025\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "EditCEIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditComplianceException($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editcomplianceexception\",\n\"payload\":{\n \"id\":\"{{compliance_exception_incident_id}}\",\n \"aptBusinessObjectDescription\":\"Editing an compliance exception programmatically using graphQL via Postman\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ReadCEIncident", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readCEIncident($type: String!, $id: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS {\n ... on ComplianceException {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n resolutionDueDate\n businessPriority\n referenceIdentifiers {\n value\n referenceTransactionType\n __typename\n }\n dateSubmitted\n createdByPartner\n __typename\n }\n aptBusinessObjectBelongsToProcessNetwork {\n to {\n ... on ProcessNetwork {\n id\n __typename\n }\n __typename\n }\n __typename\n }\n aptBusinessObjectAssignedToCompanyPartnerMasterData {\n to {\n ... on PartnerLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on PartnerMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyLocationMasterData {\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n ... on CompanyMasterData{\n id\n data {\n businessMasterDataCommon {\n businessName\n businessAddress {\n address1\n address2\n city\n district\n village\n houseNumber\n township\n state\n postalCode\n country\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n\n __typename\n }\n __typename\n }\n __typename\n } \n}\n", + "variables": "{\n \"type\":\"ComplianceException\",\n \"id\":\"{{compliance_exception_incident_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "AddCEIncidentComment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"compliance_exception_incident_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddCEIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforincident\",\n\"payload\":{\n \"processId\":\"{{compliance_exception_incident_id}}\",\n \"processType\":\"complianceException\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment using Postman and GraphQL.\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ListCEIncidentComments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListCEIncidentComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforincident\",\n\"payload\":{\n \"id\":\"{{compliance_exception_incident_id}}\",\n \"processType\":\"complianceException\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "GetActivityHistoryForCEIncident", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForCEIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{compliance_exception_incident_id}}\",\n \"processType\":\"complianceException\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Change", + "item": [ + { + "name": "AddChange", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"change_id\", mResult.id);", + "pm.environment.set(\"apt_change_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddChange($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addchange\",\n\"payload\":{\n \"aptBusinessObjectSummary\": \"GraphQL using postman demo\",\n \"aptBusinessObjectDescription\":\"Test case entering a change request using postman and graphQL\",\n \"isVisible\": false,\n \"businessPriority\": \"MEDIUM\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "EditChange", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation Editchange($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editchange\",\n\"payload\":{\n \"id\":\"{{change_id}}\",\n \"aptBusinessObjectSummary\":\"GraphQL test run\",\n \"aptBusinessObjectDescription\":\"Using graphql in postman to edit.\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "CloseChange", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation Editchange($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editchange\",\n\"payload\":{\n \"id\":\"{{change_id}}\",\n \"aptBusinessObjectSummary\":\"GraphQL test run\",\n \"aptBusinessObjectDescription\":\"Using graphql in postman to edit.\",\n \"businessPriority\":\"LOW\",\n \"responsiblePartyAtParner\":{}\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "AddChangeComment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"change_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddChangeComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforchange\",\n\"payload\":{\n \"processId\":\"{{change_id}}\",\n \"processType\":\"change\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment using Postman and GraphQL.\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "ListChangeComments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListChangeComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforchange\",\n\"payload\":{\n \"id\":\"{{change_id}}\",\n \"processType\":\"change\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "GetActivityHistoryForChange", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForIncident($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{change_id}}\",\n \"processType\":\"change\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Read Change", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readChange($type: String!, $id: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS{\n ... on Change {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n businessPriority\n changeType\n implementationDueDate\n implementationTeam\n subjectMatterExperts{\n subjectMatterExpertName\n subjectMatterExpertEmail\n }\n changeImpact{\n changeReferenceIdentifiers{\n referenceTransactionType\n value\n }\n riskType\n implementationNeededByDate\n businessScopeImpact\n otherBusinessScopeImpact\n reasonForChange\n reasonForChangeNotes\n potentialRisks\n evaluationsOfChange\n }\n createdByPartner\n productId\n aptBusinessObjectImpactsLocationMasterData{\n locationType\n locationContact\n partnerLocationId\n }\n __typename\n }\n aptBusinessObjectContainsComment{\n to {\n ... on AptComment{\n id\n data{\n commentText\n visibilityType\n }\n }\n }\n }\n aptBusinessObjectContainsAttachment{\n to {\n ... on AptAttachment{\n data{\n fileName\n fileSize\n visibilityType\n fileS3Location\n }\n }\n }\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}\n", + "variables": "{\n \"type\": \"Change\",\n \"id\":\"{{change_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Document Review Process", + "item": [ + { + "name": "Add Document Review", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"document_review_id\", mResult.id);", + "pm.environment.set(\"apt_document_review_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddDocumentReview($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Adddocumentreview\",\n\"payload\":{\n \"aptBusinessObjectSummary\":\"New Document Review using graphQL and postman\",\n \"aptBusinessObjectDescription\":\"Adding a document review using postman and graphQL\",\n \"businessPriority\":\"MEDIUM\",\n \"approvalDueDate\": \"1736613281000\" // 11 Jan 2025\n}\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Document Review", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditDocumentReview($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editdocumentreview\",\n\"payload\":{\n \"id\":\"{{document_review_id}}\",\n \"aptBusinessObjectSummary\":\"GraphQL test run\",\n \"aptBusinessObjectDescription\":\"Using graphql in postman to edit document review incident\",\n \"businessPriority\":\"LOW\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Add Document Review Comment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"document_review_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddChangeComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentfordocumentreview\",\n\"payload\":{\n \"processId\":\"{{document_review_id}}\",\n \"processType\":\"documentReview\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a test comment to Document Review using Postman and GraphQL.\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "List Document Review Comments", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListDocumentReviewComments($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsfordocumentreview\",\n\"payload\":{\n \"id\":\"{{document_review_id}}\",\n \"processType\":\"documentReview\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Get Activity History for Document Review", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForDocumentReview($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{document_review_id}}\",\n \"processType\":\"documentReview\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Read Document Review", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query readDocumentReview($id: String!, $type: String!)\n{\n genericGetObject(type: $type, id: $id)\n {\n ... on ALL_RETURNS{\n ... on DocumentReview {\n id\n currentBaseState\n currentSubState\n data {\n aptBusinessObjectId\n aptBusinessObjectSummary\n aptBusinessObjectDescription\n responsibleDepartmentAtCompany\n responsibleDepartmentAtPartner\n businessPriority\n createdByPartner\n productId\n aptBusinessObjectImpactsLocationMasterData{\n locationType\n locationContact\n partnerLocationId\n }\n __typename\n }\n aptBusinessObjectContainsComment{\n to {\n ... on AptComment{\n id\n data{\n commentText\n visibilityType\n }\n }\n }\n }\n aptBusinessObjectContainsAttachment{\n to {\n ... on AptAttachment{\n data{\n fileName\n fileSize\n visibilityType\n fileS3Location\n }\n }\n }\n }\n __typename\n }\n __typename\n }\n } \n}", + "variables": "{\n \"type\":\"DocumentReview\",\n \"id\":\"{{document_review_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Task", + "item": [ + { + "name": "Add Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"task_id\", mResult.id);", + "pm.environment.set(\"apt_task_id\", mResult.aptBusinessObjectId);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addtask\",\n\"payload\":{\n \"templateId\": \"{{task_template_id}}\",\n \"aptBusinessObjectSummary\": \"GraphQL test run\",\n \"aptBusinessObjectDescription\": \"Tasks for recurring purchase orders\",\n \"businessPriority\": \"LOW\",\n \"completionDueDate\": \"1737834411000\", \n \"isVisible\": true,\n \"isAtRisk\": false\n \n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Edittask\",\n\"payload\":{\n \"id\":\"{{task_id}}\",\n \"aptBusinessObjectDescription\":\"Modifying the description using Postman and GraphQL\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Read Task Details", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ReadTaskDetails($id: String!, $type: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS{\n ... on Task{\n id\n data{\n templateName\n aptBusinessObjectDescription\n isAddRemoveSubtaskAllowed\n businessPriority\n responsibleDepartmentAtCompany\n }\n taskContainsSubTask{\n to{\n subType\n objectType\n }\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}", + "variables": "{\n \"type\":\"Task\",\n \"id\":\"{{task_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Copy Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"copied_task_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation Copytask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Copytask\",\n\"payload\":{\n \"id\":\"{{task_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Close Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation CloseTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Closetask\",\n\"payload\":{\n \"id\":\"{{task_id}}\",\n \"taskResolutionType\":\"CANCELLED\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Close Subtask", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation CloseSubTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Closesubtask\",\n\"payload\":{\n \"id\":\"{{subtask_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Reopen Subtask", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"incidentId\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation ReopenSubTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Reopensubtask\",\n\"payload\":{\n \"id\":\"{{subtask_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Get Activity History for Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query GetActivityHistoryForTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Getactivityhistoryforincident\",\n\"payload\":{\n \"processId\":\"{{task_id}}\",\n \"processType\":\"task\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Remove Subtask", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation RemoveSubTaskFromTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Removesubtaskfromtask\",\n\"payload\":{\n \"id\":\"{{subtask_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Add Comment For Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"task_comment_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddCommentForTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addcommentforprocess\",\n\"payload\":{\n \"processId\":\"{{task_id}}\",\n \"processType\": \"task\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Adding a comment using GraphQL via Postman\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Comment For Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditCommentForTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editcommentforprocess\",\n\"payload\":{\n \"id\":\"{{task_comment_id}}\",\n \"processType\": \"task\",\n \"aptCommentBox\":{\n \"aptComment\":{\n \"commentText\": \"Modifying the comment programmatically using GraphQL via Postman\",\n \"visibilityType\": \"Public\"\n }\n }\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "List Comments For Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation ListCommentForTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listcommentsforprocess\",\n\"payload\":{\n \"processId\":\"{{task_id}}\",\n \"processType\": \"task\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Reopen Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation CloseTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Closetask\",\n\"payload\":{\n \"id\":\"{{task_id}}\",\n \"resolutionType\":\"CANCELLED\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Add SubTask to Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"subtask_id\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddSubTaskToTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addsubtasktotask\",\n\"payload\":{\n \"taskId\":\"{{task_id}}\",\n \"subTaskName\": \"Postman created using GraphQL\",\n \"subTaskType\": \"Postman test\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "List SubTask for Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListSubTaskForTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listsubtaskfortask\",\n\"payload\":{\n \"taskId\":\"{{task_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Subtask on Task", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditSubTaskOnTask($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editsubtaskontask\",\n\"payload\":{\n \"id\":\"{{subtask_id}}\",\n \"subTaskType\": \"Postman test modification\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Task Template", + "item": [ + { + "name": "Add Task Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"task_template_id\", mResult.id);", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddTaskTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addtasktemplate\",\n\"payload\":{\n \"templateName\": \"GQL Postman Created Task Template\",\n \"aptBusinessObjectDescription\": \"Template to demonstrate subTask creation via GraphQL API and Postman\",\n \"isTemplateModifiableByMember\": true,\n \"isAddRemoveSubtaskAllowed\": true,\n \"completionRequiredWithinDays\": 14,\n \"businessPriority\": \"LOW\"\n}\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Add SubTask to Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"subtask_template_id\", mResult.id);", + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation AddSubTaskToTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Addsubtasktotemplate\",\n\"payload\":{\n \"templateId\":\"{{task_template_id}}\",\n \"subTaskName\": \"GQL Created Sub Task 2\",\n \"subTaskType\": \"Test subTask\",\n \"businessPriority\": \"LOW\"\n}\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Task Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditTaskTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Edittasktemplate\",\n\"payload\":{\n \"id\":\"{{task_template_id}}\",\n \"aptBusinessObjectDescription\":\"Modified template via Postman using GraphQL\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Edit Sub Task on Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation EditSubTaskOnTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Editsubtaskontemplate\",\n\"payload\":{\n \"id\":\"{{subtask_template_id}}\",\n \"subTaskName\":\"Modified template name 1\",\n \"businessPriority\":\"LOW\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "List SubTask for Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"incidentId\", mResult.id);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ListSubTaskForTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Listsubtaskfortemplate\",\n\"payload\":{\n \"templateId\":\"{{task_template_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Remove SubTask from Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation RemoveSubTaskFromTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Removesubtaskfromtemplate\",\n\"payload\":{\n \"id\":\"{{subtask_template_id}}\"\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Copy Task Template", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"copied_task_template_id\", mResult.id);" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation CopyTaskTemplate($action: String!, $payload: JSON!)\n{\n genericActionCall(action: $action, payload: $payload)\n {\n result\n __typename\n } \n}", + "variables": "{\n\"action\": \"Copytasktemplate\",\n\"payload\":{\n \"id\":\"{{task_template_id}}\",\n \"templateName\":\"New template number 2\",\n \"copyGeneralInfo\": true,\n \"copySubTasks\": false\n }\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Read Template Details", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query ReadTemplateDetails($id: String!, $type: String!)\n{\n genericGetObject(type:$type, id: $id)\n {\n ... on ALL_RETURNS{\n ... on TaskTemplate{\n id\n data{\n templateName\n aptBusinessObjectDescription\n isTemplateModifiableByMember\n isAddRemoveSubtaskAllowed\n completionRequiredWithinDays\n businessPriority\n responsibleDepartmentAtCompany\n }\n taskTemplateContainsSubTask{\n to{\n subType\n objectType\n }\n }\n __typename\n }\n __typename\n }\n __typename\n } \n}", + "variables": "{\n \"type\":\"TaskTemplate\",\n \"id\":\"{{task_template_id}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Master Data", + "item": [ + { + "name": "Get Product Master Data", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query getProductMasterData($action: String!, $regulatoryItemCodeValue: String!, $regulatoryItemCodeType: String!)\n{\n genericActionCall(\n action: $action,\n payload:\n {\n regulatoryItemCodeValue: $regulatoryItemCodeValue,\n regulatoryItemCodeType: $regulatoryItemCodeType\n }\n )\n {\n result\n __typename\n }\n}", + "variables": "{\n\"action\": \"Getproductbyitemcode\", \n\"regulatoryItemCodeValue\":\"{{regulatory_item_code_value}}\",\n\"regulatoryItemCodeType\": \"{{regulatory_item_code_type}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Get Company Master Data", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"response_body\", mResult);", + "", + "pm.test(\"Request is successful\",function(){", + " //pm.response.to.be.ok;", + " pm.response.to.have.status(200);", + "});", + "", + "pm.test(\"Response body is an Object\", function(){", + " if(pm.expect(mResult).not.eq(undefined)){", + " console.log(\"no problem\");", + " }", + " else{", + " pm.variables(mResult).eq(undefined);", + " console.log(\"problem\");", + " }", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query getQueryResults($regulatoryCompanyIdentifierValue: String!, $regulatoryCompanyIdentifierType: String!)\n {\n genericActionCall(\n action: \"Getcompanybyidentifier\",\n payload:{\n regulatoryCompanyIdentifierValue: $regulatoryCompanyIdentifierValue,\n regulatoryCompanyIdentifierType: $regulatoryCompanyIdentifierType\n }\n )\n{result}\n}", + "variables": "{\n \"regulatoryCompanyIdentifierValue\": \"{{regulatory_company_identifier}}\",\n \"regulatoryCompanyIdentifierType\": \"{{regulatory_company_type}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "Get Partner Master Data", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = JSON.parse(responseBody);", + "var mResult = JSON.parse(jsonData.data.genericActionCall.result);", + "pm.environment.set(\"response_body\", mResult);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "content-type": true + } + }, + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [ + { + "key": "Authorization", + "value": "Basic {{basicKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Dataspace", + "value": "default", + "type": "text" + }, + { + "key": "companyId", + "value": "{{ownerId}}", + "type": "text" + }, + { + "key": "processNetworkId", + "value": "{{processNetworkId}}", + "type": "text" + } + ], + "body": { + "mode": "graphql", + "graphql": { + "query": "query getQueryResults($regulatoryIdentifierValue: String!, $regulatoryIdentifierType: String!)\n {\n genericActionCall(\n action: \"Getpartnerbyidentifier\",\n payload:{\n regulatoryIdentifierValue: $regulatoryIdentifierValue,\n regulatoryIdentifierType: $regulatoryIdentifierType\n }\n )\n{result}\n}", + "variables": "{\n \"regulatoryIdentifierValue\": \"{{partner_regulatory_identifier}}\",\n \"regulatoryIdentifierType\": \"{{partner_regulatory_identifier_type}}\"\n}" + } + }, + "url": { + "raw": "{{validation}}/api/graphql", + "host": [ + "{{validation}}" + ], + "path": [ + "api", + "graphql" + ] + } + }, + "response": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/collections/postman/TL_Postman_Environment.json b/collections/postman/TL_Postman_Environment.json new file mode 100644 index 0000000..3e26746 --- /dev/null +++ b/collections/postman/TL_Postman_Environment.json @@ -0,0 +1,309 @@ +{ + "id": "42332a36-8454-4634-9dff-a1f2f1ea0d7b", + "name": "SupplyChainWorkManagement", + "values": [ + { + "key": "server", + "value": "https://valvir-opus.tracelink.com", + "type": "default", + "enabled": true + }, + { + "key": "response_body", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "prod", + "value": "https://prod-opus.tracelink.com", + "type": "default", + "enabled": true + }, + { + "key": "token", + "value": "", + "type": "secret", + "enabled": true + }, + { + "key": "apiKey", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apiSecret", + "value": "", + "type": "secret", + "enabled": true + }, + { + "key": "ownerId", + "value": "", + "type": "secret", + "enabled": true + }, + { + "key": "processNetworkId", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "ownerId_zero", + "value": "00000000-0000-0000-0000-000000000000", + "type": "default", + "enabled": true + }, + { + "key": "basicKey", + "value": "", + "type": "secret", + "enabled": true + }, + { + "key": "task_template_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "task_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "subtask_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_task_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "payload_data", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "direct_supplier_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_direct_supplier_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "direct_supplier_incident_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_change_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "change_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "change_edit_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "copied_task_template_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "external_manufacturing_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_external_manufacturing_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "external_manufacturing_incident_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "compliance_exception_incident_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "copied_task_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_compliance_exeption_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "compliance_exception_incident_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "document_review_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "apt_document_review_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "document_review_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "incident_type", + "value": "incident", + "type": "default", + "enabled": true + }, + { + "key": "incident_comment_id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "partnerId", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "partnerUserId", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "change_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "parsedResult", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "regulatory_company_identifier", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "regulatory_company_type", + "value": "GLN", + "type": "default", + "enabled": true + }, + { + "key": "regulatory_item_code_value", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "regulatory_item_code_type", + "value": "US_NDC532", + "type": "default", + "enabled": true + }, + { + "key": "partner_regulatory_identifier", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "partner_regulatory_identifier_type", + "value": "GCP", + "type": "default", + "enabled": true + }, + { + "key": "subtask_template_id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "task_comment_id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "incidentId", + "value": "", + "type": "any", + "enabled": true + } + ], + "_postman_variable_scope": "environment", + "_postman_exported_at": "2024-08-05T19:35:30.547Z", + "_postman_exported_using": "Postman/11.6.2" +} diff --git a/collections/readme.md b/collections/readme.md new file mode 100644 index 0000000..ed1a73b --- /dev/null +++ b/collections/readme.md @@ -0,0 +1,10 @@ +# API Collections # +Import these collections into your product of choice and start making calls right away. +## Postman ## +[TraceLink Postman collection](postman/TL_Postman_Collection.json) + +[TraceLink Postman environment](postman/TL_Postman_Environment.json) +## Insomnia ## +[TraceLink Insomnia Collection](TL_Insomnia_Collection.json) + +[TraceLink Insomnia environment](TL_Insomnia_Environment.json) diff --git a/payload_samples/indirectSupplierIncident/addIndSupIncMinFieldsPayloadTemplate.json b/payload_samples/indirectSupplierIncident/addIndSupIncMinFieldsPayloadTemplate.json deleted file mode 100644 index 38dd0be..0000000 --- a/payload_samples/indirectSupplierIncident/addIndSupIncMinFieldsPayloadTemplate.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:add-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "aptBusinessObjectSummary": "Raw materials shortage at Location XYZ", - "indirectSupplierImpact": { - "businessPriority": "HIGH" - } - } -} diff --git a/payload_samples/indirectSupplierIncident/addIndSupIncPayloadTemplate.json b/payload_samples/indirectSupplierIncident/addIndSupIncPayloadTemplate.json deleted file mode 100644 index a3dac99..0000000 --- a/payload_samples/indirectSupplierIncident/addIndSupIncPayloadTemplate.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:add-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "partnerCompany": { - "partnerId": "PARTNER_COMPANY_ID", - "toIdType": "companyMasterData" - }, - "partnerLocationId": "LOCATION_ID", - "indirectPartnerLocationId": "LOCATION_ID", - "aptBusinessObjectSummary": "Missing Shipment", - "aptBusinessObjectDescription": "Shipment XYZ missing at Location ABC", - "deviationType": "PLANNED", - "responsiblePartyAtCompany": "COMPANY_USER_ID", - "responsibleDepartmentAtCompany": "CUSTOMER_SERVICE", - "responsiblePartyAtPartner": "PARTNER_USER_ID", - "responsibleDepartmentAtPartner": "SUPPLY_CHAIN", - "currentlyAssignedCompanyUsers": [ - "COMPANY_USER_ID" - ], - "currentlyAssignedPartnerUsers": [ - "PARTNER_USER_ID", - "PARTNER_USER_ID" - ], - "serviceType": "FINISHED_GOODS", - "serviceSubtype": "DAMAGED_PRODUCT", - "serviceProblem": "COST_ESCALATION", - "isEscalated": false, - "originatingLocation": { - "originatingLocationId": "LOCATION_ID", - "toIdType": "partnerLocationMasterData" - }, - "resolutionDueDate": 1651133945000, - "createdByPartner": false, - "isSubmittedToPartner": true, - "referenceIdentifiers": { - "referenceTransactionType": "BILL_OF_LADING", - "value": "GTIN-1161187176294956" - }, - "indirectSupplierResponse": { - "initialResponseDueDate": 1641133945000, - "initialResponseInformation": "Initial Response Information", - "finalResponseDueDate": 1641133945000, - "finalResponseInformation": "Final Response Information", - "dateSamplesSentToCompany": 1641133945000, - "dateSamplesReceivedByCompany": 1641133945000, - "dateSamplesSentToPartner": 1641133945000, - "dateSamplesReceivedByPartner": 1641133945000, - "inventoryImpact": "Inventory Impact", - "inventoryAnalysisMethod": "Inventory Analysis Method", - "initialContainmentActions": "Final Containment Actions", - "recommendationFromOriginatingCompany": "Recommendation From Originating Company", - "immediateCorrectiveActions": "Immediate Corrective Actions", - "potentialRootCauses": [ - "DOCUMENTATION" - ], - "potentialRootCauseNotes": "Potential Root Cause Notes", - "finalPreventativeActions": "Final Preventative Actions", - "methodsToProvePreventativeActionsTaken": "Methods To Prove Preventative Actions Taken", - "replacementServices": [ - { - "availabilityDateForReplacements": 1641133945000, - "transactionIDsForReplacements": { - "referenceTransactionType": "INVOICE_NUMBER", - "value": "100" - } - } - ] - }, - "indirectSupplierImpact": { - "businessImpact": "Business Impact", - "businessPriority": "HIGH", - "impactedDepartments": [ - "CUSTOMER_SERVICE" - ], - "impactedServices": [ - "COMMERCIAL", - "GROUND_TRANSPORTATION" - ], - "highPriorityReasons": [ - "Reason1" - ], - "financialImpact": 1000000.00, - "dateSupplyImpacted": 1641133945000, - "originatingLocationInvestigationDueDate": 1641133945000, - "dateResourcesDeployed": 1641133945000, - "dateEscalationReportRequested": 1641133945000 - }, - "impactedLocations": { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - }, - "potentiallyImpactedLocations": [ - { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - } - ], - "aptEscalationReportBox": { - "addAttachment": [ - { - "fileSize": "5mb", - "fileName": "aptEscalationReportBox1", - "requestIdentifier": "REQUEST_IDENTIFIER_ID", - "visibilityType": "Public" - }, - { - "fileSize": "5mb", - "fileName": "aptEscalationReportBox2", - "requestIdentifier": "REQUEST_IDENTIFIER_ID", - "visibilityType": "Public" - } - ] - }, - "relatedProcesses": [ - { - "processId": "PROCESS_ID", - "processType": "incident" - } - ], - "aptCommentBox": [ - { - "aptComment": { - "commentText": "add DSI.", - "visibilityType": "Public" - }, - "addAttachment": [ - { - "fileSize": "5mb", - "fileName": "File1", - "requestIdentifier": "REQUEST_IDENTIFIER_ID", - "visibilityType": "Public" - } - ] - } - ] - } -} diff --git a/payload_samples/indirectSupplierIncident/closeIndSupIncPayloadTemplate.json b/payload_samples/indirectSupplierIncident/closeIndSupIncPayloadTemplate.json deleted file mode 100644 index 813589b..0000000 --- a/payload_samples/indirectSupplierIncident/closeIndSupIncPayloadTemplate.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:close-indirect-supplier-incident:v2", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "resolutionType": "RESOLVED", - "isReoccuring": true, - "impactedLocation": "LOCATION_ID", - "aptCommentBox": [ - { - "aptComment": { - "commentText": "Specs updated to correct version (v12.0). Were able to repackage with little loss", - "visibilityType": "Public" - } - } - ] - } -} diff --git a/payload_samples/indirectSupplierIncident/copyIndSupIncPayloadTemplate.json b/payload_samples/indirectSupplierIncident/copyIndSupIncPayloadTemplate.json deleted file mode 100644 index d1bdd71..0000000 --- a/payload_samples/indirectSupplierIncident/copyIndSupIncPayloadTemplate.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:copy-indirect-supplier-incident:v2", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "aptBusinessObjectSummary": "Packaging - quality issues", - "copyGeneralInfo": true, - "copyPartnerInfo": true, - "copyImpactInfo": false, - "copyReferenceIds": false, - "copyRelatedProceses": false - } -} diff --git a/payload_samples/indirectSupplierIncident/editIndSupBaseStatePayloadTemplate.json b/payload_samples/indirectSupplierIncident/editIndSupBaseStatePayloadTemplate.json deleted file mode 100644 index bbf9693..0000000 --- a/payload_samples/indirectSupplierIncident/editIndSupBaseStatePayloadTemplate.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "newBaseState": "UnderInvestigation" - } -} diff --git a/payload_samples/indirectSupplierIncident/editIndSupIncFinalRespPayloadTemplate.json b/payload_samples/indirectSupplierIncident/editIndSupIncFinalRespPayloadTemplate.json deleted file mode 100644 index 632bb92..0000000 --- a/payload_samples/indirectSupplierIncident/editIndSupIncFinalRespPayloadTemplate.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "indirectSupplierResponse": { - "finalResponseInformation": "Final response comment from supplier." - }, - "submitFinalResponse": true - } -} diff --git a/payload_samples/indirectSupplierIncident/editIndSupIncInitRespPayloadTemplate.json b/payload_samples/indirectSupplierIncident/editIndSupIncInitRespPayloadTemplate.json deleted file mode 100644 index 2bf1270..0000000 --- a/payload_samples/indirectSupplierIncident/editIndSupIncInitRespPayloadTemplate.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "indirectSupplierResponse": { - "initialResponseInformation": "Initial response from supplier." - }, - "submitInitialResponse": true - } -} diff --git a/payload_samples/indirectSupplierIncident/editIndSupIncPartnerPayloadTemplate.json b/payload_samples/indirectSupplierIncident/editIndSupIncPartnerPayloadTemplate.json deleted file mode 100644 index 16f3e8e..0000000 --- a/payload_samples/indirectSupplierIncident/editIndSupIncPartnerPayloadTemplate.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-indirect-supplier-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "partnerCompany": { - "partnerId": "PARTNER_COMPANY_ID", - "toIdType": "companyMasterData" - }, - "partnerLocationId": "LOCATION_ID", - "indirectPartnerLocationId": "LOCATION_ID", - "responsiblePartyAtPartner": "PARTNER_USER_ID", - "currentlyAssignedPartnerUsers": [ - "PARTNER_USER_ID" - ], - "indirectSupplierImpact": { - "businessImpact": "Business Impact", - "businessPriority": "HIGH", - "impactedDepartments": [ - "CUSTOMER_SERVICE" - ], - "highPriorityReasons": [ - "Reason1" - ], - "financialImpact": 164113394500, - "dateSupplyImpacted": 1641133945000, - "originatingLocationInvestigationDueDate": 1641133945000, - "dateResourcesDeployed": 1641133945000, - "dateEscalationReportRequested": 1641133945000 - }, - "impactedLocations": { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - }, - "potentiallyImpactedLocations": [ - { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - } - ], - "referenceIdentifiers": [ - { - "referenceTransactionType": "BILL OF LADING", - "value": "FZ-1896155146" - } - ], - "aptCommentBox": { - "aptComment": { - "commentText": "Re-assigning to Jen", - "visibilityType": "Internal" - } - } - } -} diff --git a/payload_samples/indirectSupplierIncident/readIndSupIncPayloadTemplate.json b/payload_samples/indirectSupplierIncident/readIndSupIncPayloadTemplate.json deleted file mode 100644 index 6a449db..0000000 --- a/payload_samples/indirectSupplierIncident/readIndSupIncPayloadTemplate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:read-indirectSupplierIncident:v4", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": {"id": "INCIDENT_ID"} diff --git a/payload_samples/indirectSupplierIncident/reopenIndSupIncPayloadTemplate.json b/payload_samples/indirectSupplierIncident/reopenIndSupIncPayloadTemplate.json deleted file mode 100644 index cd76ebd..0000000 --- a/payload_samples/indirectSupplierIncident/reopenIndSupIncPayloadTemplate.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:reopen-indirect-supplier-incident:v1", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id":"ITEM_ID", - "aptCommentBox": { - "aptComment": { - "commentText": "Reopening incident. Closed in error; issue not fully resolved.", - "visibilityType": "Public" - }, - "addAttachment": [ - { - "fileName": "Smith_email_download(1).pdf", - "fileSize": "5mb", - "visibilityType": "InternalOnly", - "requestIdentifier": "ITEM_ID" - } - ] - } - } -} diff --git a/payload_samples/indirectSupplierIncident/submitIndSupIncPartnerPayloadTemplate.json b/payload_samples/indirectSupplierIncident/submitIndSupIncPartnerPayloadTemplate.json deleted file mode 100644 index 677befc..0000000 --- a/payload_samples/indirectSupplierIncident/submitIndSupIncPartnerPayloadTemplate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:submit-indirect-supplier-incident-to-partner:v1", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID" - } -} diff --git a/payload_samples/internalManfucaturingIncident/addIntMfgIncFullPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/addIntMfgIncFullPayloadTemplate.json deleted file mode 100644 index a1a51f9..0000000 --- a/payload_samples/internalManfucaturingIncident/addIntMfgIncFullPayloadTemplate.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:add-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "aptBusinessObjectSummary": "Missing Shipment", - "aptBusinessObjectDescription": "Shipment XYZ missing at Location ABC", - "deviationType": "PLANNED", - "responsiblePartyAtCompany": "COMPANY_USER_ID", - "responsibleDepartmentAtCompany": "CUSTOMER_SERVICE", - "currentlyAssignedCompanyUsers": [ - "COMPANY_USER_ID" - ], - "materialType": "FINISHED_GOOD", - "materialSubtype": "CHEMICAL_API", - "materialProblem": "MATERIAL_SHORTAGE", - "originatingLocation": { - "originatingLocationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData" - }, - "resolutionDueDate": 1651133945000, - "referenceIdentifiers": { - "referenceTransactionType": "BILL_OF_LADING", - "value": "GTIN-1161187176294956" - }, - "internalManufacturingMaterialInformation": { - "materialName": "Material Name", - "materialDescription": "Material Description", - "companyLotNumber": "cln161187176294679", - "defectiveQuantity": 1, - "defectiveUnitOfMeasure": "CENTILITER", - "defectiveItemInformation": "Defective Item Information", - "samplesAvailable": false - }, - "internalManufacturingResponse": { - "initialResponseDueDate": 1641133945000, - "initialResponseInformation": "Initial Response Information", - "finalResponseDueDate": 1641133945000, - "finalResponseInformation": "Final Response Information", - "inventoryImpact": "Inventory Impact", - "initialContainmentActions": "Final Containment Actions", - "immediateCorrectiveActions": "Immediate Corrective Actions", - "potentialRootCauses": [ - "INCORRECT ACTIONS TAKEN DURING PROCESSING" - ], - "potentialRootCauseNotes": "Potential Root Cause Notes", - "finalPreventativeActions": "Final Preventative Actions", - "replacementMaterials": [ - { - "availabilityDateForReplacements": 1641133945000, - "transactionIDsForReplacements": { - "referenceTransactionType": "INVOICE_NUMBER", - "value": "100" - } - } - ] - }, - "internalManufacturingImpact": { - "businessImpact": "Business Impact", - "businessPriority": "HIGH", - "highPriorityReasons": [ - "Reason1" - ], - "financialImpact": 164113394500, - "originatingLocationInvestigationDueDate": 1641133945000, - "dateResourcesDeployed": 1641133945000, - "dateEscalationReportRequested": 1641133945000 - }, - "impactedProducts": [ - "PRODUCT_ID" - ], - "impactedLocations": { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - }, - "relatedProcesses": [ - { - "processId": "PROCESS_ID", - "processType": "incident" - } - ], - "aptCommentBox": [ - { - "aptComment": { - "commentText": "add DSI.", - "visibilityType": "Public" - }, - "addAttachment": [ - { - "fileSize": "5mb", - "fileName": "File1", - "requestIdentifier": "REQUEST_IDENTIFIER_ID", - "visibilityType": "Public" - } - ] - } - ] - } -} diff --git a/payload_samples/internalManfucaturingIncident/addIntMfgIncMinFieldsPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/addIntMfgIncMinFieldsPayloadTemplate.json deleted file mode 100644 index 42e5b7e..0000000 --- a/payload_samples/internalManfucaturingIncident/addIntMfgIncMinFieldsPayloadTemplate.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:add-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "aptBusinessObjectSummary": "Raw materials shortage at Location XYZ", - "internalManufacturingImpact": { - "businessPriority": "HIGH" - } - } -} diff --git a/payload_samples/internalManfucaturingIncident/closeIntMfgIncPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/closeIntMfgIncPayloadTemplate.json deleted file mode 100644 index 5c2cb2d..0000000 --- a/payload_samples/internalManfucaturingIncident/closeIntMfgIncPayloadTemplate.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:close-internal-manufacturing-incident:v2", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "resolutionType": "RESOLVED", - "isReoccuring": false, - "commentAndAttachments": [ - { - "aptComment": { - "commentText": "Investigation complete. Refer to root cause notes for additional information.", - "visibilityType": "Public" - }, - "addAttachment": [ - { - "fileName": "damaged_container.png", - "fileSize": "3mb", - "visibilityType": "Public", - "requestIdentifier": "REQUEST_IDENTIFIER_ID" - } - ] - } - ] - } -} diff --git a/payload_samples/internalManfucaturingIncident/copyIntMfgIncPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/copyIntMfgIncPayloadTemplate.json deleted file mode 100644 index c302fe4..0000000 --- a/payload_samples/internalManfucaturingIncident/copyIntMfgIncPayloadTemplate.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:copy-internal-manufacturing-incident:v1", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "aptBusinessObjectSummary": "Container damaged in transit (second occurrence)", - "copyGeneralInfo": true, - "copymaterialInfo": true, - "copyImpactInfo": false, - "copyReferenceIds": true, - "copyRelatedProcesses": true - } -} diff --git a/payload_samples/internalManfucaturingIncident/editIntMfgIncBaseStatePayloadTemplate.json b/payload_samples/internalManfucaturingIncident/editIntMfgIncBaseStatePayloadTemplate.json deleted file mode 100644 index 83755f0..0000000 --- a/payload_samples/internalManfucaturingIncident/editIntMfgIncBaseStatePayloadTemplate.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "newBaseState": "UnderInvestigation" - } -} diff --git a/payload_samples/internalManfucaturingIncident/editIntMfgIncFinalRespPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/editIntMfgIncFinalRespPayloadTemplate.json deleted file mode 100644 index a174e87..0000000 --- a/payload_samples/internalManfucaturingIncident/editIntMfgIncFinalRespPayloadTemplate.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "internalManufacturingResponse": { - "finalResponseInformation": "Final response comment from manufacturer." - }, - "submitFinalResponse": true - } -} diff --git a/payload_samples/internalManfucaturingIncident/editIntMfgIncImpactPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/editIntMfgIncImpactPayloadTemplate.json deleted file mode 100644 index 35a9bd9..0000000 --- a/payload_samples/internalManfucaturingIncident/editIntMfgIncImpactPayloadTemplate.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "indirectSupplierImpact": { - "businessImpact": "Business Impact", - "businessPriority": "HIGH", - "highPriorityReasons": [ - "Reason1" - ], - "financialImpact": 100000.00, - "originatingLocationInvestigationDueDate": 1641133945000, - "dateResourcesDeployed": 1641133945000, - "dateEscalationReportRequested": 1641133945000 - }, - "impactedProducts": [ - "PRODUCT_ID" - ], - "impactedLocations": { - "locationId": "LOCATION_ID", - "toIdType": "companyLocationMasterData", - "locationType": "INTERNAL", - "locationContact": "edavis" - }, - "referenceIdentifiers": [ - { - "referenceTransactionType": "BILL OF LADING", - "value": "FZ-1896155146" - } - ], - "aptCommentBox": { - "aptComment": { - "commentText": "Re-assigning to Jen", - "visibilityType": "Internal" - } - } - } -} diff --git a/payload_samples/internalManfucaturingIncident/editIntMfgIncInitRespPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/editIntMfgIncInitRespPayloadTemplate.json deleted file mode 100644 index f139118..0000000 --- a/payload_samples/internalManfucaturingIncident/editIntMfgIncInitRespPayloadTemplate.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:edit-internal-manufacturing-incident:v3", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "internalManufacturingResponse": { - "initialResponseInformation": "Initial response from supplier." - }, - "submitInitialResponse": true - } -} diff --git a/payload_samples/internalManfucaturingIncident/readIntMfgIncPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/readIntMfgIncPayloadTemplate.json deleted file mode 100644 index f04a89d..0000000 --- a/payload_samples/internalManfucaturingIncident/readIntMfgIncPayloadTemplate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:read-internalManufacturingIncident:v4", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": {"id": "INCIDENT_ID"} diff --git a/payload_samples/internalManfucaturingIncident/reopenIntMfgIncRespPayloadTemplate.json b/payload_samples/internalManfucaturingIncident/reopenIntMfgIncRespPayloadTemplate.json deleted file mode 100644 index fbbde94..0000000 --- a/payload_samples/internalManfucaturingIncident/reopenIntMfgIncRespPayloadTemplate.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "header": { - "headerVersion": 1, - "eventName": "agile-process-teams:reopen-internal-manufacturing-incident:v1", - "ownerId": "YOUR_OWNER_ID", - "processNetworkId": "YOUR_PROCESS_NETWORK_ID", - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": { - "id": "ITEM_ID", - "aptCommentBox": { - "aptComment": { - "commentText": "Incident closed by mistake. Reopening to complete investigation.", - "visibilityType": "Public" - } - } - } -} diff --git a/program_integration/node_blank.js b/program_integration/node_blank.js new file mode 100644 index 0000000..904b937 --- /dev/null +++ b/program_integration/node_blank.js @@ -0,0 +1,28 @@ +var request = require('request'); +var options = { + 'method': 'POST', + 'url': 'https://valvir-opus.tracelink.com/api/graphql', + 'headers': { + 'Authorization': 'Basic YOUR_AUTH_TOKEN', + 'Content-Type': 'application/json', + 'Dataspace': 'default', + 'companyId': 'YOUR_COMPANY_ID', + 'processNetworkId': 'YOUR_NETWORK_ID' + }, + body: JSON.stringify({ + query: `mutation takeAction}}($action: String!, $payload: JSON!) +{ + genericActionCall(action: $action, payload: $payload) + { + result + __typename + } +}`, + variables: + {} + }) +}; +request(options, function (error, response) { + if (error) throw new Error(error); + console.log(response.body); +}); diff --git a/program_integration/python_blank.py b/program_integration/python_blank.py new file mode 100644 index 0000000..ea01967 --- /dev/null +++ b/program_integration/python_blank.py @@ -0,0 +1,17 @@ +import requests +import json + +url = "https://valvir-opus.tracelink.com/api/graphql" + +payload = "{\"query\":\"mutation takeAction($action: String!, $payload: JSON!)\\n{\\n genericActionCall(action: $action, payload: $payload)\\n {\\n result\\n __typename\\n } \\n}\",\"variables\":{{}}}}" +headers = { + 'Authorization': 'Basic YOUR_AUTH_TOKEN', + 'Content-Type': 'application/json', + 'Dataspace': 'default', + 'companyId': 'YOUR_COMPANY_ID', + 'processNetworkId': 'YOUR_NETWORK_ID' +} + +response = requests.request("POST", url, headers=headers, data=payload) + +print(response.text) diff --git a/program_integration/readme.md b/program_integration/readme.md new file mode 100644 index 0000000..49bc295 --- /dev/null +++ b/program_integration/readme.md @@ -0,0 +1,5 @@ +# Program Integration # +Review API format-specific discussions to leverage the API format of your choice in your integrations. + +[Use GraphQL in your solutions](../GraphQL/GraphQL_Requests.md) +[Create requests using AsyncAPI](../asyncapi/AsyncAPI_Requests.md) diff --git a/python/.gitignore b/python/.gitignore deleted file mode 100644 index 49d9391..0000000 --- a/python/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -*.pyc -<<<<<<< HEAD -.idea/vcs.xml -======= -.idea/ ->>>>>>> 5e475191608c3846bbc9f412c8942b8c6e31ae2d diff --git a/python/README.MD b/python/README.MD deleted file mode 100644 index b345672..0000000 --- a/python/README.MD +++ /dev/null @@ -1,40 +0,0 @@ -# Python - -This repository provides developers with python code samples for interacting with TraceLink's Agile Process Teams (APT) app. - -## Installation - -NEEDS UPDATING - -## Usage - -This code was tested using python 3.10.0. - -**The *requests* and *json* modules are required for use.** -Use the **utils.py** file for the following actions: - -- Add your token to the HTTP request header -- Process the request payload from a JSON object or file -- Create the payload body -- Display the completed payload for accuracy prior to submitting -- Submit your request to APT - - -## Requests - -All requests have three main components: - -- **Request URL** - - {{protocol}}://{{server}}/api/events -- **Request header** - - Authenticates to APT using a token and content type -- **Payload header** - - Properly routes the request -- **Payload** - - Provides the details of the request - -# Next - -1. Review information on [authentication](../authentication.md). -2. Review [basic request formatting](FormatRequests.MD). -3. Follow the [quickstart](Quickstart.MD) for an example using the APT-SCWM API. diff --git a/python/requirements.txt b/python/requirements.txt deleted file mode 100644 index b81f2c0..0000000 --- a/python/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -requests~=2.28.1 \ No newline at end of file diff --git a/python/sample.py b/python/sample.py deleted file mode 100644 index 8d90ef7..0000000 --- a/python/sample.py +++ /dev/null @@ -1,52 +0,0 @@ -"""A sample module to serve as a template for creating and sending APT requests. - - Many endpoint variables will be in CamelCase, which strictly speaking, is not proper Python. - This is to help keep consistent with the API documentation rather than making perfectly formatted Python code. - - Basic process flow: - 1. Provide a token - 2. Create a header for the main request (APT requests have a request header and a payload header) - 3. Create your request payload. This will change for each of the different requests. - 4. Post your request using the above items. -""" - -# Imports -import utils -# the utils.py file handles processing imported data and formatting the request -# end Imports - -# Variables -# payload file created by copying from the API documentation -file_name = "c:/samples/addIncident.json" # you must supply this file -# authentication token -token = "SomeTokenYouGotFromSomewhere" -# end Variables - - -if __name__ == "__main__": - # the statements below can be made on their own from your own processes rather than using this function. - # the steps below when replaced with live data would create a single Direct Supplier incident - token = "NotARealToken" # admittedly redundant since we declared it earlier - file = "c:/temp/samples/addIncident.json" # again, we already declared this - - event_data = {"eventName": "agile-process-teams:add-direct-supplier-incident:v2", - "ownerId": "{your owner id}", - "processNetworkId": "{your process network id}"} - # data that is specific to the company and request being made - - request_header = utils.create_headers(token) - # create our headers using whatever bearer token we have, this supports reuse if making multiple requests - - payload_data = utils.read_payload_file(file) - # the JSON formatted file containing the specific values needed for our request - # this allows us to use a variety of different files and keep a consistent call to build the request body - - # request_body = incident.create_payload(payload_data) - request_body = utils.create_payload(event_data, payload_data) - # appends the payload data we just generated to the appropriate request header for the desired event - - utils.mock_request(request_header, request_body) - # purely a test function to use as a feedback mechanism during onboarding - - result = utils.post_request(request_header, request_body) - # POSTs the request to APT and returns a response object diff --git a/python/utils.py b/python/utils.py deleted file mode 100644 index b2e9408..0000000 --- a/python/utils.py +++ /dev/null @@ -1,137 +0,0 @@ -# This utils file is meant as a primer only. There is no error handling built in - -import requests -import json - -# establish some variables -# This is a placeholder for event data, it can be used to hold data as needed or (more likely) built during runtime. -# Be careful with the eventName. It should change depending on the category of request. -event_data = { - "eventName": "agile-process-teams:add-direct-supplier-incident:v2", - "ownerId": "{your ownerId}", - "processNetworkId": "{your processNetworkId}" -} - -# we expect this to remain static -request_url = "URL provided by your administrator" - - -def read_payload_file(filename): - """ - Opens a JSON formatted file and attempts to create a JSON payload object to submit to the specified module. - - :param filename: Path to a file containing the JSON formatted payload data. - :return: Reformatted payload data ready to be appended to a request body. - """ - try: - with open(filename, 'r') as file_in: - data = file_in.read() - j_object = json.loads(data) - my_payload = j_object.get("payload") # we're parsing inside the 'payload' node to just get the payload data - return my_payload - except Exception as e: - print(e) - - -def accept_json_payload(payload_in): - """ - Receives the already-formatted JSON string portion of the payload and prepares it for submission. - - :param payload_in: string - Formatted JSON string with payload data. - :return: Reformatted payload data ready to be appended to a request body. - """ - try: - # check to see if the payload is a valid JSON string, the application will reject bad data - data = json.loads(payload_in) - payload = data.get("payload") - return payload - except ValueError as v: - print("JSON formatted string not found: {}. Please check formatting and resubmit".format(v)) - except Exception as e: - print("Unexpected exception: {}.".format(e)) - - -def create_headers(method, token): - """ - Takes a token and returns a formatted request header (excluding the URL) - :param method: string - Basic or Bearer - :param token: string - Authentication token formatted as a string. - :return: Dictionary object containing the Authorization and Content Type - """ - headers = {"Authorization": "{0} {1}".format(method, token), "Content-Type": "application/json"} - return headers - - -def create_payload(event_in, payload_in): - """ - Takes a JSON payload object in and combines it with the appropriate header for the request. - - The API documentation outlines the available fields and data types for each request. - - The request body payload section can be generated dynamically or written to a file and parsed by the utils.read_json_file() function. - - :param event_in: string: A JSON object with the event name, owner id, process network id (to create request body header) - :param payload_in: string: Should be a properly formatted JSON object prescribed by the API documents - :return: A completed request body - """ - payload = json.dumps( - { - "header": { - "headerVersion": 1, - "eventName": event_in.get('eventName'), - "ownerId": event_in.get('ownerId'), - "processNetworkId": event_in.get('processNetworkId'), - "appName": "agile-process-teams", - "dataspace": "default" - }, - "payload": payload_in - } - ) - return payload - - -def mock_request(header, data): - """ - Test function to allow the user to compare their generated request body without sending it to APT. - - This is a learning tool only intended to allow the user to verify the data they generate against the official - Agile Process Teams API documentation to verify they have constructed a properly formatted payload. - - This function DOES NOT communicate with APT to verify required data or correct id numbers. - - :param header: dict - Header with token and content type - :param data: str - JSON string with the completed request body - :return: Outputs a 'pretty print' of the JSON request body for comparison to the API documentation - """ - - # reloading in the parsed data to do a JSON pretty print - request_body = json.loads(data) - print("HTML request header:") - print(header) - print("Body of event request:") - print(json.dumps(request_body, indent=4, sort_keys=True)) - return - - -def post_request(header, data): - """ - Takes a request URL, headers, and payload and submits the request to Opus APT - - :param header: dict: - Provide a token as a string to the create_headers function. - The output is your request header. - :param data: string: - The payload required for the endpoint to be used. - Each module will produce its own payload that can be passed as the data parameter. - :return: Response object with status code and message - """ - # we expect the URL to remain static for APT, so we'll just keep it in here as a variable - url = request_url - - # actually sending the request - response = requests.request("POST", url, headers=header, data=data) - - # process the response and inform the user - print("Response status code: {0}".format(response.status_code)) - print("Response message {0}".format(response.text)) - return response