What are special characters supported on the smartsheet api search - smartsheet-api

Right now form my understanding the smartsheet search is looking for anything alike the term searched.
Let's say i am looking for 'test' :
https://api.smartsheet.com/2.0/search?query=test
It can return :
my testimonial
test
i detest potatoes
yet a regular test
If there any special characters to perform a more advanced search (like a SQL like query) ?
exact match ?
begins with ?
ends with ?

I'm not sure that the /search endpoint supports special characters in the same way that SQL query would. However, both of the following scenarios are supported:
Scenario #1: find places where the specified string exists as a separate word (case-insensitive)
Scenario #2: find places where the specified string exists either as a separate word OR as a part of another word (case-insensitive)
The two examples below demonstrate each of these scenarios, by searching a sheet that looks like this:
Scenario #1: find places where the specified string exists as a separate word (case-insensitive)
To find places where the specified string exists as a separate word, enclose that string (i.e., the value of the query parameter) in double quotes.
API request: GET https://api.smartsheet.com/2.0/search/sheets/5831916227192708?query="new"
API response: the response contains entries for only row #2 and row #3 -- because the word "new" (as a separate word) exists only in those two rows.
{
"results": [
{
"text": "New York, NY",
"objectType": "row",
"objectId": 5895212085602180,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 2: Meeting #2"
]
},
{
"text": "Scranton, new jersey",
"objectType": "row",
"objectId": 3643412271916932,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 3: Meeting #3"
]
}
],
"totalCount": 2
}
Scenario #2: find places where the specified string exists either as a separate word OR as a part of another word (case-insensitive)
To find places where the specified string exists either as a separate word OR as a part of another word DO NOT enclose that string (i.e., the value of the query parameter) in quotes.
API request: https://api.smartsheet.com/2.0/search/sheets/5831916227192708?query=new
API response: the response contains entries for all 5 rows -- because the string "new" exists in all of those rows.
{
"results": [
{
"text": "New York, NY",
"objectType": "row",
"objectId": 5895212085602180,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 2: Meeting #2"
]
},
{
"text": "Avonew, MS",
"objectType": "row",
"objectId": 6198495731836804,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 4: Meeting #4"
]
},
{
"text": "Newtown, PA",
"objectType": "row",
"objectId": 1391612458231684,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 1: Meeting #1"
]
},
{
"text": "Anewston, MI",
"objectType": "row",
"objectId": 3946695918151556,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 5: Meeting #5"
]
},
{
"text": "Scranton, new jersey",
"objectType": "row",
"objectId": 3643412271916932,
"parentObjectType": "sheet",
"parentObjectId": 5831916227192708,
"parentObjectName": "SOTest",
"contextData": [
"Row 3: Meeting #3"
]
}
],
"totalCount": 5
}

Unfortunately, there is not. You will need to filter the results locally after you get the search results back. If there are too many results, try limiting the scope of your search, such as one workspace at a time, or only searching for reports.

Related

split mint money metaplex

I am new to blockchain technology and I have a certain issue with spliting into multiple wallet the mint money with metaplex
I want to know if it is possible to have some wallets that will get a percentage of the primary sale (mint) but will not get any royalties ?
And if it is possible how to do it ? (Json attribute in the metadata ? )
Here is my json metadata :
{
"name": "name",
"symbol": "symbol",
"description": "Collection of 2 NFTS on the blockchain. this is the number 1 out of 2.",
"seller_fee_basis_points": 500, // Here only public key 1 gets the royalties
"image": "1.png",
"attributes": [
{"trait_type:": "Background", "value": "Door"},
{"trait_type:": "Ninja", "value": "Red"}
],
"properties": {
"creators": [
{"address": "public key 1", "share": 50},
{"address": "public key 2", "share": 50}
],
"files": [{"uri": "1.png", "type": "image/png"}]
},
"collection": {"name": "Lavish Fighters", "family": "Rare"}
}
I do know we can't comment in Json it is just to make it more understandable
creators on the json field inside the metadata are deprecated on the newers standards. Also those creators are just for secondary markets royalty share.
You can take a look at Hydra its a wallet of wallets that work to split mint funds between different wallets. Here is a Hydra-UI that can work on mainnet.

Find particular sibling node using JOLT

Input JSON:
[
{
"NM108": "XX",
"NM109": "123123123",
"NM102": "2",
"id": "NM1",
"NM103": "ABCD WXYZ",
"NM101": "85"
},
{
"N301": "1234 MAIN ST",
"id": "N3"
},
{
"N401": "QWEQWRWEE",
"id": "N4",
"N402": "AB",
"N403": "12341234123"
},
{
"NM108": "AM",
"NM109": "345345345",
"NM104": "Kqwer",
"NM102": "1",
"id": "NM1",
"NM103": "Touok",
"NM101": "LI"
},
{
"N301": "1369 Riddley Ripper Blvd",
"id": "N3"
}
]
Problem:
This is a part of a big edi 837 standard input. Using JOLT script, we need to find only the N301 node (i.e. node with value "1234 MAIN ST") that comes right after NM101=85.
With my limited knowledge of JOLT, I can't seem to find a way to only find that N301 node where value is "1234 MAIN ST". All i can get is an array of "1234 MAIN ST" and "1369 Riddley Ripper Blvd". I can't seem to find a way to restrict the look up to only one that is a sibling of a particular node.
Any possible solution?

