diff --git a/extensions/servicenow/.eslintrc.json b/extensions/servicenow/.eslintrc.json new file mode 100644 index 00000000000..e6258e11d91 --- /dev/null +++ b/extensions/servicenow/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": ["@raycast"] +} diff --git a/extensions/servicenow/.gitignore b/extensions/servicenow/.gitignore new file mode 100644 index 00000000000..8a7810705ce --- /dev/null +++ b/extensions/servicenow/.gitignore @@ -0,0 +1,15 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules + +# Raycast specific files +raycast-env.d.ts +.raycast-swift-build +.swiftpm +compiled_raycast_swift + +# misc +.DS_Store +/dist + diff --git a/extensions/servicenow/.prettierrc b/extensions/servicenow/.prettierrc new file mode 100644 index 00000000000..fc0f5030683 --- /dev/null +++ b/extensions/servicenow/.prettierrc @@ -0,0 +1,4 @@ +{ + "printWidth": 120, + "singleQuote": false +} diff --git a/extensions/servicenow/CHANGELOG.md b/extensions/servicenow/CHANGELOG.md new file mode 100644 index 00000000000..b7a54e3542d --- /dev/null +++ b/extensions/servicenow/CHANGELOG.md @@ -0,0 +1,3 @@ +# Search Documate Changelog + +## [Initial Version] - 2024-10-17 diff --git a/extensions/servicenow/LICENSE b/extensions/servicenow/LICENSE new file mode 100644 index 00000000000..ba0671137c5 --- /dev/null +++ b/extensions/servicenow/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 SwissFlowIt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/extensions/servicenow/README.md b/extensions/servicenow/README.md new file mode 100644 index 00000000000..b3ec6fccd35 --- /dev/null +++ b/extensions/servicenow/README.md @@ -0,0 +1,32 @@ +# ServiceNow Raycast Extension + +## Overview + +The **ServiceNow Raycast Extension** allows you to easily search and explore content across your ServiceNow instances. With this extension, you can perform quick searches, manage instance profiles, and open specific instances or ServiceNow records in your browser. + +## Features + +- **Search:** View past searches, perform new queries, and switch between ServiceNow instances. +- **Manage Instance Profiles:** Configure and manage ServiceNow instance profiles for use in search queries. +- **Quick Search:** Search your ServiceNow instance instantly from the command window by entering a query without extra steps. +- **Open Instances:** Open all configured instances or the currently selected instance in the browser. +- **Open Current URL:** Open the current ServiceNow URL in a specified instance. This feature requires the [Raycast Browser Extension](https://www.raycast.com/browser-extension) + +## Setup Instructions + +### 1. ServiceNow Instance Profiles + +Before using the extension, you'll need to configure your ServiceNow instance profiles. To do this: + +- Use the **Manage Instance Profiles** command to add your ServiceNow instance information, including the instance name, username, and password. + +### 2. Enabling User Access to Search Terms + +To allow non-admin users to view and delete their past search terms, you'll need to install an **Update Set** in your ServiceNow instance. + +#### Steps to install: + +1. Download the update set [Allow access to user's search terms.xml](). +2. Navigate to **System Update Sets > Retrieved Update Sets** in your ServiceNow instance. +3. Click **Import Update Set from XML** and upload the file. +4. Commit the update set to enable the functionality. diff --git a/extensions/servicenow/assets/servicenow.png b/extensions/servicenow/assets/servicenow.png new file mode 100644 index 00000000000..00bbb16666e Binary files /dev/null and b/extensions/servicenow/assets/servicenow.png differ diff --git a/extensions/servicenow/assets/servicenow.svg b/extensions/servicenow/assets/servicenow.svg new file mode 100644 index 00000000000..f2d57b30089 --- /dev/null +++ b/extensions/servicenow/assets/servicenow.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/extensions/servicenow/media/Allow access to user's search terms.xml b/extensions/servicenow/media/Allow access to user's search terms.xml new file mode 100644 index 00000000000..bc233960667 --- /dev/null +++ b/extensions/servicenow/media/Allow access to user's search terms.xml @@ -0,0 +1,110 @@ + + +global +Global +global + + + + + + +Allow access to user's search terms + + + + + +c63cebab834d16d012bac7a6feaad32d +loaded + +sys_remote_update_set +robertoalvarezalonso +2024-10-12 18:39:31 +7ee9438c8395121012bac7a6feaad37d +0 +robertoalvarezalonso +2024-10-12 18:39:31 + + + + + +INSERT_OR_UPDATE +global +customer + +sys_security_acl_68faaf6b834d16d012bac7a6feaad3bb +truetruefalseuserDYNAMIC90d1921e5f510100a9ad2572f2b477fe^EQAllow read for all fields in ts_query, if the ACL condition (userDYNAMIC90d1921e5f510100a9ad2572f2b477fe^EQ) evaluates to true.Localts_queryread