@epilot/sdk 2.20.68 → 2.20.70

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.
Files changed (146) hide show
  1. package/definitions/pricing.json +26 -5
  2. package/definitions/validation-rules-runtime.json +1 -1
  3. package/definitions/validation-rules.json +56 -10
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/chat.cjs +6 -6
  25. package/dist/apis/chat.js +1 -1
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/external-values.cjs +6 -6
  55. package/dist/apis/external-values.js +1 -1
  56. package/dist/apis/file.cjs +6 -6
  57. package/dist/apis/file.js +1 -1
  58. package/dist/apis/iban.cjs +6 -6
  59. package/dist/apis/iban.js +1 -1
  60. package/dist/apis/identity.cjs +6 -6
  61. package/dist/apis/identity.js +1 -1
  62. package/dist/apis/integration-toolkit.cjs +6 -6
  63. package/dist/apis/integration-toolkit.js +1 -1
  64. package/dist/apis/journey.cjs +6 -6
  65. package/dist/apis/journey.js +1 -1
  66. package/dist/apis/kanban.cjs +6 -6
  67. package/dist/apis/kanban.js +1 -1
  68. package/dist/apis/message.cjs +6 -6
  69. package/dist/apis/message.js +1 -1
  70. package/dist/apis/metering.cjs +6 -6
  71. package/dist/apis/metering.js +1 -1
  72. package/dist/apis/notes.cjs +6 -6
  73. package/dist/apis/notes.js +1 -1
  74. package/dist/apis/notification.cjs +6 -6
  75. package/dist/apis/notification.js +1 -1
  76. package/dist/apis/organization.cjs +6 -6
  77. package/dist/apis/organization.js +1 -1
  78. package/dist/apis/partner-directory.cjs +6 -6
  79. package/dist/apis/partner-directory.js +1 -1
  80. package/dist/apis/permissions.cjs +6 -6
  81. package/dist/apis/permissions.js +1 -1
  82. package/dist/apis/phone-integration.cjs +6 -6
  83. package/dist/apis/phone-integration.js +1 -1
  84. package/dist/apis/pricing-tier.cjs +6 -6
  85. package/dist/apis/pricing-tier.js +1 -1
  86. package/dist/apis/pricing.cjs +6 -6
  87. package/dist/apis/pricing.d.cts +2 -2
  88. package/dist/apis/pricing.d.ts +2 -2
  89. package/dist/apis/pricing.js +1 -1
  90. package/dist/apis/purpose.cjs +6 -6
  91. package/dist/apis/purpose.js +1 -1
  92. package/dist/apis/query.cjs +6 -6
  93. package/dist/apis/query.js +1 -1
  94. package/dist/apis/sandbox.cjs +6 -6
  95. package/dist/apis/sandbox.js +1 -1
  96. package/dist/apis/sharing.cjs +6 -6
  97. package/dist/apis/sharing.js +1 -1
  98. package/dist/apis/snapshot.cjs +6 -6
  99. package/dist/apis/snapshot.js +1 -1
  100. package/dist/apis/submission.cjs +6 -6
  101. package/dist/apis/submission.js +1 -1
  102. package/dist/apis/target.cjs +6 -6
  103. package/dist/apis/target.js +1 -1
  104. package/dist/apis/targeting.cjs +6 -6
  105. package/dist/apis/targeting.js +1 -1
  106. package/dist/apis/template-variables.cjs +6 -6
  107. package/dist/apis/template-variables.js +1 -1
  108. package/dist/apis/user.cjs +6 -6
  109. package/dist/apis/user.js +1 -1
  110. package/dist/apis/validation-rules.cjs +8 -8
  111. package/dist/apis/validation-rules.d.cts +2 -2
  112. package/dist/apis/validation-rules.d.ts +2 -2
  113. package/dist/apis/validation-rules.js +2 -2
  114. package/dist/apis/webhooks.cjs +6 -6
  115. package/dist/apis/webhooks.js +1 -1
  116. package/dist/apis/workflow-definition.cjs +6 -6
  117. package/dist/apis/workflow-definition.js +1 -1
  118. package/dist/apis/workflow.cjs +6 -6
  119. package/dist/apis/workflow.js +1 -1
  120. package/dist/{chunk-LGNMQHO5.cjs → chunk-4PXSWMYJ.cjs} +3 -3
  121. package/dist/chunk-7IKQIVUS.js +14 -0
  122. package/dist/chunk-JIUTCNTB.cjs +14 -0
  123. package/dist/{chunk-6WXFXQKB.js → chunk-YIK62G53.js} +3 -3
  124. package/dist/index.cjs +10 -10
  125. package/dist/index.d.cts +2 -2
  126. package/dist/index.d.ts +2 -2
  127. package/dist/index.js +2 -2
  128. package/dist/pricing-5NJ44WPL.js +7 -0
  129. package/dist/pricing-CHSUNMN6.cjs +7 -0
  130. package/dist/{pricing.d-COKyUDXt.d.cts → pricing.d-B08Lrn3i.d.cts} +41 -2
  131. package/dist/{pricing.d-COKyUDXt.d.ts → pricing.d-B08Lrn3i.d.ts} +41 -2
  132. package/dist/validation-rules-D4OW6VYI.js +7 -0
  133. package/dist/validation-rules-QYVRILMT.cjs +7 -0
  134. package/dist/{validation-rules-runtime-VGLVHV36.js → validation-rules-runtime-6MRCS5X2.js} +1 -1
  135. package/dist/{validation-rules-runtime-DENVKYLF.cjs → validation-rules-runtime-X7M3QE5I.cjs} +2 -2
  136. package/dist/{validation-rules.d-ChX2VKqg.d.cts → validation-rules.d-C1OtLama.d.cts} +129 -29
  137. package/dist/{validation-rules.d-ChX2VKqg.d.ts → validation-rules.d-C1OtLama.d.ts} +129 -29
  138. package/docs/pricing.md +20 -0
  139. package/docs/validation-rules.md +336 -177
  140. package/package.json +1 -1
  141. package/dist/chunk-HRSCAD3W.cjs +0 -14
  142. package/dist/chunk-PPX45U34.js +0 -14
  143. package/dist/pricing-HPUYS6FZ.cjs +0 -7
  144. package/dist/pricing-V6W36DFA.js +0 -7
  145. package/dist/validation-rules-2XSKTPDC.js +0 -7
  146. package/dist/validation-rules-PHF3RPTN.cjs +0 -7
