@epilot/sdk 2.12.0 → 2.12.2
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/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +164 -16
- package/definitions/event-catalog.json +63 -1
- 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/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 +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- 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.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.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/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/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 +6 -6
- package/dist/apis/validation-rules.js +1 -1
- 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-XGCTJYBW.cjs → chunk-64QQ2WEY.cjs} +3 -3
- package/dist/chunk-6HJ2Y7DZ.js +14 -0
- package/dist/chunk-BFMY2X2J.cjs +14 -0
- package/dist/{chunk-FOGUF2AK.js → chunk-ZALT2KZ3.js} +3 -3
- package/dist/customer-portal-6I3G44I4.cjs +7 -0
- package/dist/customer-portal-PTVGKDUH.js +7 -0
- package/dist/{customer-portal-runtime-VRGCSOVU.cjs → customer-portal-runtime-4ACQGDNY.cjs} +2 -2
- package/dist/{customer-portal-runtime-NRIQG6IO.js → customer-portal-runtime-E4RI7NYM.js} +1 -1
- package/dist/{customer-portal.d-fWVl8_mE.d.cts → customer-portal.d-Bpc-wk9K.d.cts} +140 -12
- package/dist/{customer-portal.d-fWVl8_mE.d.ts → customer-portal.d-Bpc-wk9K.d.ts} +140 -12
- package/dist/event-catalog-6ZSSF5JU.cjs +7 -0
- package/dist/event-catalog-RS4LJMY2.js +7 -0
- package/dist/{event-catalog.d-CXbUn8T1.d.cts → event-catalog.d-QIhhewVH.d.cts} +153 -3
- package/dist/{event-catalog.d-CXbUn8T1.d.ts → event-catalog.d-QIhhewVH.d.ts} +153 -3
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/customer-portal.md +86 -21
- package/docs/event-catalog.md +90 -5
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/chunk-4H2KIKGL.cjs +0 -14
- package/dist/chunk-COASF7ZR.js +0 -14
- package/dist/customer-portal-F45XWLIO.cjs +0 -7
- package/dist/customer-portal-MYNJZ4OW.js +0 -7
- package/dist/event-catalog-3YOQ46ZW.js +0 -7
- package/dist/event-catalog-HLWUT7RM.cjs +0 -7
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
} from "./chunk-2BPBDRRO.js";
|
|
124
124
|
import {
|
|
125
125
|
require_customer_portal_runtime
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-6HJ2Y7DZ.js";
|
|
127
127
|
import {
|
|
128
128
|
require_dashboard_runtime
|
|
129
129
|
} from "./chunk-SZMCMLOQ.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
expand,
|
|
159
159
|
help,
|
|
160
160
|
openapi
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-ZALT2KZ3.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
package/dist/js-yaml-DLCVPJ7G.js
CHANGED
|
File without changes
|
package/docs/customer-portal.md
CHANGED
|
@@ -330,6 +330,7 @@ const { data } = await customerPortalClient.upsertPortal(...)
|
|
|
330
330
|
- [`Page`](#page)
|
|
331
331
|
- [`CommonConfigAttributesV3`](#commonconfigattributesv3)
|
|
332
332
|
- [`PortalId`](#portalid)
|
|
333
|
+
- [`PortalDataExportColumn`](#portaldataexportcolumn)
|
|
333
334
|
- [`UpsertPortalConfigV3`](#upsertportalconfigv3)
|
|
334
335
|
- [`PortalConfigV3`](#portalconfigv3)
|
|
335
336
|
- [`JuiceSettings`](#juicesettings)
|
|
@@ -475,7 +476,8 @@ const { data } = await client.upsertPortal(
|
|
|
475
476
|
require_lowercase: true,
|
|
476
477
|
require_uppercase: true,
|
|
477
478
|
require_numbers: true,
|
|
478
|
-
require_symbols: true
|
|
479
|
+
require_symbols: true,
|
|
480
|
+
password_history_size: 3
|
|
479
481
|
}
|
|
480
482
|
},
|
|
481
483
|
config: 'string',
|
|
@@ -702,7 +704,8 @@ const { data } = await client.upsertPortal(
|
|
|
702
704
|
"require_lowercase": true,
|
|
703
705
|
"require_uppercase": true,
|
|
704
706
|
"require_numbers": true,
|
|
705
|
-
"require_symbols": true
|
|
707
|
+
"require_symbols": true,
|
|
708
|
+
"password_history_size": 3
|
|
706
709
|
}
|
|
707
710
|
},
|
|
708
711
|
"config": "string",
|
|
@@ -1066,7 +1069,8 @@ const { data } = await client.getPortalConfigByDomain({
|
|
|
1066
1069
|
"require_lowercase": true,
|
|
1067
1070
|
"require_uppercase": true,
|
|
1068
1071
|
"require_numbers": true,
|
|
1069
|
-
"require_symbols": true
|
|
1072
|
+
"require_symbols": true,
|
|
1073
|
+
"password_history_size": 3
|
|
1070
1074
|
}
|
|
1071
1075
|
},
|
|
1072
1076
|
"config": "string",
|
|
@@ -1333,7 +1337,8 @@ const { data } = await client.getPortalConfig({
|
|
|
1333
1337
|
"require_lowercase": true,
|
|
1334
1338
|
"require_uppercase": true,
|
|
1335
1339
|
"require_numbers": true,
|
|
1336
|
-
"require_symbols": true
|
|
1340
|
+
"require_symbols": true,
|
|
1341
|
+
"password_history_size": 3
|
|
1337
1342
|
}
|
|
1338
1343
|
},
|
|
1339
1344
|
"config": "string",
|
|
@@ -1506,14 +1511,46 @@ const { data } = await client.deletePortal({
|
|
|
1506
1511
|
|
|
1507
1512
|
### `createExport`
|
|
1508
1513
|
|
|
1509
|
-
Request an asynchronous CSV export of the portal user's
|
|
1514
|
+
Request an asynchronous CSV export of the portal user's entities for one schema. Columns come from the request Returns a job id to poll.
|
|
1510
1515
|
|
|
1511
1516
|
`POST /v1/portal/exports`
|
|
1512
1517
|
|
|
1513
1518
|
```ts
|
|
1514
|
-
const { data } = await client.createExport(
|
|
1515
|
-
|
|
1516
|
-
|
|
1519
|
+
const { data } = await client.createExport(
|
|
1520
|
+
null,
|
|
1521
|
+
{
|
|
1522
|
+
schema: 'string',
|
|
1523
|
+
search: {
|
|
1524
|
+
q: 'string',
|
|
1525
|
+
q_fields: ['string'],
|
|
1526
|
+
filters: [
|
|
1527
|
+
{}
|
|
1528
|
+
],
|
|
1529
|
+
filters_context: [
|
|
1530
|
+
{}
|
|
1531
|
+
],
|
|
1532
|
+
sort: {}
|
|
1533
|
+
},
|
|
1534
|
+
columns: [
|
|
1535
|
+
{
|
|
1536
|
+
key: 'vertragsnummer',
|
|
1537
|
+
header: {
|
|
1538
|
+
de: 'Vertragsnummer',
|
|
1539
|
+
en: 'Contract number'
|
|
1540
|
+
},
|
|
1541
|
+
source: {
|
|
1542
|
+
path: ['customer'],
|
|
1543
|
+
attribute: 'customer_number',
|
|
1544
|
+
address_field: 'full'
|
|
1545
|
+
},
|
|
1546
|
+
formatter: 'text',
|
|
1547
|
+
enum_labels: {}
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
expand_over: 'string',
|
|
1551
|
+
language: 'de'
|
|
1552
|
+
},
|
|
1553
|
+
)
|
|
1517
1554
|
```
|
|
1518
1555
|
|
|
1519
1556
|
---
|
|
@@ -2451,7 +2488,8 @@ const { data } = await client.getPublicPortalConfig({
|
|
|
2451
2488
|
"require_lowercase": true,
|
|
2452
2489
|
"require_uppercase": true,
|
|
2453
2490
|
"require_numbers": true,
|
|
2454
|
-
"require_symbols": true
|
|
2491
|
+
"require_symbols": true,
|
|
2492
|
+
"password_history_size": 3
|
|
2455
2493
|
}
|
|
2456
2494
|
},
|
|
2457
2495
|
"config": "string",
|
|
@@ -2718,7 +2756,8 @@ const { data } = await client.getOrgPortalConfig({
|
|
|
2718
2756
|
"require_lowercase": true,
|
|
2719
2757
|
"require_uppercase": true,
|
|
2720
2758
|
"require_numbers": true,
|
|
2721
|
-
"require_symbols": true
|
|
2759
|
+
"require_symbols": true,
|
|
2760
|
+
"password_history_size": 3
|
|
2722
2761
|
}
|
|
2723
2762
|
},
|
|
2724
2763
|
"config": "string",
|
|
@@ -2994,7 +3033,8 @@ const { data } = await client.getPublicPortalConfigV3({
|
|
|
2994
3033
|
"require_lowercase": true,
|
|
2995
3034
|
"require_uppercase": true,
|
|
2996
3035
|
"require_numbers": true,
|
|
2997
|
-
"require_symbols": true
|
|
3036
|
+
"require_symbols": true,
|
|
3037
|
+
"password_history_size": 3
|
|
2998
3038
|
}
|
|
2999
3039
|
},
|
|
3000
3040
|
"config": "string",
|
|
@@ -3261,7 +3301,8 @@ const { data } = await client.getOrgPortalConfigV3({
|
|
|
3261
3301
|
"require_lowercase": true,
|
|
3262
3302
|
"require_uppercase": true,
|
|
3263
3303
|
"require_numbers": true,
|
|
3264
|
-
"require_symbols": true
|
|
3304
|
+
"require_symbols": true,
|
|
3305
|
+
"password_history_size": 3
|
|
3265
3306
|
}
|
|
3266
3307
|
},
|
|
3267
3308
|
"config": "string",
|
|
@@ -7668,7 +7709,8 @@ const { data } = await client.createPortalConfig(
|
|
|
7668
7709
|
require_lowercase: true,
|
|
7669
7710
|
require_uppercase: true,
|
|
7670
7711
|
require_numbers: true,
|
|
7671
|
-
require_symbols: true
|
|
7712
|
+
require_symbols: true,
|
|
7713
|
+
password_history_size: 3
|
|
7672
7714
|
}
|
|
7673
7715
|
},
|
|
7674
7716
|
config: 'string',
|
|
@@ -7946,7 +7988,8 @@ const { data } = await client.createPortalConfig(
|
|
|
7946
7988
|
"require_lowercase": true,
|
|
7947
7989
|
"require_uppercase": true,
|
|
7948
7990
|
"require_numbers": true,
|
|
7949
|
-
"require_symbols": true
|
|
7991
|
+
"require_symbols": true,
|
|
7992
|
+
"password_history_size": 3
|
|
7950
7993
|
}
|
|
7951
7994
|
},
|
|
7952
7995
|
"config": "string",
|
|
@@ -8259,7 +8302,8 @@ const { data } = await client.getPortalConfigV3({
|
|
|
8259
8302
|
"require_lowercase": true,
|
|
8260
8303
|
"require_uppercase": true,
|
|
8261
8304
|
"require_numbers": true,
|
|
8262
|
-
"require_symbols": true
|
|
8305
|
+
"require_symbols": true,
|
|
8306
|
+
"password_history_size": 3
|
|
8263
8307
|
}
|
|
8264
8308
|
},
|
|
8265
8309
|
"config": "string",
|
|
@@ -8568,7 +8612,8 @@ const { data } = await client.putPortalConfig(
|
|
|
8568
8612
|
require_lowercase: true,
|
|
8569
8613
|
require_uppercase: true,
|
|
8570
8614
|
require_numbers: true,
|
|
8571
|
-
require_symbols: true
|
|
8615
|
+
require_symbols: true,
|
|
8616
|
+
password_history_size: 3
|
|
8572
8617
|
}
|
|
8573
8618
|
},
|
|
8574
8619
|
config: 'string',
|
|
@@ -8867,7 +8912,8 @@ const { data } = await client.putPortalConfig(
|
|
|
8867
8912
|
"require_lowercase": true,
|
|
8868
8913
|
"require_uppercase": true,
|
|
8869
8914
|
"require_numbers": true,
|
|
8870
|
-
"require_symbols": true
|
|
8915
|
+
"require_symbols": true,
|
|
8916
|
+
"password_history_size": 3
|
|
8871
8917
|
}
|
|
8872
8918
|
},
|
|
8873
8919
|
"config": "string",
|
|
@@ -9306,7 +9352,8 @@ const { data } = await client.clonePortalConfig(
|
|
|
9306
9352
|
"require_lowercase": true,
|
|
9307
9353
|
"require_uppercase": true,
|
|
9308
9354
|
"require_numbers": true,
|
|
9309
|
-
"require_symbols": true
|
|
9355
|
+
"require_symbols": true,
|
|
9356
|
+
"password_history_size": 3
|
|
9310
9357
|
}
|
|
9311
9358
|
},
|
|
9312
9359
|
"config": "string",
|
|
@@ -10340,11 +10387,11 @@ type CommonConfigAttributes = {
|
|
|
10340
10387
|
require_uppercase?: { ... }
|
|
10341
10388
|
require_numbers?: { ... }
|
|
10342
10389
|
require_symbols?: { ... }
|
|
10390
|
+
password_history_size?: { ... }
|
|
10343
10391
|
}
|
|
10344
10392
|
}
|
|
10345
10393
|
config?: string
|
|
10346
10394
|
contact_identifiers?: string[]
|
|
10347
|
-
approval_state_attributes?: Record<string, string[]>
|
|
10348
10395
|
// ...
|
|
10349
10396
|
}
|
|
10350
10397
|
```
|
|
@@ -10554,11 +10601,11 @@ type PortalConfig = {
|
|
|
10554
10601
|
require_uppercase?: { ... }
|
|
10555
10602
|
require_numbers?: { ... }
|
|
10556
10603
|
require_symbols?: { ... }
|
|
10604
|
+
password_history_size?: { ... }
|
|
10557
10605
|
}
|
|
10558
10606
|
}
|
|
10559
10607
|
config?: string
|
|
10560
10608
|
contact_identifiers?: string[]
|
|
10561
|
-
approval_state_attributes?: Record<string, string[]>
|
|
10562
10609
|
// ...
|
|
10563
10610
|
}
|
|
10564
10611
|
```
|
|
@@ -13505,11 +13552,11 @@ type CommonConfigAttributesV3 = {
|
|
|
13505
13552
|
require_uppercase?: { ... }
|
|
13506
13553
|
require_numbers?: { ... }
|
|
13507
13554
|
require_symbols?: { ... }
|
|
13555
|
+
password_history_size?: { ... }
|
|
13508
13556
|
}
|
|
13509
13557
|
}
|
|
13510
13558
|
config?: string
|
|
13511
13559
|
contact_identifiers?: string[]
|
|
13512
|
-
approval_state_attributes?: Record<string, string[]>
|
|
13513
13560
|
// ...
|
|
13514
13561
|
}
|
|
13515
13562
|
```
|
|
@@ -13522,6 +13569,24 @@ ID of the portal
|
|
|
13522
13569
|
type PortalId = string
|
|
13523
13570
|
```
|
|
13524
13571
|
|
|
13572
|
+
### `PortalDataExportColumn`
|
|
13573
|
+
|
|
13574
|
+
One column of the portal data export CSV.
|
|
13575
|
+
|
|
13576
|
+
```ts
|
|
13577
|
+
type PortalDataExportColumn = {
|
|
13578
|
+
key: string
|
|
13579
|
+
header: Record<string, string>
|
|
13580
|
+
source: {
|
|
13581
|
+
path?: string[]
|
|
13582
|
+
attribute: string
|
|
13583
|
+
address_field?: "full" | "street" | "street_number" | "postal_code" | "city" | "additional_info" | "country"
|
|
13584
|
+
}
|
|
13585
|
+
formatter?: "text" | "date" | "money_cents" | "enum" | "address"
|
|
13586
|
+
enum_labels?: Record<string, Record<string, string>>
|
|
13587
|
+
}
|
|
13588
|
+
```
|
|
13589
|
+
|
|
13525
13590
|
### `UpsertPortalConfigV3`
|
|
13526
13591
|
|
|
13527
13592
|
```ts
|
package/docs/event-catalog.md
CHANGED
|
@@ -44,8 +44,10 @@ const { data } = await eventCatalogClient.listEvents(...)
|
|
|
44
44
|
- [`ContextEntity`](#contextentity)
|
|
45
45
|
- [`AttachmentField`](#attachmentfield)
|
|
46
46
|
- [`SchemaField`](#schemafield)
|
|
47
|
+
- [`SuccessCriterion`](#successcriterion)
|
|
47
48
|
- [`CommonEventMetadata`](#commoneventmetadata)
|
|
48
49
|
- [`EventJsonSchema`](#eventjsonschema)
|
|
50
|
+
- [`InlineDowngradeStep`](#inlinedowngradestep)
|
|
49
51
|
- [`Event`](#event)
|
|
50
52
|
- [`EventSummary`](#eventsummary)
|
|
51
53
|
- [`GraphDefinition`](#graphdefinition)
|
|
@@ -110,7 +112,17 @@ const { data } = await client.listEvents()
|
|
|
110
112
|
},
|
|
111
113
|
"enabled": true,
|
|
112
114
|
"auto_trigger": true,
|
|
113
|
-
"automation_trigger": true
|
|
115
|
+
"automation_trigger": true,
|
|
116
|
+
"success_criteria": [
|
|
117
|
+
{
|
|
118
|
+
"entity_schema": "contract",
|
|
119
|
+
"attribute": "installment_amount"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"entity_schema": "billing_account",
|
|
123
|
+
"attribute": "due_date"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
114
126
|
}
|
|
115
127
|
]
|
|
116
128
|
}
|
|
@@ -168,7 +180,17 @@ const { data } = await client.getEvent({
|
|
|
168
180
|
},
|
|
169
181
|
"enabled": true,
|
|
170
182
|
"auto_trigger": true,
|
|
171
|
-
"automation_trigger": true
|
|
183
|
+
"automation_trigger": true,
|
|
184
|
+
"success_criteria": [
|
|
185
|
+
{
|
|
186
|
+
"entity_schema": "contract",
|
|
187
|
+
"attribute": "installment_amount"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"entity_schema": "billing_account",
|
|
191
|
+
"attribute": "due_date"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
172
194
|
}
|
|
173
195
|
```
|
|
174
196
|
|
|
@@ -219,7 +241,17 @@ const { data } = await client.patchEvent(
|
|
|
219
241
|
},
|
|
220
242
|
enabled: true,
|
|
221
243
|
auto_trigger: true,
|
|
222
|
-
automation_trigger: true
|
|
244
|
+
automation_trigger: true,
|
|
245
|
+
success_criteria: [
|
|
246
|
+
{
|
|
247
|
+
entity_schema: 'contract',
|
|
248
|
+
attribute: 'installment_amount'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
entity_schema: 'billing_account',
|
|
252
|
+
attribute: 'due_date'
|
|
253
|
+
}
|
|
254
|
+
]
|
|
223
255
|
},
|
|
224
256
|
)
|
|
225
257
|
```
|
|
@@ -260,7 +292,17 @@ const { data } = await client.patchEvent(
|
|
|
260
292
|
},
|
|
261
293
|
"enabled": true,
|
|
262
294
|
"auto_trigger": true,
|
|
263
|
-
"automation_trigger": true
|
|
295
|
+
"automation_trigger": true,
|
|
296
|
+
"success_criteria": [
|
|
297
|
+
{
|
|
298
|
+
"entity_schema": "contract",
|
|
299
|
+
"attribute": "installment_amount"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"entity_schema": "billing_account",
|
|
303
|
+
"attribute": "due_date"
|
|
304
|
+
}
|
|
305
|
+
]
|
|
264
306
|
}
|
|
265
307
|
```
|
|
266
308
|
|
|
@@ -726,6 +768,10 @@ type EventConfigBase = {
|
|
|
726
768
|
enabled?: boolean
|
|
727
769
|
auto_trigger?: boolean
|
|
728
770
|
automation_trigger?: boolean
|
|
771
|
+
success_criteria?: Array<{
|
|
772
|
+
entity_schema: string
|
|
773
|
+
attribute: string
|
|
774
|
+
}>
|
|
729
775
|
}
|
|
730
776
|
```
|
|
731
777
|
|
|
@@ -781,6 +827,10 @@ type EventConfig = {
|
|
|
781
827
|
enabled?: boolean
|
|
782
828
|
auto_trigger?: boolean
|
|
783
829
|
automation_trigger?: boolean
|
|
830
|
+
success_criteria?: Array<{
|
|
831
|
+
entity_schema: string
|
|
832
|
+
attribute: string
|
|
833
|
+
}>
|
|
784
834
|
}
|
|
785
835
|
```
|
|
786
836
|
|
|
@@ -788,7 +838,7 @@ type EventConfig = {
|
|
|
788
838
|
|
|
789
839
|
Payload for updating an event configuration.
|
|
790
840
|
Accepts the same fields as EventConfig (all optional for PATCH).
|
|
791
|
-
Currently `enabled` and `
|
|
841
|
+
Currently `enabled`, `auto_trigger` and `success_criteria` fields are processed.
|
|
792
842
|
|
|
793
843
|
|
|
794
844
|
```ts
|
|
@@ -839,6 +889,10 @@ type UpdateEventPayload = {
|
|
|
839
889
|
enabled?: boolean
|
|
840
890
|
auto_trigger?: boolean
|
|
841
891
|
automation_trigger?: boolean
|
|
892
|
+
success_criteria?: Array<{
|
|
893
|
+
entity_schema: string
|
|
894
|
+
attribute: string
|
|
895
|
+
}>
|
|
842
896
|
}
|
|
843
897
|
```
|
|
844
898
|
|
|
@@ -914,6 +968,22 @@ type SchemaField = {
|
|
|
914
968
|
}
|
|
915
969
|
```
|
|
916
970
|
|
|
971
|
+
### `SuccessCriterion`
|
|
972
|
+
|
|
973
|
+
A single org-defined success criterion: an entity attribute that must be captured
|
|
974
|
+
for this event's change request to be considered complete.
|
|
975
|
+
|
|
976
|
+
Identity is the entity schema plus the attribute name — mirroring the
|
|
977
|
+
EntityOperationTrigger `schema`/`attribute` vocabulary. On write (PATCH), both
|
|
978
|
+
`attribut
|
|
979
|
+
|
|
980
|
+
```ts
|
|
981
|
+
type SuccessCriterion = {
|
|
982
|
+
entity_schema: string
|
|
983
|
+
attribute: string
|
|
984
|
+
}
|
|
985
|
+
```
|
|
986
|
+
|
|
917
987
|
### `CommonEventMetadata`
|
|
918
988
|
|
|
919
989
|
Common metadata fields present in all event payloads
|
|
@@ -930,6 +1000,17 @@ JSON Schema declaring the event payload structure
|
|
|
930
1000
|
type EventJsonSchema = object
|
|
931
1001
|
```
|
|
932
1002
|
|
|
1003
|
+
### `InlineDowngradeStep`
|
|
1004
|
+
|
|
1005
|
+
One step of an event's inline `_downgrades` chain. Maps the current-version payload to the previous version via a JSONata expression. Stamped by Event Catalog at publish time; executed by consumers during walk-back, never by EC itself.
|
|
1006
|
+
|
|
1007
|
+
```ts
|
|
1008
|
+
type InlineDowngradeStep = {
|
|
1009
|
+
to: string
|
|
1010
|
+
jsonata: string
|
|
1011
|
+
}
|
|
1012
|
+
```
|
|
1013
|
+
|
|
933
1014
|
### `Event`
|
|
934
1015
|
|
|
935
1016
|
An event instance in the event history
|
|
@@ -945,6 +1026,10 @@ type Event = {
|
|
|
945
1026
|
_trigger_source_type?: string
|
|
946
1027
|
_trigger_source?: string
|
|
947
1028
|
_ack_id?: string
|
|
1029
|
+
_downgrades?: Array<{
|
|
1030
|
+
to: string
|
|
1031
|
+
jsonata: string
|
|
1032
|
+
}>
|
|
948
1033
|
}
|
|
949
1034
|
```
|
|
950
1035
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "JavaScript/TypeScript SDK for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -322,16 +322,6 @@
|
|
|
322
322
|
},
|
|
323
323
|
"./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
|
|
324
324
|
},
|
|
325
|
-
"scripts": {
|
|
326
|
-
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
327
|
-
"build": "tsup",
|
|
328
|
-
"build:watch": "tsup --watch",
|
|
329
|
-
"test": "vitest run",
|
|
330
|
-
"test:watch": "vitest",
|
|
331
|
-
"lint": "biome check src",
|
|
332
|
-
"lint:fix": "biome check src --fix",
|
|
333
|
-
"prepublishOnly": "npm run build"
|
|
334
|
-
},
|
|
335
325
|
"keywords": [
|
|
336
326
|
"epilot",
|
|
337
327
|
"sdk",
|
|
@@ -525,5 +515,14 @@
|
|
|
525
515
|
"./dist/apis/workflow-definition.d.ts"
|
|
526
516
|
]
|
|
527
517
|
}
|
|
518
|
+
},
|
|
519
|
+
"scripts": {
|
|
520
|
+
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
521
|
+
"build": "tsup",
|
|
522
|
+
"build:watch": "tsup --watch",
|
|
523
|
+
"test": "vitest run",
|
|
524
|
+
"test:watch": "vitest",
|
|
525
|
+
"lint": "biome check src",
|
|
526
|
+
"lint:fix": "biome check src --fix"
|
|
528
527
|
}
|
|
529
|
-
}
|
|
528
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}
|