@@ -2790,21 +2790,21 @@ interpolation:
2790
2790
- created_at : " 2020-01-01 00:00:00.000+00:00"
2791
2791
- updated_at : " 2020-01-02 00:00:00.000+00:00"
2792
2792
macros :
2793
- - title : Now (UTC)
2793
+ - title : now_utc
2794
2794
description : Returns the current date and time in the UTC timezone.
2795
2795
arguments : {}
2796
2796
return_type : Datetime
2797
2797
examples :
2798
2798
- " '{{ now_utc() }}' -> '2021-09-01 00:00:00+00:00'"
2799
2799
- " '{{ now_utc().strftime('%Y-%m-%d') }}' -> '2021-09-01'"
2800
- - title : Today (UTC)
2800
+ - title : today_utc
2801
2801
description : Returns the current date in UTC timezone. The output is a date object.
2802
2802
arguments : {}
2803
2803
return_type : Date
2804
2804
examples :
2805
2805
- " '{{ today_utc() }}' -> '2021-09-01'"
2806
2806
- " '{{ today_utc().strftime('%Y/%m/%d')}}' -> '2021/09/01'"
2807
- - title : Timestamp
2807
+ - title : timestamp
2808
2808
description : Converts a number or a string representing a datetime (formatted as ISO8601) to a timestamp. If the input is a number, it is converted to an int. If no timezone is specified, the string is interpreted as UTC.
2809
2809
arguments :
2810
2810
datetime : A string formatted as ISO8601 or an integer representing a unix timestamp
@@ -2815,15 +2815,15 @@ interpolation:
2815
2815
- " '{{ timestamp('2022-02-28T00:00:00Z') }}' -> 1646006400"
2816
2816
- " '{{ timestamp('2022-02-28 00:00:00Z') }}' -> 1646006400"
2817
2817
- " '{{ timestamp('2022-02-28T00:00:00-08:00') }}' -> 1646035200"
2818
- - title : Max
2818
+ - title : max
2819
2819
description : Returns the largest object of a iterable, or or two or more arguments.
2820
2820
arguments :
2821
2821
args : iterable or a sequence of two or more arguments
2822
2822
return_type : Any
2823
2823
examples :
2824
2824
- " '{{ max(2, 3) }}' -> 3"
2825
2825
- " '{{ max([2, 3]) }}' -> 3"
2826
- - title : Day Delta
2826
+ - title : day_delta
2827
2827
description : Returns the datetime of now() + num_days.
2828
2828
arguments :
2829
2829
num_days : The number of days to add to now
@@ -2833,16 +2833,16 @@ interpolation:
2833
2833
- " '{{ day_delta(1) }}' -> '2021-09-02T00:00:00.000000+0000'"
2834
2834
- " '{{ day_delta(-1) }}' -> '2021-08-31:00:00.000000+0000'"
2835
2835
- " '{{ day_delta(25, format='%Y-%m-%d') }}' -> '2021-09-02'"
2836
- - title : Duration
2837
- description : Converts an ISO8601 duratioin to datetime. timedelta.
2836
+ - title : duration
2837
+ description : Converts an ISO8601 duration to datetime timedelta.
2838
2838
arguments :
2839
2839
duration_string : " A string representing an ISO8601 duration. See https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm for more details."
2840
2840
return_type : datetime.timedelta
2841
2841
examples :
2842
2842
- " '{{ duration('P1D') }}' -> '1 day, 0:00:00'"
2843
2843
- " '{{ duration('P6DT23H') }}' -> '6 days, 23:00:00'"
2844
2844
- " '{{ (now_utc() - duration('P1D')).strftime('%Y-%m-%dT%H:%M:%SZ') }}' -> '2021-08-31T00:00:00Z'"
2845
- - title : Format Datetime
2845
+ - title : format_datetime
2846
2846
description : Converts a datetime or a datetime-string to the specified format.
2847
2847
arguments :
2848
2848
datetime : The datetime object or a string to convert. If datetime is a string, it must be formatted as ISO8601.
@@ -2854,7 +2854,7 @@ interpolation:
2854
2854
- " {{ format_datetime(config['start_date'], '%Y-%m-%dT%H:%M:%S.%fZ') }}"
2855
2855
- " {{ format_datetime(config['start_date'], '%Y-%m-%dT%H:%M:%S.%fZ', '%a, %d %b %Y %H:%M:%S %z') }}"
2856
2856
filters :
2857
- - title : Hash
2857
+ - title : hash
2858
2858
description : Convert the specified value to a hashed string.
2859
2859
arguments :
2860
2860
hash_type : Valid hash type for converts ('md5' as default value).
@@ -2864,26 +2864,26 @@ interpolation:
2864
2864
- " {{ 'Test client_secret' | hash() }} -> '3032d57a12f76b61a820e47b9a5a0cbb'"
2865
2865
- " {{ 'Test client_secret' | hash('md5') }} -> '3032d57a12f76b61a820e47b9a5a0cbb'"
2866
2866
- " {{ 'Test client_secret' | hash('md5', salt='salt') }} -> '5011a0168579c2d94cbbe1c6ad14327c'"
2867
- - title : Base64 encoder
2867
+ - title : base64encode
2868
2868
description : Convert the specified value to a string in the base64 format.
2869
2869
arguments : {}
2870
2870
return_type : str
2871
2871
examples :
2872
2872
- " {{ 'Test client_secret' | base64encode }} -> 'VGVzdCBjbGllbnRfc2VjcmV0'"
2873
- - title : Base64 decoder
2873
+ - title : base64decode
2874
2874
description : Decodes the specified base64 format value into a common string.
2875
2875
arguments : {}
2876
2876
return_type : str
2877
2877
examples :
2878
2878
- " {{ 'ZmFrZSByZWZyZXNoX3Rva2VuIHZhbHVl' | base64decode }} -> 'fake refresh_token value'"
2879
- - title : String
2879
+ - title : string
2880
2880
description : Converts the specified value to a string.
2881
2881
arguments : {}
2882
2882
return_type : str
2883
2883
examples :
2884
2884
- ' {{ 1 | string }} -> "1"'
2885
2885
- ' {{ ["hello", "world" | string }} -> "["hello", "world"]"'
2886
- - title : Regex Search
2886
+ - title : regex_search
2887
2887
description : Match the input string against a regular expression and return the first match.
2888
2888
arguments :
2889
2889
regex : The regular expression to search for. It must include a capture group.
0 commit comments