@@ -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
- source: "environment"
1943
- key: string
1944
- adjust?: {
1945
- type: "percent" | "absolute"
1946
- value: number | {
1947
- source: { ... }
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
- direction: "increase" | "decrease"
1962
- rounding?: "up" | "down"
1963
- }
1964
- } | {
1965
- source: "external"
1966
- app_id: string
1967
- hook_id: string
1968
- result_id: string
1969
- adjust?: {
1970
- type: "percent" | "absolute"
1971
- value: number | {
1972
- source: { ... }
1973
- path: { ... }
1974
- adjust?: { ... }
1975
- } | {
1976
- source: { ... }
1977
- key: { ... }
1978
- adjust?: { ... }
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, or an external value.
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
- source: "environment"
2052
- key: string
2053
- adjust?: {
2054
- type: "percent" | "absolute"
2055
- value: number | {
2056
- source: { ... }
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
- direction: "increase" | "decrease"
2071
- rounding?: "up" | "down"
2072
- }
2073
- } | {
2074
- source: "external"
2075
- app_id: string
2076
- hook_id: string
2077
- result_id: string
2078
- adjust?: {
2079
- type: "percent" | "absolute"
2080
- value: number | {
2081
- source: { ... }
2082
- path: { ... }
2083
- adjust?: { ... }
2084
- } | {
2085
- source: { ... }
2086
- key: { ... }
2087
- adjust?: { ... }
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: "context"
2698
- path: string
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: "relative_date"
2707
- offset: number | {
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
  ```