@epilot/sdk 2.18.3 → 2.18.5
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/dashboard-runtime.json +1 -1
- package/definitions/dashboard.json +919 -48
- package/definitions/entity.json +27 -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 +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +8 -8
- package/dist/apis/dashboard.d.cts +2 -2
- package/dist/apis/dashboard.d.ts +2 -2
- package/dist/apis/dashboard.js +2 -2
- 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.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- 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/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-6XCKLP3T.js → chunk-5MIH4RZR.js} +3 -3
- package/dist/{chunk-5RAQKW2K.cjs → chunk-EWY5NKI7.cjs} +3 -3
- package/dist/chunk-TIRWWTDP.js +14 -0
- package/dist/chunk-VMCF5R6R.cjs +14 -0
- package/dist/dashboard-7QJ46I7N.cjs +7 -0
- package/dist/dashboard-ILXUFFF2.js +7 -0
- package/dist/{dashboard-runtime-EXP2AM44.cjs → dashboard-runtime-2LOASQPB.cjs} +2 -2
- package/dist/{dashboard-runtime-PSKSGLCF.js → dashboard-runtime-YMFNQP3M.js} +1 -1
- package/dist/dashboard.d-BSevFHjf.d.cts +1405 -0
- package/dist/dashboard.d-BSevFHjf.d.ts +1405 -0
- package/dist/entity-DBJ2R3UN.js +7 -0
- package/dist/entity-HO34WNFK.cjs +7 -0
- package/dist/{entity.d-CaFNmDfj.d.cts → entity.d-BOpXYCU2.d.cts} +66 -2
- package/dist/{entity.d-CaFNmDfj.d.ts → entity.d-BOpXYCU2.d.ts} +66 -2
- 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/docs/dashboard.md +1044 -180
- package/docs/entity.md +57 -13
- package/package.json +1 -1
- package/dist/chunk-M2UDF7PY.cjs +0 -14
- package/dist/chunk-SZMCMLOQ.js +0 -14
- package/dist/dashboard-UHYR5RTY.cjs +0 -7
- package/dist/dashboard-UTPGXFW5.js +0 -7
- package/dist/dashboard.d-CsGcA74I.d.cts +0 -440
- package/dist/dashboard.d-CsGcA74I.d.ts +0 -440
- package/dist/entity-IZHQB3JX.js +0 -7
- package/dist/entity-MYDUQBEE.cjs +0 -7
package/docs/entity.md
CHANGED
|
@@ -487,7 +487,11 @@ const { data } = await client.getSchema({
|
|
|
487
487
|
"columns": 0,
|
|
488
488
|
"cells": [0]
|
|
489
489
|
},
|
|
490
|
-
"widget_order": ["string"]
|
|
490
|
+
"widget_order": ["string"],
|
|
491
|
+
"widget_visibility": {
|
|
492
|
+
"next_best_action": true,
|
|
493
|
+
"address_map": false
|
|
494
|
+
}
|
|
491
495
|
},
|
|
492
496
|
"capabilities": [
|
|
493
497
|
{
|
|
@@ -495,6 +499,7 @@ const { data } = await client.getSchema({
|
|
|
495
499
|
"name": "customer_messaging",
|
|
496
500
|
"title": "Messaging",
|
|
497
501
|
"attributes": [],
|
|
502
|
+
"variant_overridable": false,
|
|
498
503
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
499
504
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
500
505
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -640,7 +645,11 @@ const { data } = await client.putSchema(
|
|
|
640
645
|
columns: 0,
|
|
641
646
|
cells: [0]
|
|
642
647
|
},
|
|
643
|
-
widget_order: ['string']
|
|
648
|
+
widget_order: ['string'],
|
|
649
|
+
widget_visibility: {
|
|
650
|
+
next_best_action: true,
|
|
651
|
+
address_map: false
|
|
652
|
+
}
|
|
644
653
|
},
|
|
645
654
|
capabilities: [
|
|
646
655
|
{
|
|
@@ -648,6 +657,7 @@ const { data } = await client.putSchema(
|
|
|
648
657
|
name: 'customer_messaging',
|
|
649
658
|
title: 'Messaging',
|
|
650
659
|
attributes: [ /* ... */ ],
|
|
660
|
+
variant_overridable: false,
|
|
651
661
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
652
662
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
653
663
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -793,7 +803,11 @@ const { data } = await client.putSchema(
|
|
|
793
803
|
"columns": 0,
|
|
794
804
|
"cells": [0]
|
|
795
805
|
},
|
|
796
|
-
"widget_order": ["string"]
|
|
806
|
+
"widget_order": ["string"],
|
|
807
|
+
"widget_visibility": {
|
|
808
|
+
"next_best_action": true,
|
|
809
|
+
"address_map": false
|
|
810
|
+
}
|
|
797
811
|
},
|
|
798
812
|
"capabilities": [
|
|
799
813
|
{
|
|
@@ -801,6 +815,7 @@ const { data } = await client.putSchema(
|
|
|
801
815
|
"name": "customer_messaging",
|
|
802
816
|
"title": "Messaging",
|
|
803
817
|
"attributes": [],
|
|
818
|
+
"variant_overridable": false,
|
|
804
819
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
805
820
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
806
821
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -1238,7 +1253,11 @@ const { data } = await client.freezeSchema(
|
|
|
1238
1253
|
"columns": 0,
|
|
1239
1254
|
"cells": [0]
|
|
1240
1255
|
},
|
|
1241
|
-
"widget_order": ["string"]
|
|
1256
|
+
"widget_order": ["string"],
|
|
1257
|
+
"widget_visibility": {
|
|
1258
|
+
"next_best_action": true,
|
|
1259
|
+
"address_map": false
|
|
1260
|
+
}
|
|
1242
1261
|
},
|
|
1243
1262
|
"capabilities": [
|
|
1244
1263
|
{
|
|
@@ -1246,6 +1265,7 @@ const { data } = await client.freezeSchema(
|
|
|
1246
1265
|
"name": "customer_messaging",
|
|
1247
1266
|
"title": "Messaging",
|
|
1248
1267
|
"attributes": [],
|
|
1268
|
+
"variant_overridable": false,
|
|
1249
1269
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1250
1270
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1251
1271
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -1405,7 +1425,11 @@ const { data } = await client.unfreezeSchema({
|
|
|
1405
1425
|
"columns": 0,
|
|
1406
1426
|
"cells": [0]
|
|
1407
1427
|
},
|
|
1408
|
-
"widget_order": ["string"]
|
|
1428
|
+
"widget_order": ["string"],
|
|
1429
|
+
"widget_visibility": {
|
|
1430
|
+
"next_best_action": true,
|
|
1431
|
+
"address_map": false
|
|
1432
|
+
}
|
|
1409
1433
|
},
|
|
1410
1434
|
"capabilities": [
|
|
1411
1435
|
{
|
|
@@ -1413,6 +1437,7 @@ const { data } = await client.unfreezeSchema({
|
|
|
1413
1437
|
"name": "customer_messaging",
|
|
1414
1438
|
"title": "Messaging",
|
|
1415
1439
|
"attributes": [],
|
|
1440
|
+
"variant_overridable": false,
|
|
1416
1441
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1417
1442
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1418
1443
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -1518,6 +1543,7 @@ const { data } = await client.listAvailableCapabilities({
|
|
|
1518
1543
|
"name": "customer_messaging",
|
|
1519
1544
|
"title": "Messaging",
|
|
1520
1545
|
"attributes": [],
|
|
1546
|
+
"variant_overridable": false,
|
|
1521
1547
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
1522
1548
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
1523
1549
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -5164,6 +5190,7 @@ const { data } = await client.createSchemaCapability(
|
|
|
5164
5190
|
},
|
|
5165
5191
|
/* ... 33 more */
|
|
5166
5192
|
],
|
|
5193
|
+
variant_overridable: false,
|
|
5167
5194
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
5168
5195
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
5169
5196
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -5186,7 +5213,9 @@ const { data } = await client.createSchemaCapability(
|
|
|
5186
5213
|
icon: 'email',
|
|
5187
5214
|
disabled: true,
|
|
5188
5215
|
header: true,
|
|
5189
|
-
requiredPermission: { /* ... */ }
|
|
5216
|
+
requiredPermission: { /* ... */ },
|
|
5217
|
+
default_visible: false,
|
|
5218
|
+
pricing_tier_setting: 'entity_address_maps'
|
|
5190
5219
|
}
|
|
5191
5220
|
],
|
|
5192
5221
|
feature_flag: 'FF_MY_FEATURE_FLAG',
|
|
@@ -5296,6 +5325,7 @@ const { data } = await client.createSchemaCapability(
|
|
|
5296
5325
|
"type": "link"
|
|
5297
5326
|
}
|
|
5298
5327
|
],
|
|
5328
|
+
"variant_overridable": false,
|
|
5299
5329
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5300
5330
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5301
5331
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -5318,7 +5348,9 @@ const { data } = await client.createSchemaCapability(
|
|
|
5318
5348
|
"icon": "email",
|
|
5319
5349
|
"disabled": true,
|
|
5320
5350
|
"header": true,
|
|
5321
|
-
"requiredPermission": {}
|
|
5351
|
+
"requiredPermission": {},
|
|
5352
|
+
"default_visible": false,
|
|
5353
|
+
"pricing_tier_setting": "entity_address_maps"
|
|
5322
5354
|
}
|
|
5323
5355
|
],
|
|
5324
5356
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -5443,6 +5475,7 @@ const { data } = await client.getSchemaCapability({
|
|
|
5443
5475
|
"type": "link"
|
|
5444
5476
|
}
|
|
5445
5477
|
],
|
|
5478
|
+
"variant_overridable": false,
|
|
5446
5479
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5447
5480
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5448
5481
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -5465,7 +5498,9 @@ const { data } = await client.getSchemaCapability({
|
|
|
5465
5498
|
"icon": "email",
|
|
5466
5499
|
"disabled": true,
|
|
5467
5500
|
"header": true,
|
|
5468
|
-
"requiredPermission": {}
|
|
5501
|
+
"requiredPermission": {},
|
|
5502
|
+
"default_visible": false,
|
|
5503
|
+
"pricing_tier_setting": "entity_address_maps"
|
|
5469
5504
|
}
|
|
5470
5505
|
],
|
|
5471
5506
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -5586,6 +5621,7 @@ const { data } = await client.putSchemaCapability(
|
|
|
5586
5621
|
},
|
|
5587
5622
|
/* ... 33 more */
|
|
5588
5623
|
],
|
|
5624
|
+
variant_overridable: false,
|
|
5589
5625
|
_purpose: ['taxonomy-slug:classification-slug'],
|
|
5590
5626
|
_manifest: ['123e4567-e89b-12d3-a456-426614174000'],
|
|
5591
5627
|
app_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
@@ -5608,7 +5644,9 @@ const { data } = await client.putSchemaCapability(
|
|
|
5608
5644
|
icon: 'email',
|
|
5609
5645
|
disabled: true,
|
|
5610
5646
|
header: true,
|
|
5611
|
-
requiredPermission: { /* ... */ }
|
|
5647
|
+
requiredPermission: { /* ... */ },
|
|
5648
|
+
default_visible: false,
|
|
5649
|
+
pricing_tier_setting: 'entity_address_maps'
|
|
5612
5650
|
}
|
|
5613
5651
|
],
|
|
5614
5652
|
feature_flag: 'FF_MY_FEATURE_FLAG',
|
|
@@ -5718,6 +5756,7 @@ const { data } = await client.putSchemaCapability(
|
|
|
5718
5756
|
"type": "link"
|
|
5719
5757
|
}
|
|
5720
5758
|
],
|
|
5759
|
+
"variant_overridable": false,
|
|
5721
5760
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5722
5761
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5723
5762
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -5740,7 +5779,9 @@ const { data } = await client.putSchemaCapability(
|
|
|
5740
5779
|
"icon": "email",
|
|
5741
5780
|
"disabled": true,
|
|
5742
5781
|
"header": true,
|
|
5743
|
-
"requiredPermission": {}
|
|
5782
|
+
"requiredPermission": {},
|
|
5783
|
+
"default_visible": false,
|
|
5784
|
+
"pricing_tier_setting": "entity_address_maps"
|
|
5744
5785
|
}
|
|
5745
5786
|
],
|
|
5746
5787
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -5865,6 +5906,7 @@ const { data } = await client.deleteSchemaCapability({
|
|
|
5865
5906
|
"type": "link"
|
|
5866
5907
|
}
|
|
5867
5908
|
],
|
|
5909
|
+
"variant_overridable": false,
|
|
5868
5910
|
"_purpose": ["taxonomy-slug:classification-slug"],
|
|
5869
5911
|
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
5870
5912
|
"app_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
@@ -5887,7 +5929,9 @@ const { data } = await client.deleteSchemaCapability({
|
|
|
5887
5929
|
"icon": "email",
|
|
5888
5930
|
"disabled": true,
|
|
5889
5931
|
"header": true,
|
|
5890
|
-
"requiredPermission": {}
|
|
5932
|
+
"requiredPermission": {},
|
|
5933
|
+
"default_visible": false,
|
|
5934
|
+
"pricing_tier_setting": "entity_address_maps"
|
|
5891
5935
|
}
|
|
5892
5936
|
],
|
|
5893
5937
|
"feature_flag": "FF_MY_FEATURE_FLAG",
|
|
@@ -6423,6 +6467,7 @@ type EntitySchema = {
|
|
|
6423
6467
|
cells?: { ... }
|
|
6424
6468
|
}
|
|
6425
6469
|
widget_order?: string[]
|
|
6470
|
+
widget_visibility?: Record<string, boolean>
|
|
6426
6471
|
}
|
|
6427
6472
|
capabilities: Array<{
|
|
6428
6473
|
id?: string
|
|
@@ -6451,7 +6496,6 @@ type EntitySchema = {
|
|
|
6451
6496
|
_purpose?: { ... }
|
|
6452
6497
|
_manifest?: { ... }
|
|
6453
6498
|
constraints?: { ... }
|
|
6454
|
-
feature_flag?: { ... }
|
|
6455
6499
|
// ...
|
|
6456
6500
|
}
|
|
6457
6501
|
```
|
|
@@ -6541,6 +6585,7 @@ type EntitySchemaItem = {
|
|
|
6541
6585
|
cells?: { ... }
|
|
6542
6586
|
}
|
|
6543
6587
|
widget_order?: string[]
|
|
6588
|
+
widget_visibility?: Record<string, boolean>
|
|
6544
6589
|
}
|
|
6545
6590
|
capabilities: Array<{
|
|
6546
6591
|
id?: string
|
|
@@ -6558,7 +6603,6 @@ type EntitySchemaItem = {
|
|
|
6558
6603
|
readonly?: { ... }
|
|
6559
6604
|
deprecated?: { ... }
|
|
6560
6605
|
variant_overridable?: { ... }
|
|
6561
|
-
default_value?: { ... }
|
|
6562
6606
|
// ...
|
|
6563
6607
|
}
|
|
6564
6608
|
```
|
package/package.json
CHANGED
package/dist/chunk-M2UDF7PY.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
-
|
|
5
|
-
// src/definitions/dashboard-runtime.json
|
|
6
|
-
var require_dashboard_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
-
"src/definitions/dashboard-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://dashboard.sls.epilot.io", o: [["listDashboards", "get", "/v1/dashboard/dashboards"], ["createDashboard", "post", "/v1/dashboard/dashboards", null, 1], ["getDashboard", "get", "/v1/dashboard/dashboards/{id}"], ["putDashboard", "put", "/v1/dashboard/dashboards/{id}", null, 1], ["deleteDashboard", "delete", "/v1/dashboard/dashboards/{id}"], ["listAvailableVisualisations", "get", "/v1/dashboard/visualisations"], ["listAvailableExamples", "get", "/v1/dashboard/examples"]], v: "3.0.0", pp: { "/v1/dashboard/dashboards/{id}": [["id", "p", true]] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.require_dashboard_runtime = require_dashboard_runtime;
|
package/dist/chunk-SZMCMLOQ.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-YPSWSI3M.js";
|
|
4
|
-
|
|
5
|
-
// src/definitions/dashboard-runtime.json
|
|
6
|
-
var require_dashboard_runtime = __commonJS({
|
|
7
|
-
"src/definitions/dashboard-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://dashboard.sls.epilot.io", o: [["listDashboards", "get", "/v1/dashboard/dashboards"], ["createDashboard", "post", "/v1/dashboard/dashboards", null, 1], ["getDashboard", "get", "/v1/dashboard/dashboards/{id}"], ["putDashboard", "put", "/v1/dashboard/dashboards/{id}", null, 1], ["deleteDashboard", "delete", "/v1/dashboard/dashboards/{id}"], ["listAvailableVisualisations", "get", "/v1/dashboard/visualisations"], ["listAvailableExamples", "get", "/v1/dashboard/examples"]], v: "3.0.0", pp: { "/v1/dashboard/dashboards/{id}": [["id", "p", true]] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
require_dashboard_runtime
|
|
14
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
-
|
|
3
|
-
// src/docs/dashboard.json
|
|
4
|
-
var dashboard_default = '# Dashboard API\n\n- **Base URL:** `https://dashboard.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/dashboard](https://docs.epilot.io/api/dashboard)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dashboard.listDashboards(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/dashboard\'\n\nconst dashboardClient = getClient()\nauthorize(dashboardClient, () => \'<token>\')\nconst { data } = await dashboardClient.listDashboards(...)\n```\n\n## Operations\n\n**Dashboards**\n- [`listDashboards`](#listdashboards)\n- [`createDashboard`](#createdashboard)\n- [`getDashboard`](#getdashboard)\n- [`putDashboard`](#putdashboard)\n- [`deleteDashboard`](#deletedashboard)\n\n**Visualisations**\n- [`listAvailableVisualisations`](#listavailablevisualisations)\n\n**Examples**\n- [`listAvailableExamples`](#listavailableexamples)\n\n**Schemas**\n- [`DashboardID`](#dashboardid)\n- [`Dashboard`](#dashboard)\n- [`DashboardTileID`](#dashboardtileid)\n- [`DashboardTile`](#dashboardtile)\n- [`VisualisationConfig`](#visualisationconfig)\n- [`timechartVisualisationConfig`](#timechartvisualisationconfig)\n- [`ExampleID`](#exampleid)\n- [`Example`](#example)\n- [`DatalakeQuery`](#datalakequery)\n- [`VisualisationId`](#visualisationid)\n- [`Visualisation`](#visualisation)\n\n### `listDashboards`\n\nList dashboards available to the user\n\n`GET /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.listDashboards()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createDashboard`\n\nCreate new dashboard\n\n`POST /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.createDashboard(\n null,\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n visualisation: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n filters: [\n {\n operation: [\'createEntity\']\n },\n {\n entity_schema: [\'opportunity\']\n }\n ],\n dimensions: [\n {\n time_with_granularity: \'month\'\n },\n {\n entity_attribute: \'source.title\'\n }\n ]\n },\n options: {\n type: \'line\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getDashboard`\n\nGet dashboard by ID\n\n`GET /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.getDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `putDashboard`\n\nUpdate a dashboard by ID\n\n`PUT /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.putDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n visualisation: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n filters: [\n {\n operation: [\'createEntity\']\n },\n {\n entity_schema: [\'opportunity\']\n }\n ],\n dimensions: [\n {\n time_with_granularity: \'month\'\n },\n {\n entity_attribute: \'source.title\'\n }\n ]\n },\n options: {\n type: \'line\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `deleteDashboard`\n\nDelete a dashboard by ID\n\n`DELETE /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.deleteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableVisualisations`\n\nReturns list of available Visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/visualisations`\n\n```ts\nconst { data } = await client.listAvailableVisualisations()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "visualisation": "timechart",\n "title": "Time Series Visualisation",\n "description": "Visualise your metrics with respect to time series",\n "package_name": "@epilot360/highcharts"\n },\n {\n "visualisation": "kpi",\n "title": "KPI Visualisation",\n "description": "Visualise your key performance indicators",\n "package_name": "@epilot360/kpi"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableExamples`\n\nReturns list of available exampless for visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/examples`\n\n```ts\nconst { data } = await client.listAvailableExamples()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "title": "Number of opportunities created by journeys every month",\n "visualisation": "timechart",\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `DashboardID`\n\nUnique identifier for dashboard\n\n```ts\ntype DashboardID = string // uuid\n```\n\n### `Dashboard`\n\nAdashboard configuration with tiles\n\n```ts\ntype Dashboard = {\n id?: string // uuid\n title: string\n tiles: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n}\n```\n\n### `DashboardTileID`\n\nUnique identifier for a tile in a dashboard\n\n```ts\ntype DashboardTileID = string // uuid\n```\n\n### `DashboardTile`\n\n```ts\ntype DashboardTile = {\n id?: string // uuid\n coordinates?: object\n title?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n}\n```\n\n### `VisualisationConfig`\n\n```ts\ntype VisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `timechartVisualisationConfig`\n\n```ts\ntype timechartVisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `ExampleID`\n\nUnique identifier for a visualisation examples for tiles in a dashboard\n\n```ts\ntype ExampleID = string // uuid\n```\n\n### `Example`\n\n```ts\ntype Example = {\n id?: string // uuid\n title?: string\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n}\n```\n\n### `DatalakeQuery`\n\n```ts\ntype DatalakeQuery = {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n}\n```\n\n### `VisualisationId`\n\nUnique identifier for a Visualisation\n\n```ts\ntype VisualisationId = "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n```\n\n### `Visualisation`\n\nA Visualisation that can be used to configure tiles in dashboards\n\n```ts\ntype Visualisation = {\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n title?: string\n description?: string\n package_name?: string\n import_url?: string // uri\n}\n```\n';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = dashboard_default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./chunk-YPSWSI3M.js";
|
|
2
|
-
|
|
3
|
-
// src/docs/dashboard.json
|
|
4
|
-
var dashboard_default = '# Dashboard API\n\n- **Base URL:** `https://dashboard.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/dashboard](https://docs.epilot.io/api/dashboard)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dashboard.listDashboards(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/dashboard\'\n\nconst dashboardClient = getClient()\nauthorize(dashboardClient, () => \'<token>\')\nconst { data } = await dashboardClient.listDashboards(...)\n```\n\n## Operations\n\n**Dashboards**\n- [`listDashboards`](#listdashboards)\n- [`createDashboard`](#createdashboard)\n- [`getDashboard`](#getdashboard)\n- [`putDashboard`](#putdashboard)\n- [`deleteDashboard`](#deletedashboard)\n\n**Visualisations**\n- [`listAvailableVisualisations`](#listavailablevisualisations)\n\n**Examples**\n- [`listAvailableExamples`](#listavailableexamples)\n\n**Schemas**\n- [`DashboardID`](#dashboardid)\n- [`Dashboard`](#dashboard)\n- [`DashboardTileID`](#dashboardtileid)\n- [`DashboardTile`](#dashboardtile)\n- [`VisualisationConfig`](#visualisationconfig)\n- [`timechartVisualisationConfig`](#timechartvisualisationconfig)\n- [`ExampleID`](#exampleid)\n- [`Example`](#example)\n- [`DatalakeQuery`](#datalakequery)\n- [`VisualisationId`](#visualisationid)\n- [`Visualisation`](#visualisation)\n\n### `listDashboards`\n\nList dashboards available to the user\n\n`GET /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.listDashboards()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createDashboard`\n\nCreate new dashboard\n\n`POST /v1/dashboard/dashboards`\n\n```ts\nconst { data } = await client.createDashboard(\n null,\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n visualisation: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n filters: [\n {\n operation: [\'createEntity\']\n },\n {\n entity_schema: [\'opportunity\']\n }\n ],\n dimensions: [\n {\n time_with_granularity: \'month\'\n },\n {\n entity_attribute: \'source.title\'\n }\n ]\n },\n options: {\n type: \'line\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getDashboard`\n\nGet dashboard by ID\n\n`GET /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.getDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `putDashboard`\n\nUpdate a dashboard by ID\n\n`PUT /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.putDashboard(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'3fa85f64-5717-4562-b3fc-2c963f66afa6\',\n title: \'Employee Dashboard\',\n tiles: [\n {\n id: \'e4af1297-1fd6-440f-9846-f475f580d40f\',\n coordinates: {},\n visualisation: \'timechart\',\n visualisation_config: {\n query: {\n dataset: \'entity_operations\',\n measure: \'count_operations\',\n filters: [\n {\n operation: [\'createEntity\']\n },\n {\n entity_schema: [\'opportunity\']\n }\n ],\n dimensions: [\n {\n time_with_granularity: \'month\'\n },\n {\n entity_attribute: \'source.title\'\n }\n ]\n },\n options: {\n type: \'line\'\n }\n }\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `deleteDashboard`\n\nDelete a dashboard by ID\n\n`DELETE /v1/dashboard/dashboards/{id}`\n\n```ts\nconst { data } = await client.deleteDashboard({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "title": "Employee Dashboard",\n "tiles": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "coordinates": {},\n "visualisation": "timechart",\n "visualisation_config": {\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "filters": [\n {\n "operation": ["createEntity"]\n },\n {\n "entity_schema": ["opportunity"]\n }\n ],\n "dimensions": [\n {\n "time_with_granularity": "month"\n },\n {\n "entity_attribute": "source.title"\n }\n ]\n },\n "options": {\n "type": "line"\n }\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableVisualisations`\n\nReturns list of available Visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/visualisations`\n\n```ts\nconst { data } = await client.listAvailableVisualisations()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "visualisation": "timechart",\n "title": "Time Series Visualisation",\n "description": "Visualise your metrics with respect to time series",\n "package_name": "@epilot360/highcharts"\n },\n {\n "visualisation": "kpi",\n "title": "KPI Visualisation",\n "description": "Visualise your key performance indicators",\n "package_name": "@epilot360/kpi"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listAvailableExamples`\n\nReturns list of available exampless for visualisations to configure new dashboard tiles\n\n`GET /v1/dashboard/examples`\n\n```ts\nconst { data } = await client.listAvailableExamples()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "e4af1297-1fd6-440f-9846-f475f580d40f",\n "title": "Number of opportunities created by journeys every month",\n "visualisation": "timechart",\n "query": {\n "dataset": "entity_operations",\n "measure": "count_operations",\n "dimensions": [\n {\n "time_with_granularity": "year-month"\n }\n ],\n "filters": [\n {\n "entity_schema": "opportunity"\n }\n ]\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `DashboardID`\n\nUnique identifier for dashboard\n\n```ts\ntype DashboardID = string // uuid\n```\n\n### `Dashboard`\n\nAdashboard configuration with tiles\n\n```ts\ntype Dashboard = {\n id?: string // uuid\n title: string\n tiles: Array<{\n id?: string // uuid\n coordinates?: object\n title?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: { ... }\n options?: { ... }\n }\n }>\n}\n```\n\n### `DashboardTileID`\n\nUnique identifier for a tile in a dashboard\n\n```ts\ntype DashboardTileID = string // uuid\n```\n\n### `DashboardTile`\n\n```ts\ntype DashboardTile = {\n id?: string // uuid\n coordinates?: object\n title?: string\n visualisation_id?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n visualisation_config?: {\n query?: {\n dataset?: { ... }\n measure?: { ... }\n dimensions?: { ... }\n filters?: { ... }\n }\n options?: Record<string, unknown>\n }\n}\n```\n\n### `VisualisationConfig`\n\n```ts\ntype VisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `timechartVisualisationConfig`\n\n```ts\ntype timechartVisualisationConfig = {\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n options?: Record<string, unknown>\n}\n```\n\n### `ExampleID`\n\nUnique identifier for a visualisation examples for tiles in a dashboard\n\n```ts\ntype ExampleID = string // uuid\n```\n\n### `Example`\n\n```ts\ntype Example = {\n id?: string // uuid\n title?: string\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n query?: {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n }\n}\n```\n\n### `DatalakeQuery`\n\n```ts\ntype DatalakeQuery = {\n dataset?: string\n measure?: string\n dimensions?: Record<string, unknown>[]\n filters?: Record<string, unknown>[]\n}\n```\n\n### `VisualisationId`\n\nUnique identifier for a Visualisation\n\n```ts\ntype VisualisationId = "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n```\n\n### `Visualisation`\n\nA Visualisation that can be used to configure tiles in dashboards\n\n```ts\ntype Visualisation = {\n visualisation?: "kpi" | "funnel" | "toplist" | "timechart" | "pie" | "bar" | "entity_list" | "markdown" | "news_feed" | "workflow"\n title?: string\n description?: string\n package_name?: string\n import_url?: string // uri\n}\n```\n';
|
|
5
|
-
export {
|
|
6
|
-
dashboard_default as default
|
|
7
|
-
};
|