@epilot/sdk 2.20.69 → 2.20.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/identity-runtime.json +1 -1
- package/definitions/identity.json +219 -34
- package/definitions/validation-rules-runtime.json +1 -1
- package/definitions/validation-rules.json +56 -10
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +8 -8
- package/dist/apis/identity.js +2 -2
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +8 -8
- package/dist/apis/validation-rules.d.cts +2 -2
- package/dist/apis/validation-rules.d.ts +2 -2
- package/dist/apis/validation-rules.js +2 -2
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/chunk-7IKQIVUS.js +14 -0
- package/dist/{chunk-3IBAPVLY.js → chunk-DSYS22AC.js} +1 -1
- package/dist/chunk-JIUTCNTB.cjs +14 -0
- package/dist/{chunk-PAMXQWNL.cjs → chunk-M6RNRDA3.cjs} +4 -4
- package/dist/{chunk-BVDXJ4QV.js → chunk-N2IV6QYZ.js} +4 -4
- package/dist/{chunk-RPWTWCDC.cjs → chunk-TKRZK7V2.cjs} +1 -1
- package/dist/identity-F5XHYPXY.js +7 -0
- package/dist/identity-JDTGYAOV.cjs +7 -0
- package/dist/{identity-runtime-PFM5KQWA.js → identity-runtime-A4LSC77N.js} +1 -1
- package/dist/{identity-runtime-57DQPQWX.cjs → identity-runtime-GNE4EC7V.cjs} +2 -2
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/validation-rules-D4OW6VYI.js +7 -0
- package/dist/validation-rules-QYVRILMT.cjs +7 -0
- package/dist/{validation-rules-runtime-VGLVHV36.js → validation-rules-runtime-6MRCS5X2.js} +1 -1
- package/dist/{validation-rules-runtime-DENVKYLF.cjs → validation-rules-runtime-X7M3QE5I.cjs} +2 -2
- package/dist/{validation-rules.d-ChX2VKqg.d.cts → validation-rules.d-C1OtLama.d.cts} +129 -29
- package/dist/{validation-rules.d-ChX2VKqg.d.ts → validation-rules.d-C1OtLama.d.ts} +129 -29
- package/docs/identity.md +58 -64
- package/docs/validation-rules.md +336 -177
- package/package.json +1 -1
- package/dist/chunk-HRSCAD3W.cjs +0 -14
- package/dist/chunk-PPX45U34.js +0 -14
- package/dist/identity-EG35NBZW.js +0 -7
- package/dist/identity-XMX3VFXR.cjs +0 -7
- package/dist/validation-rules-2XSKTPDC.js +0 -7
- package/dist/validation-rules-PHF3RPTN.cjs +0 -7
package/docs/validation-rules.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Validation Rules API
|
|
2
2
|
|
|
3
|
+
- **Base URL:** `https://validation-rules.sls.epilot.io`
|
|
3
4
|
- **Full API Docs:** [https://docs.epilot.io/api/validation-rules](https://docs.epilot.io/api/validation-rules)
|
|
4
5
|
|
|
5
6
|
## Usage
|
|
@@ -59,6 +60,7 @@ const { data } = await validationRulesClient.getValidationRules(...)
|
|
|
59
60
|
- [`ValueReference`](#valuereference)
|
|
60
61
|
- [`EnvironmentValue`](#environmentvalue)
|
|
61
62
|
- [`ExternalValue`](#externalvalue)
|
|
63
|
+
- [`ParameterValue`](#parametervalue)
|
|
62
64
|
- [`StaticValue`](#staticvalue)
|
|
63
65
|
- [`ContextValue`](#contextvalue)
|
|
64
66
|
- [`ValueAdjustment`](#valueadjustment)
|
|
@@ -1735,6 +1737,10 @@ type ComparisonRuleType = {
|
|
|
1735
1737
|
hook_id: { ... }
|
|
1736
1738
|
result_id: { ... }
|
|
1737
1739
|
adjust?: { ... }
|
|
1740
|
+
} | {
|
|
1741
|
+
source: { ... }
|
|
1742
|
+
name: { ... }
|
|
1743
|
+
adjust?: { ... }
|
|
1738
1744
|
} | {
|
|
1739
1745
|
source: { ... }
|
|
1740
1746
|
min: { ... }
|
|
@@ -1789,9 +1795,31 @@ type Condition = {
|
|
|
1789
1795
|
hook_id: { ... }
|
|
1790
1796
|
result_id: { ... }
|
|
1791
1797
|
adjust?: { ... }
|
|
1798
|
+
} | {
|
|
1799
|
+
source: { ... }
|
|
1800
|
+
name: { ... }
|
|
1801
|
+
adjust?: { ... }
|
|
1792
1802
|
}
|
|
1793
1803
|
unit: "days" | "months" | "years"
|
|
1794
|
-
anchor?: "today"
|
|
1804
|
+
anchor?: "today" | {
|
|
1805
|
+
source: { ... }
|
|
1806
|
+
path: { ... }
|
|
1807
|
+
adjust?: { ... }
|
|
1808
|
+
} | {
|
|
1809
|
+
source: { ... }
|
|
1810
|
+
key: { ... }
|
|
1811
|
+
adjust?: { ... }
|
|
1812
|
+
} | {
|
|
1813
|
+
source: { ... }
|
|
1814
|
+
app_id: { ... }
|
|
1815
|
+
hook_id: { ... }
|
|
1816
|
+
result_id: { ... }
|
|
1817
|
+
adjust?: { ... }
|
|
1818
|
+
} | {
|
|
1819
|
+
source: { ... }
|
|
1820
|
+
name: { ... }
|
|
1821
|
+
adjust?: { ... }
|
|
1822
|
+
}
|
|
1795
1823
|
} | {
|
|
1796
1824
|
source: "environment"
|
|
1797
1825
|
key: string
|
|
@@ -1812,6 +1840,15 @@ type Condition = {
|
|
|
1812
1840
|
direction: { ... }
|
|
1813
1841
|
rounding?: { ... }
|
|
1814
1842
|
}
|
|
1843
|
+
} | {
|
|
1844
|
+
source: "parameter"
|
|
1845
|
+
name: string
|
|
1846
|
+
adjust?: {
|
|
1847
|
+
type: { ... }
|
|
1848
|
+
value: { ... }
|
|
1849
|
+
direction: { ... }
|
|
1850
|
+
rounding?: { ... }
|
|
1851
|
+
}
|
|
1815
1852
|
} | {
|
|
1816
1853
|
source: "range"
|
|
1817
1854
|
min: {
|
|
@@ -1827,37 +1864,6 @@ type Condition = {
|
|
|
1827
1864
|
unit: { ... }
|
|
1828
1865
|
anchor?: { ... }
|
|
1829
1866
|
} | {
|
|
1830
|
-
source: { ... }
|
|
1831
|
-
key: { ... }
|
|
1832
|
-
adjust?: { ... }
|
|
1833
|
-
} | {
|
|
1834
|
-
source: { ... }
|
|
1835
|
-
app_id: { ... }
|
|
1836
|
-
hook_id: { ... }
|
|
1837
|
-
result_id: { ... }
|
|
1838
|
-
adjust?: { ... }
|
|
1839
|
-
}
|
|
1840
|
-
max: {
|
|
1841
|
-
source: { ... }
|
|
1842
|
-
data: { ... }
|
|
1843
|
-
} | {
|
|
1844
|
-
source: { ... }
|
|
1845
|
-
path: { ... }
|
|
1846
|
-
adjust?: { ... }
|
|
1847
|
-
} | {
|
|
1848
|
-
source: { ... }
|
|
1849
|
-
offset: { ... }
|
|
1850
|
-
unit: { ... }
|
|
1851
|
-
anchor?: { ... }
|
|
1852
|
-
} | {
|
|
1853
|
-
source: { ... }
|
|
1854
|
-
key: { ... }
|
|
1855
|
-
adjust?: { ... }
|
|
1856
|
-
} | {
|
|
1857
|
-
source: { ... }
|
|
1858
|
-
app_id: { ... }
|
|
1859
|
-
hook_id: { ... }
|
|
1860
|
-
result_id: { ... }
|
|
1861
1867
|
// ...
|
|
1862
1868
|
}
|
|
1863
1869
|
```
|
|
@@ -1900,6 +1906,10 @@ type ConditionValue = {
|
|
|
1900
1906
|
hook_id: { ... }
|
|
1901
1907
|
result_id: { ... }
|
|
1902
1908
|
adjust?: { ... }
|
|
1909
|
+
} | {
|
|
1910
|
+
source: { ... }
|
|
1911
|
+
name: { ... }
|
|
1912
|
+
adjust?: { ... }
|
|
1903
1913
|
}
|
|
1904
1914
|
direction: "increase" | "decrease"
|
|
1905
1915
|
rounding?: "up" | "down"
|
|
@@ -1935,56 +1945,52 @@ type ConditionValue = {
|
|
|
1935
1945
|
direction: { ... }
|
|
1936
1946
|
rounding?: { ... }
|
|
1937
1947
|
}
|
|
1948
|
+
} | {
|
|
1949
|
+
source: "parameter"
|
|
1950
|
+
name: string
|
|
1951
|
+
adjust?: {
|
|
1952
|
+
type: { ... }
|
|
1953
|
+
value: { ... }
|
|
1954
|
+
direction: { ... }
|
|
1955
|
+
rounding?: { ... }
|
|
1956
|
+
}
|
|
1938
1957
|
}
|
|
1939
1958
|
unit: "days" | "months" | "years"
|
|
1940
|
-
anchor?: "today"
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
path: { ... }
|
|
1949
|
-
adjust?: { ... }
|
|
1950
|
-
} | {
|
|
1951
|
-
source: { ... }
|
|
1952
|
-
key: { ... }
|
|
1953
|
-
adjust?: { ... }
|
|
1954
|
-
} | {
|
|
1955
|
-
source: { ... }
|
|
1956
|
-
app_id: { ... }
|
|
1957
|
-
hook_id: { ... }
|
|
1958
|
-
result_id: { ... }
|
|
1959
|
-
adjust?: { ... }
|
|
1959
|
+
anchor?: "today" | {
|
|
1960
|
+
source: "context"
|
|
1961
|
+
path: string
|
|
1962
|
+
adjust?: {
|
|
1963
|
+
type: { ... }
|
|
1964
|
+
value: { ... }
|
|
1965
|
+
direction: { ... }
|
|
1966
|
+
rounding?: { ... }
|
|
1960
1967
|
}
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
source: { ... }
|
|
1968
|
+
} | {
|
|
1969
|
+
source: "environment"
|
|
1970
|
+
key: string
|
|
1971
|
+
adjust?: {
|
|
1972
|
+
type: { ... }
|
|
1973
|
+
value: { ... }
|
|
1974
|
+
direction: { ... }
|
|
1975
|
+
rounding?: { ... }
|
|
1976
|
+
}
|
|
1977
|
+
} | {
|
|
1978
|
+
source: "external"
|
|
1979
|
+
app_id: string
|
|
1980
|
+
hook_id: string
|
|
1981
|
+
result_id: string
|
|
1982
|
+
adjust?: {
|
|
1983
|
+
type: { ... }
|
|
1984
|
+
value: { ... }
|
|
1985
|
+
direction: { ... }
|
|
1986
|
+
rounding?: { ... }
|
|
1981
1987
|
// ...
|
|
1982
1988
|
}
|
|
1983
1989
|
```
|
|
1984
1990
|
|
|
1985
1991
|
### `ScalarValue`
|
|
1986
1992
|
|
|
1987
|
-
A single comparison value - static, resolved from context, a relative date, an organisation environment variable,
|
|
1993
|
+
A single comparison value - static, resolved from context, a relative date, an organisation environment variable, an external value, or a parameter the consuming surface supplies.
|
|
1988
1994
|
|
|
1989
1995
|
```ts
|
|
1990
1996
|
type ScalarValue = {
|
|
@@ -2009,6 +2015,10 @@ type ScalarValue = {
|
|
|
2009
2015
|
hook_id: { ... }
|
|
2010
2016
|
result_id: { ... }
|
|
2011
2017
|
adjust?: { ... }
|
|
2018
|
+
} | {
|
|
2019
|
+
source: { ... }
|
|
2020
|
+
name: { ... }
|
|
2021
|
+
adjust?: { ... }
|
|
2012
2022
|
}
|
|
2013
2023
|
direction: "increase" | "decrease"
|
|
2014
2024
|
rounding?: "up" | "down"
|
|
@@ -2044,49 +2054,45 @@ type ScalarValue = {
|
|
|
2044
2054
|
direction: { ... }
|
|
2045
2055
|
rounding?: { ... }
|
|
2046
2056
|
}
|
|
2057
|
+
} | {
|
|
2058
|
+
source: "parameter"
|
|
2059
|
+
name: string
|
|
2060
|
+
adjust?: {
|
|
2061
|
+
type: { ... }
|
|
2062
|
+
value: { ... }
|
|
2063
|
+
direction: { ... }
|
|
2064
|
+
rounding?: { ... }
|
|
2065
|
+
}
|
|
2047
2066
|
}
|
|
2048
2067
|
unit: "days" | "months" | "years"
|
|
2049
|
-
anchor?: "today"
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
path: { ... }
|
|
2058
|
-
adjust?: { ... }
|
|
2059
|
-
} | {
|
|
2060
|
-
source: { ... }
|
|
2061
|
-
key: { ... }
|
|
2062
|
-
adjust?: { ... }
|
|
2063
|
-
} | {
|
|
2064
|
-
source: { ... }
|
|
2065
|
-
app_id: { ... }
|
|
2066
|
-
hook_id: { ... }
|
|
2067
|
-
result_id: { ... }
|
|
2068
|
-
adjust?: { ... }
|
|
2068
|
+
anchor?: "today" | {
|
|
2069
|
+
source: "context"
|
|
2070
|
+
path: string
|
|
2071
|
+
adjust?: {
|
|
2072
|
+
type: { ... }
|
|
2073
|
+
value: { ... }
|
|
2074
|
+
direction: { ... }
|
|
2075
|
+
rounding?: { ... }
|
|
2069
2076
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
source: { ... }
|
|
2077
|
+
} | {
|
|
2078
|
+
source: "environment"
|
|
2079
|
+
key: string
|
|
2080
|
+
adjust?: {
|
|
2081
|
+
type: { ... }
|
|
2082
|
+
value: { ... }
|
|
2083
|
+
direction: { ... }
|
|
2084
|
+
rounding?: { ... }
|
|
2085
|
+
}
|
|
2086
|
+
} | {
|
|
2087
|
+
source: "external"
|
|
2088
|
+
app_id: string
|
|
2089
|
+
hook_id: string
|
|
2090
|
+
result_id: string
|
|
2091
|
+
adjust?: {
|
|
2092
|
+
type: { ... }
|
|
2093
|
+
value: { ... }
|
|
2094
|
+
direction: { ... }
|
|
2095
|
+
rounding?: { ... }
|
|
2090
2096
|
// ...
|
|
2091
2097
|
}
|
|
2092
2098
|
```
|
|
@@ -2118,6 +2124,10 @@ type ValueReference = {
|
|
|
2118
2124
|
hook_id: { ... }
|
|
2119
2125
|
result_id: { ... }
|
|
2120
2126
|
adjust?: { ... }
|
|
2127
|
+
} | {
|
|
2128
|
+
source: { ... }
|
|
2129
|
+
name: { ... }
|
|
2130
|
+
adjust?: { ... }
|
|
2121
2131
|
}
|
|
2122
2132
|
direction: "increase" | "decrease"
|
|
2123
2133
|
rounding?: "up" | "down"
|
|
@@ -2141,6 +2151,10 @@ type ValueReference = {
|
|
|
2141
2151
|
hook_id: { ... }
|
|
2142
2152
|
result_id: { ... }
|
|
2143
2153
|
adjust?: { ... }
|
|
2154
|
+
} | {
|
|
2155
|
+
source: { ... }
|
|
2156
|
+
name: { ... }
|
|
2157
|
+
adjust?: { ... }
|
|
2144
2158
|
}
|
|
2145
2159
|
direction: "increase" | "decrease"
|
|
2146
2160
|
rounding?: "up" | "down"
|
|
@@ -2166,10 +2180,32 @@ type ValueReference = {
|
|
|
2166
2180
|
hook_id: { ... }
|
|
2167
2181
|
result_id: { ... }
|
|
2168
2182
|
adjust?: { ... }
|
|
2183
|
+
} | {
|
|
2184
|
+
source: { ... }
|
|
2185
|
+
name: { ... }
|
|
2186
|
+
adjust?: { ... }
|
|
2169
2187
|
}
|
|
2170
2188
|
direction: "increase" | "decrease"
|
|
2171
2189
|
rounding?: "up" | "down"
|
|
2172
2190
|
}
|
|
2191
|
+
} | {
|
|
2192
|
+
source: "parameter"
|
|
2193
|
+
name: string
|
|
2194
|
+
adjust?: {
|
|
2195
|
+
type: "percent" | "absolute"
|
|
2196
|
+
value: number | {
|
|
2197
|
+
source: { ... }
|
|
2198
|
+
path: { ... }
|
|
2199
|
+
adjust?: { ... }
|
|
2200
|
+
} | {
|
|
2201
|
+
source: { ... }
|
|
2202
|
+
key: { ... }
|
|
2203
|
+
adjust?: { ... }
|
|
2204
|
+
} | {
|
|
2205
|
+
source: { ... }
|
|
2206
|
+
app_id: { ... }
|
|
2207
|
+
hook_id: { ... }
|
|
2208
|
+
// ...
|
|
2173
2209
|
}
|
|
2174
2210
|
```
|
|
2175
2211
|
|
|
@@ -2202,6 +2238,10 @@ type EnvironmentValue = {
|
|
|
2202
2238
|
hook_id: { ... }
|
|
2203
2239
|
result_id: { ... }
|
|
2204
2240
|
adjust?: { ... }
|
|
2241
|
+
} | {
|
|
2242
|
+
source: { ... }
|
|
2243
|
+
name: { ... }
|
|
2244
|
+
adjust?: { ... }
|
|
2205
2245
|
}
|
|
2206
2246
|
direction: "increase" | "decrease"
|
|
2207
2247
|
rounding?: "up" | "down"
|
|
@@ -2238,6 +2278,48 @@ type ExternalValue = {
|
|
|
2238
2278
|
hook_id: { ... }
|
|
2239
2279
|
result_id: { ... }
|
|
2240
2280
|
adjust?: { ... }
|
|
2281
|
+
} | {
|
|
2282
|
+
source: { ... }
|
|
2283
|
+
name: { ... }
|
|
2284
|
+
adjust?: { ... }
|
|
2285
|
+
}
|
|
2286
|
+
direction: "increase" | "decrease"
|
|
2287
|
+
rounding?: "up" | "down"
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
```
|
|
2291
|
+
|
|
2292
|
+
### `ParameterValue`
|
|
2293
|
+
|
|
2294
|
+
A comparison value supplied by the surface that evaluates the rule, identified by a name
|
|
2295
|
+
the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
|
|
2296
|
+
binds the name to a source of its own - a journey binds it to the value of another block -
|
|
2297
|
+
and resolves it at evaluation
|
|
2298
|
+
|
|
2299
|
+
```ts
|
|
2300
|
+
type ParameterValue = {
|
|
2301
|
+
source: "parameter"
|
|
2302
|
+
name: string
|
|
2303
|
+
adjust?: {
|
|
2304
|
+
type: "percent" | "absolute"
|
|
2305
|
+
value: number | {
|
|
2306
|
+
source: { ... }
|
|
2307
|
+
path: { ... }
|
|
2308
|
+
adjust?: { ... }
|
|
2309
|
+
} | {
|
|
2310
|
+
source: { ... }
|
|
2311
|
+
key: { ... }
|
|
2312
|
+
adjust?: { ... }
|
|
2313
|
+
} | {
|
|
2314
|
+
source: { ... }
|
|
2315
|
+
app_id: { ... }
|
|
2316
|
+
hook_id: { ... }
|
|
2317
|
+
result_id: { ... }
|
|
2318
|
+
adjust?: { ... }
|
|
2319
|
+
} | {
|
|
2320
|
+
source: { ... }
|
|
2321
|
+
name: { ... }
|
|
2322
|
+
adjust?: { ... }
|
|
2241
2323
|
}
|
|
2242
2324
|
direction: "increase" | "decrease"
|
|
2243
2325
|
rounding?: "up" | "down"
|
|
@@ -2283,6 +2365,10 @@ type ContextValue = {
|
|
|
2283
2365
|
hook_id: { ... }
|
|
2284
2366
|
result_id: { ... }
|
|
2285
2367
|
adjust?: { ... }
|
|
2368
|
+
} | {
|
|
2369
|
+
source: { ... }
|
|
2370
|
+
name: { ... }
|
|
2371
|
+
adjust?: { ... }
|
|
2286
2372
|
}
|
|
2287
2373
|
direction: "increase" | "decrease"
|
|
2288
2374
|
rounding?: "up" | "down"
|
|
@@ -2328,6 +2414,15 @@ type ValueAdjustment = {
|
|
|
2328
2414
|
direction: { ... }
|
|
2329
2415
|
rounding?: { ... }
|
|
2330
2416
|
}
|
|
2417
|
+
} | {
|
|
2418
|
+
source: "parameter"
|
|
2419
|
+
name: string
|
|
2420
|
+
adjust?: {
|
|
2421
|
+
type: { ... }
|
|
2422
|
+
value: { ... }
|
|
2423
|
+
direction: { ... }
|
|
2424
|
+
rounding?: { ... }
|
|
2425
|
+
}
|
|
2331
2426
|
}
|
|
2332
2427
|
direction: "increase" | "decrease"
|
|
2333
2428
|
rounding?: "up" | "down"
|
|
@@ -2370,9 +2465,56 @@ type RelativeDateValue = {
|
|
|
2370
2465
|
direction: { ... }
|
|
2371
2466
|
rounding?: { ... }
|
|
2372
2467
|
}
|
|
2468
|
+
} | {
|
|
2469
|
+
source: "parameter"
|
|
2470
|
+
name: string
|
|
2471
|
+
adjust?: {
|
|
2472
|
+
type: { ... }
|
|
2473
|
+
value: { ... }
|
|
2474
|
+
direction: { ... }
|
|
2475
|
+
rounding?: { ... }
|
|
2476
|
+
}
|
|
2373
2477
|
}
|
|
2374
2478
|
unit: "days" | "months" | "years"
|
|
2375
|
-
anchor?: "today"
|
|
2479
|
+
anchor?: "today" | {
|
|
2480
|
+
source: "context"
|
|
2481
|
+
path: string
|
|
2482
|
+
adjust?: {
|
|
2483
|
+
type: { ... }
|
|
2484
|
+
value: { ... }
|
|
2485
|
+
direction: { ... }
|
|
2486
|
+
rounding?: { ... }
|
|
2487
|
+
}
|
|
2488
|
+
} | {
|
|
2489
|
+
source: "environment"
|
|
2490
|
+
key: string
|
|
2491
|
+
adjust?: {
|
|
2492
|
+
type: { ... }
|
|
2493
|
+
value: { ... }
|
|
2494
|
+
direction: { ... }
|
|
2495
|
+
rounding?: { ... }
|
|
2496
|
+
}
|
|
2497
|
+
} | {
|
|
2498
|
+
source: "external"
|
|
2499
|
+
app_id: string
|
|
2500
|
+
hook_id: string
|
|
2501
|
+
result_id: string
|
|
2502
|
+
adjust?: {
|
|
2503
|
+
type: { ... }
|
|
2504
|
+
value: { ... }
|
|
2505
|
+
direction: { ... }
|
|
2506
|
+
rounding?: { ... }
|
|
2507
|
+
}
|
|
2508
|
+
} | {
|
|
2509
|
+
source: "parameter"
|
|
2510
|
+
name: string
|
|
2511
|
+
adjust?: {
|
|
2512
|
+
type: { ... }
|
|
2513
|
+
value: { ... }
|
|
2514
|
+
direction: { ... }
|
|
2515
|
+
rounding?: { ... }
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2376
2518
|
}
|
|
2377
2519
|
```
|
|
2378
2520
|
|
|
@@ -2411,9 +2553,31 @@ type RangeValue = {
|
|
|
2411
2553
|
hook_id: { ... }
|
|
2412
2554
|
result_id: { ... }
|
|
2413
2555
|
adjust?: { ... }
|
|
2556
|
+
} | {
|
|
2557
|
+
source: { ... }
|
|
2558
|
+
name: { ... }
|
|
2559
|
+
adjust?: { ... }
|
|
2414
2560
|
}
|
|
2415
2561
|
unit: "days" | "months" | "years"
|
|
2416
|
-
anchor?: "today"
|
|
2562
|
+
anchor?: "today" | {
|
|
2563
|
+
source: { ... }
|
|
2564
|
+
path: { ... }
|
|
2565
|
+
adjust?: { ... }
|
|
2566
|
+
} | {
|
|
2567
|
+
source: { ... }
|
|
2568
|
+
key: { ... }
|
|
2569
|
+
adjust?: { ... }
|
|
2570
|
+
} | {
|
|
2571
|
+
source: { ... }
|
|
2572
|
+
app_id: { ... }
|
|
2573
|
+
hook_id: { ... }
|
|
2574
|
+
result_id: { ... }
|
|
2575
|
+
adjust?: { ... }
|
|
2576
|
+
} | {
|
|
2577
|
+
source: { ... }
|
|
2578
|
+
name: { ... }
|
|
2579
|
+
adjust?: { ... }
|
|
2580
|
+
}
|
|
2417
2581
|
} | {
|
|
2418
2582
|
source: "environment"
|
|
2419
2583
|
key: string
|
|
@@ -2434,6 +2598,15 @@ type RangeValue = {
|
|
|
2434
2598
|
direction: { ... }
|
|
2435
2599
|
rounding?: { ... }
|
|
2436
2600
|
}
|
|
2601
|
+
} | {
|
|
2602
|
+
source: "parameter"
|
|
2603
|
+
name: string
|
|
2604
|
+
adjust?: {
|
|
2605
|
+
type: { ... }
|
|
2606
|
+
value: { ... }
|
|
2607
|
+
direction: { ... }
|
|
2608
|
+
rounding?: { ... }
|
|
2609
|
+
}
|
|
2437
2610
|
}
|
|
2438
2611
|
max: {
|
|
2439
2612
|
source: "static"
|
|
@@ -2450,37 +2623,6 @@ type RangeValue = {
|
|
|
2450
2623
|
} | {
|
|
2451
2624
|
source: "relative_date"
|
|
2452
2625
|
offset: number | {
|
|
2453
|
-
source: { ... }
|
|
2454
|
-
path: { ... }
|
|
2455
|
-
adjust?: { ... }
|
|
2456
|
-
} | {
|
|
2457
|
-
source: { ... }
|
|
2458
|
-
key: { ... }
|
|
2459
|
-
adjust?: { ... }
|
|
2460
|
-
} | {
|
|
2461
|
-
source: { ... }
|
|
2462
|
-
app_id: { ... }
|
|
2463
|
-
hook_id: { ... }
|
|
2464
|
-
result_id: { ... }
|
|
2465
|
-
adjust?: { ... }
|
|
2466
|
-
}
|
|
2467
|
-
unit: "days" | "months" | "years"
|
|
2468
|
-
anchor?: "today"
|
|
2469
|
-
} | {
|
|
2470
|
-
source: "environment"
|
|
2471
|
-
key: string
|
|
2472
|
-
adjust?: {
|
|
2473
|
-
type: { ... }
|
|
2474
|
-
value: { ... }
|
|
2475
|
-
direction: { ... }
|
|
2476
|
-
rounding?: { ... }
|
|
2477
|
-
}
|
|
2478
|
-
} | {
|
|
2479
|
-
source: "external"
|
|
2480
|
-
app_id: string
|
|
2481
|
-
hook_id: string
|
|
2482
|
-
result_id: string
|
|
2483
|
-
adjust?: {
|
|
2484
2626
|
// ...
|
|
2485
2627
|
}
|
|
2486
2628
|
```
|
|
@@ -2578,6 +2720,10 @@ type DocumentCondition = {
|
|
|
2578
2720
|
hook_id: { ... }
|
|
2579
2721
|
result_id: { ... }
|
|
2580
2722
|
adjust?: { ... }
|
|
2723
|
+
} | {
|
|
2724
|
+
source: { ... }
|
|
2725
|
+
name: { ... }
|
|
2726
|
+
adjust?: { ... }
|
|
2581
2727
|
}
|
|
2582
2728
|
max: {
|
|
2583
2729
|
source: { ... }
|
|
@@ -2601,6 +2747,10 @@ type DocumentCondition = {
|
|
|
2601
2747
|
hook_id: { ... }
|
|
2602
2748
|
result_id: { ... }
|
|
2603
2749
|
adjust?: { ... }
|
|
2750
|
+
} | {
|
|
2751
|
+
source: { ... }
|
|
2752
|
+
name: { ... }
|
|
2753
|
+
adjust?: { ... }
|
|
2604
2754
|
}
|
|
2605
2755
|
} | {
|
|
2606
2756
|
source: "none"
|
|
@@ -2666,9 +2816,31 @@ type DocumentConditionValue = {
|
|
|
2666
2816
|
hook_id: { ... }
|
|
2667
2817
|
result_id: { ... }
|
|
2668
2818
|
adjust?: { ... }
|
|
2819
|
+
} | {
|
|
2820
|
+
source: { ... }
|
|
2821
|
+
name: { ... }
|
|
2822
|
+
adjust?: { ... }
|
|
2669
2823
|
}
|
|
2670
2824
|
unit: "days" | "months" | "years"
|
|
2671
|
-
anchor?: "today"
|
|
2825
|
+
anchor?: "today" | {
|
|
2826
|
+
source: { ... }
|
|
2827
|
+
path: { ... }
|
|
2828
|
+
adjust?: { ... }
|
|
2829
|
+
} | {
|
|
2830
|
+
source: { ... }
|
|
2831
|
+
key: { ... }
|
|
2832
|
+
adjust?: { ... }
|
|
2833
|
+
} | {
|
|
2834
|
+
source: { ... }
|
|
2835
|
+
app_id: { ... }
|
|
2836
|
+
hook_id: { ... }
|
|
2837
|
+
result_id: { ... }
|
|
2838
|
+
adjust?: { ... }
|
|
2839
|
+
} | {
|
|
2840
|
+
source: { ... }
|
|
2841
|
+
name: { ... }
|
|
2842
|
+
adjust?: { ... }
|
|
2843
|
+
}
|
|
2672
2844
|
} | {
|
|
2673
2845
|
source: "environment"
|
|
2674
2846
|
key: string
|
|
@@ -2689,50 +2861,28 @@ type DocumentConditionValue = {
|
|
|
2689
2861
|
direction: { ... }
|
|
2690
2862
|
rounding?: { ... }
|
|
2691
2863
|
}
|
|
2692
|
-
}
|
|
2693
|
-
max: {
|
|
2694
|
-
source: "static"
|
|
2695
|
-
data: number | string | boolean
|
|
2696
2864
|
} | {
|
|
2697
|
-
source: "
|
|
2698
|
-
|
|
2865
|
+
source: "parameter"
|
|
2866
|
+
name: string
|
|
2699
2867
|
adjust?: {
|
|
2700
2868
|
type: { ... }
|
|
2701
2869
|
value: { ... }
|
|
2702
2870
|
direction: { ... }
|
|
2703
2871
|
rounding?: { ... }
|
|
2704
2872
|
}
|
|
2873
|
+
}
|
|
2874
|
+
max: {
|
|
2875
|
+
source: "static"
|
|
2876
|
+
data: number | string | boolean
|
|
2705
2877
|
} | {
|
|
2706
|
-
source: "
|
|
2707
|
-
|
|
2708
|
-
source: { ... }
|
|
2709
|
-
path: { ... }
|
|
2710
|
-
adjust?: { ... }
|
|
2711
|
-
} | {
|
|
2712
|
-
source: { ... }
|
|
2713
|
-
key: { ... }
|
|
2714
|
-
adjust?: { ... }
|
|
2715
|
-
} | {
|
|
2716
|
-
source: { ... }
|
|
2717
|
-
app_id: { ... }
|
|
2718
|
-
hook_id: { ... }
|
|
2719
|
-
result_id: { ... }
|
|
2720
|
-
adjust?: { ... }
|
|
2721
|
-
}
|
|
2722
|
-
unit: "days" | "months" | "years"
|
|
2723
|
-
anchor?: "today"
|
|
2724
|
-
} | {
|
|
2725
|
-
source: "environment"
|
|
2726
|
-
key: string
|
|
2878
|
+
source: "context"
|
|
2879
|
+
path: string
|
|
2727
2880
|
adjust?: {
|
|
2728
2881
|
type: { ... }
|
|
2729
2882
|
value: { ... }
|
|
2730
2883
|
direction: { ... }
|
|
2731
2884
|
rounding?: { ... }
|
|
2732
2885
|
}
|
|
2733
|
-
} | {
|
|
2734
|
-
source: "external"
|
|
2735
|
-
app_id: string
|
|
2736
2886
|
// ...
|
|
2737
2887
|
}
|
|
2738
2888
|
```
|
|
@@ -2803,6 +2953,15 @@ type AppliesWhen = {
|
|
|
2803
2953
|
direction: { ... }
|
|
2804
2954
|
rounding?: { ... }
|
|
2805
2955
|
}
|
|
2956
|
+
} | {
|
|
2957
|
+
source: "parameter"
|
|
2958
|
+
name: string
|
|
2959
|
+
adjust?: {
|
|
2960
|
+
type: { ... }
|
|
2961
|
+
value: { ... }
|
|
2962
|
+
direction: { ... }
|
|
2963
|
+
rounding?: { ... }
|
|
2964
|
+
}
|
|
2806
2965
|
}
|
|
2807
2966
|
}
|
|
2808
2967
|
```
|