added rsparser field in dynamicOpts

changed Value field to unexported and created a Value() method
on each dynOpts type that contains logic to create a rsparser
in case the value field a configuration starts with prefix "~"
otherwise it will return the specified value
This commit is contained in:
gezimbll
2025-01-13 16:23:06 +01:00
committed by Dan Christian Bogos
parent de87ab04ad
commit c602dbc2a5
69 changed files with 3193 additions and 2459 deletions

View File

@@ -29,24 +29,24 @@
{
"Tenant": "*any",
"FilterIDs": [],
"Value": true,
"Value": "true",
},
],
"*routes": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1002"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1003"],
"Value": true,
"Value": "true",
},
],
}

View File

@@ -36,24 +36,24 @@
{
"Tenant": "*any",
"FilterIDs": [],
"Value": true,
"Value": "true",
},
],
"*routes": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1002"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1003"],
"Value": true,
"Value": "true",
},
],
}

View File

@@ -27,24 +27,24 @@
{
"Tenant": "*any",
"FilterIDs": [],
"Value": true,
"Value": "true",
},
],
"*routes": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1002"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1003"],
"Value": true,
"Value": "true",
},
],
}

View File

@@ -31,7 +31,7 @@
"*processRuns": [
{
"Tenant": "*any",
"Value": 2,
"Value": "2",
},
], //
},
@@ -48,32 +48,32 @@
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp"],
"Value": true,
"Value": "true",
},
],
"*rates": [
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
"Value": true,
"Value": "true",
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*opts.*runID:customers"],
"Value": true,
"Value": "true",
},
],
"*accounts": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
"Value": true,
"Value": "true",
},
],
"*ees": [
{
"Tenant": "*any",
"Value": true,
"Value": "true",
},
],
},
@@ -103,7 +103,7 @@
"*profileIgnoreFilters": [
{
"Tenant": "*any",
"Value": true,
"Value": "true",
},
],
},
@@ -141,7 +141,7 @@
"*ignoreErrors": [
{
"Tenant": "*any",
"Value": true,
"Value": "true",
},
],
},

View File

@@ -33,7 +33,7 @@
"*processRuns": [
{
"Tenant": "*any",
"Value": 2
"Value": "2"
}
]
}
@@ -50,32 +50,32 @@
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp"],
"Value": true
"Value": "true"
}
],
"*rates": [
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
"Value": true
"Value": "true"
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*opts.*runID:customers"],
"Value": true
"Value": "true"
}
],
"*accounts": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
"Value": true
"Value": "true"
}
],
"*ees": [
{
"Tenant": "*any",
"Value": true
"Value": "true"
}
]
}
@@ -105,7 +105,7 @@
"*profileIgnoreFilters": [
{
"Tenant": "*any",
"Value": true
"Value": "true"
}
]
}

View File

@@ -30,7 +30,7 @@
"*processRuns": [
{
"Tenant": "*any",
"Value": 2
"Value": "2"
}
]
}
@@ -47,32 +47,32 @@
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp"],
"Value": true
"Value": "true"
}
],
"*rates": [
{
"Tenant": "*any",
"FilterIDs": ["*notstring:~*req.Account:sipp|1001"],
"Value": true
"Value": "true"
},
{
"Tenant": "*any",
"FilterIDs": ["*string:~*opts.*runID:customers"],
"Value": true
"Value": "true"
}
],
"*accounts": [
{
"Tenant": "*any",
"FilterIDs": ["*string:~*req.Account:1001", "*string:~*opts.*runID:suppliers"],
"Value": true
"Value": "true"
}
],
"*ees": [
{
"Tenant": "*any",
"Value": true
"Value": "true"
}
]
}
@@ -102,7 +102,7 @@
"*profileIgnoreFilters": [
{
"Tenant": "*any",
"Value": true
"Value": "true"
}
]
}
@@ -140,7 +140,7 @@
"*ignoreErrors": [
{
"Tenant": "*any",
"Value": true
"Value": "true"
}
]
}