includeInDownload not work - Supplemental Document

I have an envelope with some documents, and one of them I do not want to be concatenated when you download the documents using the combined option. By reading the documentation, I found the includeInDownload attribute that can be passed to the documents when creating an envelope. But when I am creating the envelope, it seems that this attribute is being ignored, because after creating the envelope, I search the documents and the includeInDownload attribute is true. The envelope creation JSON:
{
"status": "created",
"emailSubject": "Example envelope",
"emailBlurb": "Example",
"documents": [{
"documentId": "1",
"name": "Test 1",
"remoteUrl": "URL"
},
{
"documentId": "2",
"name": "Test 2",
"remoteUrl": "URL",
"includeInDownload": "false"
}],
"recipients": {
"signers": [{
"name": "Lisa Simpson",
"email": "lisa#email.com",
"recipientId": "1",
"clientUserId": "1"
}]
}
}
You need to use the 'display' attribute as well for what we call "supplemental" documents.
If display=modal, the associated document is a supplement.
If display=inline, it’s not a supplement.

identify new words as intents in rasa nlu

Have been using rasa nlu to classify intents and entities for my chatbot. Everything works as expected (with extensive training) but with entities, it seems to predict the value based on the exact position and length of the word. This is fine for a scenario where the entities are limited. But when the bot needs to identify a word (which has a different length and not trained yet, for example a new name), it's failing to detect. Is there a way wherein I can make rasa identify the entities based on the relative position of the word or better yet, insert a list of words that becomes the domain specific for the entity to find a match with (like phrase list in LUIS)?
{"q":"i want to buy a Casio SX56"}
{
"project": "default",
"entities": [
{
"extractor": "ner_crf",
"confidence": 0.7043648832678735,
"end": 26,
"value": "Casio SX56",
"entity": "watch",
"start": 16
}
],
"intent": {
"confidence": 0.8835646513829762,
"name": "buy_watch"
},
"text": "i want to buy a Casio SX56",
"model": "model_20180522-165141",
"intent_ranking": [
{
"confidence": 0.8835646513829762,
"name": "buy_watch"
},
{
"confidence": 0.07072182459497935,
"name": "greet"
}
]
}
But if Casio SX56 gets replaced with Citizen M1:
{"q":"i want to buy a Citizen M1"}
{
"project": "default",
"intent": {
"confidence": 0.8710909096729019,
"name": "buy_watch"
},
"text": "i want to buy a Citizen M1",
"model": "model_20180522-165141",
"intent_ranking": [
{
"confidence": 0.8710909096729019,
"name": "buy_watch"
},
{
"confidence": 0.07355588750895545,
"name": "greet"
}
]
}
Thank you!
Make sure you actually added each entity value training examples before training it with rasa_nlu.
--- For successful entity extraction we need to create at least 2 or more contextual training data ---
add this eg. in rasa_nlu training data if it's not extracting properly
"text": "i want to buy a Citizen M1",
"model": "model_20180522-165141",
"intent_ranking": [
{
"confidence": 0.8710909096729019,
"name": "buy_watch"
},
{
"confidence": 0.07355588750895545,
"name": "greet"
}
]
entity extraction with phrase matching does work in rasa_nlu try it with spacy_sklearn backend pipeline
The feature I was looking for is phrase matcher which would allow me to add a list of possible entities to the training model. This way, if any new name pops up, we can simply add the name to the phrase list and the model would be able to identify it with all possible utterances. Though this is still in development and should be added to the master soon: https://github.com/RasaHQ/rasa_nlu/pull/822

Special characters in Smartsheet API (2.0) - search

Within the API for smartsheet I use the search everything method.
However, when trying to search for 'A01 PXXX' it returns me also rows (and cells) which contain only 'A01' and 'PXXX'. Is there a way to search for the whole searchstring (so including the space character)
If you URL-encode the space character in the query querystring parameter value, it the Search Everything operation should return only results that contain the full string.
For example, I have a sheet that contains these values:
I execute the following request: GET https://api.smartsheet.com/2.0/search?query=A01%20PXXX
And the response contains search results for only the two rows that contain the string "A01 PXXX":
{
"results": [
{
"text": "A01 PXXX",
"objectType": "row",
"objectId": 8740290866505604,
"parentObjectType": "sheet",
"parentObjectId": 505434269345668,
"parentObjectName": "Project Plan (Office Timeline Test)",
"contextData": [
"Row 20"
]
},
{
"text": "A01 PXXX",
"objectType": "row",
"objectId": 1732072470538116,
"parentObjectType": "sheet",
"parentObjectId": 505434269345668,
"parentObjectName": "Project Plan (Office Timeline Test)",
"contextData": [
"Row 17"
]
}
],
"totalCount": 2
}