@epilot/sdk 2.20.57 → 2.20.59
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/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +183 -1
- package/definitions/validation-rules-runtime.json +1 -1
- package/definitions/validation-rules.json +32 -18
- 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 +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- 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-IPYKWRRK.cjs → chunk-FPQK7U3P.cjs} +4 -4
- package/dist/chunk-HRSCAD3W.cjs +14 -0
- package/dist/{chunk-6JWMDS4Z.js → chunk-MBWCGRCK.js} +1 -1
- package/dist/chunk-PPX45U34.js +14 -0
- package/dist/{chunk-7G7ZIF7P.js → chunk-WPDKRU5K.js} +4 -4
- package/dist/{chunk-EPZ3JT2W.cjs → chunk-Y7KWK5H2.cjs} +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/integration-toolkit-AB3GZDWM.cjs +7 -0
- package/dist/integration-toolkit-L745CJ5G.js +7 -0
- package/dist/{integration-toolkit-runtime-FT2J5NFV.js → integration-toolkit-runtime-3LKW4ORQ.js} +1 -1
- package/dist/{integration-toolkit-runtime-GDJVWSKC.cjs → integration-toolkit-runtime-3PM3MBEF.cjs} +2 -2
- package/dist/{integration-toolkit.d-DWslwG3c.d.cts → integration-toolkit.d-oORkWs_H.d.cts} +150 -1
- package/dist/{integration-toolkit.d-DWslwG3c.d.ts → integration-toolkit.d-oORkWs_H.d.ts} +150 -1
- package/dist/validation-rules-2XSKTPDC.js +7 -0
- package/dist/validation-rules-PHF3RPTN.cjs +7 -0
- package/dist/{validation-rules-runtime-X7M3QE5I.cjs → validation-rules-runtime-DENVKYLF.cjs} +2 -2
- package/dist/{validation-rules-runtime-6MRCS5X2.js → validation-rules-runtime-VGLVHV36.js} +1 -1
- package/dist/{validation-rules.d-Bbo90IYn.d.cts → validation-rules.d-ChX2VKqg.d.cts} +105 -48
- package/dist/{validation-rules.d-Bbo90IYn.d.ts → validation-rules.d-ChX2VKqg.d.ts} +105 -48
- package/docs/integration-toolkit.md +138 -3
- package/docs/validation-rules.md +301 -66
- package/package.json +1 -1
- package/dist/chunk-7IKQIVUS.js +0 -14
- package/dist/chunk-JIUTCNTB.cjs +0 -14
- package/dist/integration-toolkit-3J7KVCK7.cjs +0 -7
- package/dist/integration-toolkit-CV2AU2R7.js +0 -7
- package/dist/validation-rules-2JQLB6PH.cjs +0 -7
- package/dist/validation-rules-VQXUQSMC.js +0 -7
|
@@ -24,31 +24,28 @@ declare namespace Components {
|
|
|
24
24
|
*/
|
|
25
25
|
operator: "equal" | "notEqual" | "greaterThan" | "greaterThanInclusive" | "lessThan" | "lessThanInclusive" | "isEmpty" | "isNotEmpty";
|
|
26
26
|
/**
|
|
27
|
-
* Comparison value for binary operators: a static number, string or boolean, or
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Comparison value for binary operators: a static number, string or boolean, or a
|
|
28
|
+
* reference resolved at evaluation time. Accepted reference source: `environment` (a
|
|
29
|
+
* `Number`, `Text` or `Boolean` organisation environment variable), so a precondition
|
|
30
|
+
* can act as a per-organisation switch or threshold. Any other source is rejected at
|
|
31
|
+
* write time, and the reference must not carry an `adjust`.
|
|
30
32
|
*
|
|
31
33
|
*/
|
|
32
34
|
value?: /**
|
|
33
|
-
* Comparison value for binary operators: a static number, string or boolean, or
|
|
34
|
-
*
|
|
35
|
-
*
|
|
35
|
+
* Comparison value for binary operators: a static number, string or boolean, or a
|
|
36
|
+
* reference resolved at evaluation time. Accepted reference source: `environment` (a
|
|
37
|
+
* `Number`, `Text` or `Boolean` organisation environment variable), so a precondition
|
|
38
|
+
* can act as a per-organisation switch or threshold. Any other source is rejected at
|
|
39
|
+
* write time, and the reference must not carry an `adjust`.
|
|
36
40
|
*
|
|
37
41
|
*/
|
|
38
42
|
number | string | boolean | /**
|
|
39
|
-
* A
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* organisation's own value.
|
|
43
|
-
*
|
|
44
|
-
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, `Text` for
|
|
45
|
-
* text comparisons and for dates (ISO 8601 string), `Boolean` for `applies_when` values.
|
|
46
|
-
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
47
|
-
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
48
|
-
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
43
|
+
* A value resolved at evaluation time instead of written into the rule, identified by
|
|
44
|
+
* `source`. Each field that accepts a reference lists the sources it allows; a rule using
|
|
45
|
+
* any other source is rejected when it is saved.
|
|
49
46
|
*
|
|
50
47
|
*/
|
|
51
|
-
|
|
48
|
+
ValueReference;
|
|
52
49
|
}
|
|
53
50
|
/**
|
|
54
51
|
* Declarative validation rule (schema version v2). Supports predefined comparison operators
|
|
@@ -133,8 +130,9 @@ declare namespace Components {
|
|
|
133
130
|
* reaches every rule that references it and a blueprint install never overwrites the
|
|
134
131
|
* organisation's own value.
|
|
135
132
|
*
|
|
136
|
-
* Only browser-safe variable types are allowed: `Number` for numeric comparisons,
|
|
137
|
-
* text comparisons and for dates (ISO 8601
|
|
133
|
+
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, adjustment
|
|
134
|
+
* amounts and relative-date offsets, `Text` for text comparisons and for dates (ISO 8601
|
|
135
|
+
* string), `Boolean` for `applies_when` values.
|
|
138
136
|
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
139
137
|
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
140
138
|
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
@@ -354,8 +352,9 @@ declare namespace Components {
|
|
|
354
352
|
* reaches every rule that references it and a blueprint install never overwrites the
|
|
355
353
|
* organisation's own value.
|
|
356
354
|
*
|
|
357
|
-
* Only browser-safe variable types are allowed: `Number` for numeric comparisons,
|
|
358
|
-
* text comparisons and for dates (ISO 8601
|
|
355
|
+
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, adjustment
|
|
356
|
+
* amounts and relative-date offsets, `Text` for text comparisons and for dates (ISO 8601
|
|
357
|
+
* string), `Boolean` for `applies_when` values.
|
|
359
358
|
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
360
359
|
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
361
360
|
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
@@ -812,8 +811,27 @@ declare namespace Components {
|
|
|
812
811
|
source: "relative_date";
|
|
813
812
|
/**
|
|
814
813
|
* Offset from the anchor. Negative values are in the past, positive in the future, 0 is the anchor itself.
|
|
814
|
+
* Either a fixed whole number, or a reference resolved at evaluation time. Accepted reference source:
|
|
815
|
+
* `environment` (a `Number` organisation environment variable). Any other source is rejected at write
|
|
816
|
+
* time, and the reference must not carry an `adjust`. If the referenced value is missing or is not a
|
|
817
|
+
* whole number within ±36500, the comparison is unresolved.
|
|
818
|
+
*
|
|
819
|
+
*/
|
|
820
|
+
offset: /**
|
|
821
|
+
* Offset from the anchor. Negative values are in the past, positive in the future, 0 is the anchor itself.
|
|
822
|
+
* Either a fixed whole number, or a reference resolved at evaluation time. Accepted reference source:
|
|
823
|
+
* `environment` (a `Number` organisation environment variable). Any other source is rejected at write
|
|
824
|
+
* time, and the reference must not carry an `adjust`. If the referenced value is missing or is not a
|
|
825
|
+
* whole number within ±36500, the comparison is unresolved.
|
|
826
|
+
*
|
|
827
|
+
*/
|
|
828
|
+
number | /**
|
|
829
|
+
* A value resolved at evaluation time instead of written into the rule, identified by
|
|
830
|
+
* `source`. Each field that accepts a reference lists the sources it allows; a rule using
|
|
831
|
+
* any other source is rejected when it is saved.
|
|
832
|
+
*
|
|
815
833
|
*/
|
|
816
|
-
|
|
834
|
+
ValueReference;
|
|
817
835
|
unit: "days" | "months" | "years";
|
|
818
836
|
anchor?: "today";
|
|
819
837
|
}
|
|
@@ -832,8 +850,9 @@ declare namespace Components {
|
|
|
832
850
|
* reaches every rule that references it and a blueprint install never overwrites the
|
|
833
851
|
* organisation's own value.
|
|
834
852
|
*
|
|
835
|
-
* Only browser-safe variable types are allowed: `Number` for numeric comparisons,
|
|
836
|
-
* text comparisons and for dates (ISO 8601
|
|
853
|
+
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, adjustment
|
|
854
|
+
* amounts and relative-date offsets, `Text` for text comparisons and for dates (ISO 8601
|
|
855
|
+
* string), `Boolean` for `applies_when` values.
|
|
837
856
|
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
838
857
|
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
839
858
|
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
@@ -1101,37 +1120,28 @@ declare namespace Components {
|
|
|
1101
1120
|
export interface ValueAdjustment {
|
|
1102
1121
|
type: "percent" | "absolute";
|
|
1103
1122
|
/**
|
|
1104
|
-
* The adjustment amount - a fixed number, or a
|
|
1105
|
-
* (e.g. a per-contract
|
|
1106
|
-
*
|
|
1123
|
+
* The adjustment amount - a fixed non-negative number, or a reference resolving to a
|
|
1124
|
+
* number at evaluation time. Accepted reference sources: `context` (e.g. a per-contract
|
|
1125
|
+
* percentage limit) and `environment` (a `Number` organisation environment variable).
|
|
1126
|
+
* Any other source is rejected at write time, and the reference must not carry its own
|
|
1127
|
+
* `adjust`.
|
|
1107
1128
|
*
|
|
1108
1129
|
*/
|
|
1109
1130
|
value: /**
|
|
1110
|
-
* The adjustment amount - a fixed number, or a
|
|
1111
|
-
* (e.g. a per-contract
|
|
1112
|
-
*
|
|
1131
|
+
* The adjustment amount - a fixed non-negative number, or a reference resolving to a
|
|
1132
|
+
* number at evaluation time. Accepted reference sources: `context` (e.g. a per-contract
|
|
1133
|
+
* percentage limit) and `environment` (a `Number` organisation environment variable).
|
|
1134
|
+
* Any other source is rejected at write time, and the reference must not carry its own
|
|
1135
|
+
* `adjust`.
|
|
1113
1136
|
*
|
|
1114
1137
|
*/
|
|
1115
1138
|
number | /**
|
|
1116
|
-
* A
|
|
1117
|
-
*
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1120
|
-
*/
|
|
1121
|
-
ContextValue | /**
|
|
1122
|
-
* A comparison value resolved at evaluation time from an organisation environment variable
|
|
1123
|
-
* (environments-api). The rule stores the key, never the value, so one change to the variable
|
|
1124
|
-
* reaches every rule that references it and a blueprint install never overwrites the
|
|
1125
|
-
* organisation's own value.
|
|
1126
|
-
*
|
|
1127
|
-
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, `Text` for
|
|
1128
|
-
* text comparisons and for dates (ISO 8601 string), `Boolean` for `applies_when` values.
|
|
1129
|
-
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
1130
|
-
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
1131
|
-
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
1139
|
+
* A value resolved at evaluation time instead of written into the rule, identified by
|
|
1140
|
+
* `source`. Each field that accepts a reference lists the sources it allows; a rule using
|
|
1141
|
+
* any other source is rejected when it is saved.
|
|
1132
1142
|
*
|
|
1133
1143
|
*/
|
|
1134
|
-
|
|
1144
|
+
ValueReference;
|
|
1135
1145
|
direction: "increase" | "decrease";
|
|
1136
1146
|
/**
|
|
1137
1147
|
* Rounds the adjusted result to a whole number - `up` (ceiling) or `down` (floor).
|
|
@@ -1140,6 +1150,52 @@ declare namespace Components {
|
|
|
1140
1150
|
*/
|
|
1141
1151
|
rounding?: "up" | "down";
|
|
1142
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* A value resolved at evaluation time instead of written into the rule, identified by
|
|
1155
|
+
* `source`. Each field that accepts a reference lists the sources it allows; a rule using
|
|
1156
|
+
* any other source is rejected when it is saved.
|
|
1157
|
+
*
|
|
1158
|
+
*/
|
|
1159
|
+
export type ValueReference = /**
|
|
1160
|
+
* A value resolved at evaluation time instead of written into the rule, identified by
|
|
1161
|
+
* `source`. Each field that accepts a reference lists the sources it allows; a rule using
|
|
1162
|
+
* any other source is rejected when it is saved.
|
|
1163
|
+
*
|
|
1164
|
+
*/
|
|
1165
|
+
/**
|
|
1166
|
+
* A dynamic comparison value resolved from runtime context, e.g. `contract.installment_amount`
|
|
1167
|
+
* or `previous_reading.value`. The first path segment must match the `name` of a declared
|
|
1168
|
+
* context requirement.
|
|
1169
|
+
*
|
|
1170
|
+
*/
|
|
1171
|
+
ContextValue | /**
|
|
1172
|
+
* A comparison value resolved at evaluation time from an organisation environment variable
|
|
1173
|
+
* (environments-api). The rule stores the key, never the value, so one change to the variable
|
|
1174
|
+
* reaches every rule that references it and a blueprint install never overwrites the
|
|
1175
|
+
* organisation's own value.
|
|
1176
|
+
*
|
|
1177
|
+
* Only browser-safe variable types are allowed: `Number` for numeric comparisons, adjustment
|
|
1178
|
+
* amounts and relative-date offsets, `Text` for text comparisons and for dates (ISO 8601
|
|
1179
|
+
* string), `Boolean` for `applies_when` values.
|
|
1180
|
+
* `String` and `SecretString` variables are rejected at write time. Write-time validation also
|
|
1181
|
+
* checks that the variable exists in the organisation; a variable that exists without a value
|
|
1182
|
+
* (for example seeded by a blueprint install) is accepted and resolves as unavailable until set.
|
|
1183
|
+
*
|
|
1184
|
+
*/
|
|
1185
|
+
EnvironmentValue | /**
|
|
1186
|
+
* A comparison value produced at evaluation time by an External Values hook of an installed
|
|
1187
|
+
* app (component type `EXTERNAL_VALUES`). The rule stores the reference only; the value is
|
|
1188
|
+
* resolved server-side by the external-values-api, which executes the hook's HTTP call with
|
|
1189
|
+
* the app's credentials and returns the typed result identified by `result_id`.
|
|
1190
|
+
*
|
|
1191
|
+
* Write-time validation checks that the app is installed in the organisation, that the hook
|
|
1192
|
+
* and result exist, and that the result's type is compatible with the compared kind
|
|
1193
|
+
* (`number` results for numeric comparisons, `text` for text, `date` for date). External values
|
|
1194
|
+
* are resolved only for authenticated consumers (epilot 360 users and portal end customers);
|
|
1195
|
+
* in public journeys the dependent conditions are skipped.
|
|
1196
|
+
*
|
|
1197
|
+
*/
|
|
1198
|
+
ExternalValue;
|
|
1143
1199
|
}
|
|
1144
1200
|
}
|
|
1145
1201
|
declare namespace Paths {
|
|
@@ -1664,5 +1720,6 @@ type UsedBy = Components.Schemas.UsedBy;
|
|
|
1664
1720
|
type ValidationRule = Components.Schemas.ValidationRule;
|
|
1665
1721
|
type ValidationRuleBase = Components.Schemas.ValidationRuleBase;
|
|
1666
1722
|
type ValueAdjustment = Components.Schemas.ValueAdjustment;
|
|
1723
|
+
type ValueReference = Components.Schemas.ValueReference;
|
|
1667
1724
|
|
|
1668
|
-
export { type AppliesWhen as A, type RegexRuleType as B, type Client as C, type DocumentCheck as D, type EnvironmentValue as E, type FileTypesValue as F, type GetValidationRulesResponse as G, type RelativeDateValue as H, type StaticValue as I, type UsedBy as J, type ValidationRuleBase as K, type ValueAdjustment as L, type NoValue as N, type OperationMethods as O, Paths as P, type RangeValue as R, type ScalarValue as S, type UpdateValidationRuleRequest as U, type ValidationRule as V, Components as a, type PathsDictionary as b, type ComparisonRuleType as c, type Condition as d, type ConditionValue as e, type ContextRequirement as f, type ContextValue as g, type CreateValidationRuleRequest as h, type CriteriaValue as i, type DocumentCondition as j, type DocumentConditionValue as k, type DocumentOperator as l, type DocumentRuleType as m, type ExternalValue as n, type NumericCondition as o, type NumericFactCondition as p, type NumericNestedCondition as q, type NumericRuleType as r, type Operator as s, type PatternCondition as t, type PatternFactCondition as u, type PatternNestedCondition as v, type PatternRuleType as w, type RegexCondition as x, type RegexFactCondition as y, type RegexNestedCondition as z };
|
|
1725
|
+
export { type AppliesWhen as A, type RegexRuleType as B, type Client as C, type DocumentCheck as D, type EnvironmentValue as E, type FileTypesValue as F, type GetValidationRulesResponse as G, type RelativeDateValue as H, type StaticValue as I, type UsedBy as J, type ValidationRuleBase as K, type ValueAdjustment as L, type ValueReference as M, type NoValue as N, type OperationMethods as O, Paths as P, type RangeValue as R, type ScalarValue as S, type UpdateValidationRuleRequest as U, type ValidationRule as V, Components as a, type PathsDictionary as b, type ComparisonRuleType as c, type Condition as d, type ConditionValue as e, type ContextRequirement as f, type ContextValue as g, type CreateValidationRuleRequest as h, type CriteriaValue as i, type DocumentCondition as j, type DocumentConditionValue as k, type DocumentOperator as l, type DocumentRuleType as m, type ExternalValue as n, type NumericCondition as o, type NumericFactCondition as p, type NumericNestedCondition as q, type NumericRuleType as r, type Operator as s, type PatternCondition as t, type PatternFactCondition as u, type PatternNestedCondition as v, type PatternRuleType as w, type RegexCondition as x, type RegexFactCondition as y, type RegexNestedCondition as z };
|
|
@@ -88,6 +88,7 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
|
|
|
88
88
|
- [`getAssociatedMonitoringEvents`](#getassociatedmonitoringevents)
|
|
89
89
|
- [`ingestExternalMonitoringEvents`](#ingestexternalmonitoringevents)
|
|
90
90
|
- [`getMonitoringTraceByCorrelation`](#getmonitoringtracebycorrelation)
|
|
91
|
+
- [`getMonitoringRunCompletionV2`](#getmonitoringruncompletionv2)
|
|
91
92
|
|
|
92
93
|
**proxy**
|
|
93
94
|
- [`secureProxy`](#secureproxy)
|
|
@@ -318,6 +319,10 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
|
|
|
318
319
|
- [`MonitoringCode`](#monitoringcode)
|
|
319
320
|
- [`MonitoringEventV2`](#monitoringeventv2)
|
|
320
321
|
- [`GetMonitoringStatsV2Request`](#getmonitoringstatsv2request)
|
|
322
|
+
- [`GetMonitoringRunCompletionV2Request`](#getmonitoringruncompletionv2request)
|
|
323
|
+
- [`MonitoringRunCompletionV2Response`](#monitoringruncompletionv2response)
|
|
324
|
+
- [`MonitoringRunCompletionV2`](#monitoringruncompletionv2)
|
|
325
|
+
- [`MonitoringRunEntriesV2`](#monitoringrunentriesv2)
|
|
321
326
|
- [`MonitoringStatsV2`](#monitoringstatsv2)
|
|
322
327
|
- [`GetMonitoringTimeSeriesV2Request`](#getmonitoringtimeseriesv2request)
|
|
323
328
|
- [`TimeSeriesBreakdownItemV2`](#timeseriesbreakdownitemv2)
|
|
@@ -3466,6 +3471,57 @@ const { data } = await client.getMonitoringTraceByCorrelation({
|
|
|
3466
3471
|
|
|
3467
3472
|
---
|
|
3468
3473
|
|
|
3474
|
+
### `getMonitoringRunCompletionV2`
|
|
3475
|
+
|
|
3476
|
+
Per-event completion of one or more runs (every monitoring event sharing a
|
|
3477
|
+
`correlation_id`), each reduced to "how many events have reached a final
|
|
3478
|
+
outcome, and how many are still going". Unlike `getM
|
|
3479
|
+
|
|
3480
|
+
`POST /v2/integrations/{integrationId}/monitoring/runs/completion`
|
|
3481
|
+
|
|
3482
|
+
```ts
|
|
3483
|
+
const { data } = await client.getMonitoringRunCompletionV2(
|
|
3484
|
+
{
|
|
3485
|
+
integrationId: 'example',
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
correlation_ids: ['string']
|
|
3489
|
+
},
|
|
3490
|
+
)
|
|
3491
|
+
```
|
|
3492
|
+
|
|
3493
|
+
<details>
|
|
3494
|
+
<summary>Response</summary>
|
|
3495
|
+
|
|
3496
|
+
```json
|
|
3497
|
+
{
|
|
3498
|
+
"runs": [
|
|
3499
|
+
{
|
|
3500
|
+
"correlation_id": "string",
|
|
3501
|
+
"seen": 0,
|
|
3502
|
+
"in_flight": 0,
|
|
3503
|
+
"retrying": 0,
|
|
3504
|
+
"success": 0,
|
|
3505
|
+
"warning": 0,
|
|
3506
|
+
"error": 0,
|
|
3507
|
+
"info": 0,
|
|
3508
|
+
"entries": {
|
|
3509
|
+
"total": 0,
|
|
3510
|
+
"error": 0,
|
|
3511
|
+
"warning": 0,
|
|
3512
|
+
"success": 0,
|
|
3513
|
+
"info": 0
|
|
3514
|
+
},
|
|
3515
|
+
"last_activity_at": "1970-01-01T00:00:00.000Z"
|
|
3516
|
+
}
|
|
3517
|
+
]
|
|
3518
|
+
}
|
|
3519
|
+
```
|
|
3520
|
+
|
|
3521
|
+
</details>
|
|
3522
|
+
|
|
3523
|
+
---
|
|
3524
|
+
|
|
3469
3525
|
### `listSecureProxies`
|
|
3470
3526
|
|
|
3471
3527
|
Lists all secure_proxy use cases across all integrations for the authenticated organization.
|
|
@@ -3736,7 +3792,8 @@ const { data } = await client.createErpImport(
|
|
|
3736
3792
|
},
|
|
3737
3793
|
"progress": {
|
|
3738
3794
|
"processed_rows": 0,
|
|
3739
|
-
"total_rows": 0
|
|
3795
|
+
"total_rows": 0,
|
|
3796
|
+
"events_published": 0
|
|
3740
3797
|
},
|
|
3741
3798
|
"error": {
|
|
3742
3799
|
"code": "VALIDATION_BLOCKED",
|
|
@@ -3833,7 +3890,8 @@ const { data } = await client.listErpImports({
|
|
|
3833
3890
|
},
|
|
3834
3891
|
"progress": {
|
|
3835
3892
|
"processed_rows": 0,
|
|
3836
|
-
"total_rows": 0
|
|
3893
|
+
"total_rows": 0,
|
|
3894
|
+
"events_published": 0
|
|
3837
3895
|
},
|
|
3838
3896
|
"error": {
|
|
3839
3897
|
"code": "VALIDATION_BLOCKED",
|
|
@@ -3923,7 +3981,8 @@ const { data } = await client.getErpImport({
|
|
|
3923
3981
|
},
|
|
3924
3982
|
"progress": {
|
|
3925
3983
|
"processed_rows": 0,
|
|
3926
|
-
"total_rows": 0
|
|
3984
|
+
"total_rows": 0,
|
|
3985
|
+
"events_published": 0
|
|
3927
3986
|
},
|
|
3928
3987
|
"error": {
|
|
3929
3988
|
"code": "VALIDATION_BLOCKED",
|
|
@@ -4263,6 +4322,7 @@ How far the currently running phase has got. Written at every batch boundary, so
|
|
|
4263
4322
|
type ErpImportProgress = {
|
|
4264
4323
|
processed_rows: number
|
|
4265
4324
|
total_rows?: number
|
|
4325
|
+
events_published?: number
|
|
4266
4326
|
}
|
|
4267
4327
|
```
|
|
4268
4328
|
|
|
@@ -4327,6 +4387,7 @@ type CreateErpImportResponse = {
|
|
|
4327
4387
|
progress?: {
|
|
4328
4388
|
processed_rows: { ... }
|
|
4329
4389
|
total_rows?: { ... }
|
|
4390
|
+
events_published?: { ... }
|
|
4330
4391
|
}
|
|
4331
4392
|
error?: {
|
|
4332
4393
|
code: { ... }
|
|
@@ -4389,6 +4450,7 @@ type ErpImportJob = {
|
|
|
4389
4450
|
progress?: {
|
|
4390
4451
|
processed_rows: number
|
|
4391
4452
|
total_rows?: number
|
|
4453
|
+
events_published?: number
|
|
4392
4454
|
}
|
|
4393
4455
|
error?: {
|
|
4394
4456
|
code: "VALIDATION_BLOCKED" | "FILE_FORMAT_UNSUPPORTED" | "FILE_UNAVAILABLE" | "VALIDATE_TIMEOUT" | "IMPORT_TIMEOUT" | "USE_CASE_NOT_USABLE" | "IMPORT_NO_PROGRESS" | "TIER_ROWS_NOT_GROUPED" | "CHUNK_TOO_LARGE" | "INTERNAL_ERROR"
|
|
@@ -4430,6 +4492,7 @@ type ErpImportList = {
|
|
|
4430
4492
|
progress?: {
|
|
4431
4493
|
processed_rows: { ... }
|
|
4432
4494
|
total_rows?: { ... }
|
|
4495
|
+
events_published?: { ... }
|
|
4433
4496
|
}
|
|
4434
4497
|
error?: {
|
|
4435
4498
|
code: { ... }
|
|
@@ -9661,6 +9724,78 @@ type GetMonitoringStatsV2Request = {
|
|
|
9661
9724
|
}
|
|
9662
9725
|
```
|
|
9663
9726
|
|
|
9727
|
+
### `GetMonitoringRunCompletionV2Request`
|
|
9728
|
+
|
|
9729
|
+
```ts
|
|
9730
|
+
type GetMonitoringRunCompletionV2Request = {
|
|
9731
|
+
correlation_ids: string[]
|
|
9732
|
+
}
|
|
9733
|
+
```
|
|
9734
|
+
|
|
9735
|
+
### `MonitoringRunCompletionV2Response`
|
|
9736
|
+
|
|
9737
|
+
```ts
|
|
9738
|
+
type MonitoringRunCompletionV2Response = {
|
|
9739
|
+
runs: Array<{
|
|
9740
|
+
correlation_id: string
|
|
9741
|
+
seen: number
|
|
9742
|
+
in_flight: number
|
|
9743
|
+
retrying: number
|
|
9744
|
+
success: number
|
|
9745
|
+
warning: number
|
|
9746
|
+
error: number
|
|
9747
|
+
info: number
|
|
9748
|
+
entries: {
|
|
9749
|
+
total: { ... }
|
|
9750
|
+
error: { ... }
|
|
9751
|
+
warning: { ... }
|
|
9752
|
+
success: { ... }
|
|
9753
|
+
info: { ... }
|
|
9754
|
+
}
|
|
9755
|
+
last_activity_at: string // date-time
|
|
9756
|
+
}>
|
|
9757
|
+
}
|
|
9758
|
+
```
|
|
9759
|
+
|
|
9760
|
+
### `MonitoringRunCompletionV2`
|
|
9761
|
+
|
|
9762
|
+
Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`.
|
|
9763
|
+
|
|
9764
|
+
```ts
|
|
9765
|
+
type MonitoringRunCompletionV2 = {
|
|
9766
|
+
correlation_id: string
|
|
9767
|
+
seen: number
|
|
9768
|
+
in_flight: number
|
|
9769
|
+
retrying: number
|
|
9770
|
+
success: number
|
|
9771
|
+
warning: number
|
|
9772
|
+
error: number
|
|
9773
|
+
info: number
|
|
9774
|
+
entries: {
|
|
9775
|
+
total: number
|
|
9776
|
+
error: number
|
|
9777
|
+
warning: number
|
|
9778
|
+
success: number
|
|
9779
|
+
info: number
|
|
9780
|
+
}
|
|
9781
|
+
last_activity_at: string // date-time
|
|
9782
|
+
}
|
|
9783
|
+
```
|
|
9784
|
+
|
|
9785
|
+
### `MonitoringRunEntriesV2`
|
|
9786
|
+
|
|
9787
|
+
The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry).
|
|
9788
|
+
|
|
9789
|
+
```ts
|
|
9790
|
+
type MonitoringRunEntriesV2 = {
|
|
9791
|
+
total: number
|
|
9792
|
+
error: number
|
|
9793
|
+
warning: number
|
|
9794
|
+
success: number
|
|
9795
|
+
info: number
|
|
9796
|
+
}
|
|
9797
|
+
```
|
|
9798
|
+
|
|
9664
9799
|
### `MonitoringStatsV2`
|
|
9665
9800
|
|
|
9666
9801
|
```ts
|