Working select filters with include and exclude logic
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,7 @@
|
||||
import os
|
||||
|
||||
#getoutputs = {"emails": [0, "id"]}
|
||||
|
||||
name = "Get message"
|
||||
|
||||
kind = "action"
|
||||
@@ -8,29 +10,8 @@ kind = "action"
|
||||
|
||||
showstatus = True
|
||||
|
||||
#skipstep = {
|
||||
# "checkavailable": "validTo >= 3600"
|
||||
#}
|
||||
|
||||
#availabletime = int(os.environ.get("AVAILABLE_DURATION",3))
|
||||
|
||||
#duration = availabletime - 1
|
||||
|
||||
#keys = [
|
||||
# {
|
||||
# "keytitle": "option",
|
||||
# "keyvalue": 1,
|
||||
# },
|
||||
# {
|
||||
# "keytitle": "duration",
|
||||
# "keyvalue": duration,
|
||||
# },
|
||||
#]
|
||||
|
||||
method = "GET"
|
||||
|
||||
#messageid = 49971192
|
||||
|
||||
#path = f"https://rentmasseur.com/api/v1/mailbox/{messageid}"
|
||||
#path = [
|
||||
# "https://rentmasseur.com/api/v1/mailbox/",
|
||||
@@ -40,7 +21,7 @@ method = "GET"
|
||||
path = [
|
||||
"https://rentmasseur.com/api/v1/mailbox/",
|
||||
{
|
||||
"output": "messageid",
|
||||
"output": "emails",
|
||||
"keys": [0, "id"]
|
||||
}
|
||||
]
|
||||
@@ -54,10 +35,36 @@ headers = {
|
||||
},
|
||||
}
|
||||
|
||||
outputs = {
|
||||
"conversation": "messages"
|
||||
recursive = {
|
||||
"source": "emails",
|
||||
"target": "id"
|
||||
}
|
||||
|
||||
|
||||
outputs = {
|
||||
"message": "messages"
|
||||
}
|
||||
|
||||
#select = {
|
||||
# "source": "message",
|
||||
# "selectmethod": "include",
|
||||
#"key": "id",
|
||||
# "key": "seen",
|
||||
#"value": {"emails": [0, "id"]},
|
||||
# "value": "false",
|
||||
#}
|
||||
|
||||
select = {
|
||||
"source": "message",
|
||||
"include": {
|
||||
"key": "seen",
|
||||
"value": False,
|
||||
},
|
||||
"exclude": {
|
||||
"key": "senderId",
|
||||
"value": 238302,
|
||||
}
|
||||
}
|
||||
#prints = {
|
||||
# "message": "messages"
|
||||
#}
|
||||
|
||||
@@ -29,6 +29,16 @@ method = "GET"
|
||||
|
||||
#path = "https://rentmasseur.com/api/v1/mailbox?page=1&folder=1&sort=1"
|
||||
path = "https://rentmasseur.com/api/v1/mailbox"
|
||||
|
||||
|
||||
#path = [
|
||||
# "https://rentmasseur.com/api/v1/mailbox/",
|
||||
# {
|
||||
# "output": "emails",
|
||||
# "keys": [0, "id"]
|
||||
# }
|
||||
#]
|
||||
|
||||
headers = {
|
||||
"Authorization": {
|
||||
"output": "access_token",
|
||||
@@ -36,11 +46,23 @@ headers = {
|
||||
},
|
||||
}
|
||||
|
||||
#select = {
|
||||
# "source": "emails",
|
||||
# "selectmethod": "exclude",
|
||||
# "key": "unread",
|
||||
# "value": 0,
|
||||
#}
|
||||
|
||||
select = {
|
||||
"source": "emails",
|
||||
"selectmethod": "exclude",
|
||||
"key": "unread",
|
||||
"value": 0,
|
||||
"include": {
|
||||
"key": {},
|
||||
"value": {},
|
||||
},
|
||||
"exclude": {
|
||||
"key": "unread",
|
||||
"value": 0,
|
||||
}
|
||||
}
|
||||
|
||||
outputs = {
|
||||
|
||||
Binary file not shown.
@@ -7,7 +7,7 @@ kind = "operation"
|
||||
actions = [
|
||||
refresh_tokens,
|
||||
pullmessagelist,
|
||||
#getmessage,
|
||||
getmessage,
|
||||
#setavailable,
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user