@epilot/sdk 2.15.4 → 2.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/definitions/customer-portal-runtime.json +1 -1
  2. package/definitions/customer-portal.json +280 -3
  3. package/definitions/pricing.json +14 -0
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +8 -8
  29. package/dist/apis/customer-portal.d.cts +2 -2
  30. package/dist/apis/customer-portal.d.ts +2 -2
  31. package/dist/apis/customer-portal.js +2 -2
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +6 -6
  81. package/dist/apis/pricing.d.cts +2 -2
  82. package/dist/apis/pricing.d.ts +2 -2
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/{chunk-7LWNOS5V.js → chunk-6DBGRVEF.js} +3 -3
  113. package/dist/{chunk-L4XLUNUO.js → chunk-EPDH37RS.js} +1 -1
  114. package/dist/{chunk-IZ52TBS7.cjs → chunk-LKV3RKOP.cjs} +1 -1
  115. package/dist/{chunk-E7FFVRBQ.cjs → chunk-VBTUFDXY.cjs} +3 -3
  116. package/dist/customer-portal-JDIXJD6C.cjs +7 -0
  117. package/dist/customer-portal-WIRQ7UCN.js +7 -0
  118. package/dist/{customer-portal-runtime-SOZ4QOVZ.cjs → customer-portal-runtime-7WW3YRWJ.cjs} +2 -2
  119. package/dist/{customer-portal-runtime-QM3MLBPV.js → customer-portal-runtime-FZQLCEJQ.js} +1 -1
  120. package/dist/{customer-portal.d-DsB3qJro.d.cts → customer-portal.d-JVkJjm_e.d.cts} +225 -5
  121. package/dist/{customer-portal.d-DsB3qJro.d.ts → customer-portal.d-JVkJjm_e.d.ts} +225 -5
  122. package/dist/index.cjs +10 -10
  123. package/dist/index.d.cts +2 -2
  124. package/dist/index.d.ts +2 -2
  125. package/dist/index.js +2 -2
  126. package/dist/pricing-CXWAKLA6.js +7 -0
  127. package/dist/pricing-L7VUML4H.cjs +7 -0
  128. package/dist/{pricing.d-gPt5L7wp.d.cts → pricing.d-BgjfwicJ.d.cts} +22 -1
  129. package/dist/{pricing.d-gPt5L7wp.d.ts → pricing.d-BgjfwicJ.d.ts} +22 -1
  130. package/docs/customer-portal.md +216 -0
  131. package/docs/pricing.md +11 -0
  132. package/package.json +1 -1
  133. package/dist/customer-portal-7ZNROWXS.js +0 -7
  134. package/dist/customer-portal-ZW4I52KG.cjs +0 -7
  135. package/dist/pricing-5Y7TZHMR.js +0 -7
  136. package/dist/pricing-BJUABPHU.cjs +0 -7
@@ -140,6 +140,7 @@ const { data } = await customerPortalClient.upsertPortal(...)
140
140
  - [`getAutomationContext`](#getautomationcontext)
141
141
  - [`updateWorkflowStepAsDone`](#updateworkflowstepasdone)
142
142
  - [`getEntityWorkflows`](#getentityworkflows)
143
+ - [`getEntityPortalWorkflows`](#getentityportalworkflows)
143
144
  - [`uploadMeterReadingPhoto`](#uploadmeterreadingphoto)
144
145
  - [`createMeterReading`](#createmeterreading)
145
146
  - [`getAllowedMeterReadingRange`](#getallowedmeterreadingrange)
@@ -253,6 +254,9 @@ const { data } = await customerPortalClient.upsertPortal(...)
253
254
  - [`ExternalLink`](#externallink)
254
255
  - [`WorkflowExecution`](#workflowexecution)
255
256
  - [`WorkflowStep`](#workflowstep)
257
+ - [`PortalWorkflow`](#portalworkflow)
258
+ - [`PortalWorkflowTask`](#portalworkflowtask)
259
+ - [`PortalTaskConfig`](#portaltaskconfig)
256
260
  - [`BaseBillingEvent`](#basebillingevent)
257
261
  - [`InstallmentEvent`](#installmentevent)
258
262
  - [`ReimbursementEvent`](#reimbursementevent)
@@ -6442,6 +6446,95 @@ const { data } = await client.getEntityWorkflows({
6442
6446
 
6443
6447
  ---
6444
6448
 
6449
+ ### `getEntityPortalWorkflows`
6450
+
6451
+ Get linearized workflows for an entity
6452
+
6453
+ `GET /v2/portal/entity/{slug}/{id}/workflows/linearized`
6454
+
6455
+ ```ts
6456
+ const { data } = await client.getEntityPortalWorkflows({
6457
+ slug: 'example',
6458
+ id: '123e4567-e89b-12d3-a456-426614174000',
6459
+ })
6460
+ ```
6461
+
6462
+ <details>
6463
+ <summary>Response</summary>
6464
+
6465
+ ```json
6466
+ {
6467
+ "portal_workflows": [
6468
+ {
6469
+ "id": "string",
6470
+ "definition_id": "string",
6471
+ "name": "string",
6472
+ "status": "STARTED",
6473
+ "version": 2,
6474
+ "created_at": "string",
6475
+ "updated_at": "string",
6476
+ "completed_at": "string",
6477
+ "due_date": "string",
6478
+ "assigned_to": ["string"],
6479
+ "contexts": [
6480
+ {
6481
+ "entity_id": "string",
6482
+ "entity_schema": "string",
6483
+ "is_primary": true
6484
+ }
6485
+ ],
6486
+ "is_path_complete": true,
6487
+ "tasks": [
6488
+ {
6489
+ "id": "string",
6490
+ "name": "string",
6491
+ "order": 0,
6492
+ "status": "COMPLETED",
6493
+ "is_active": true,
6494
+ "ecp": {
6495
+ "enabled": true,
6496
+ "label": "string",
6497
+ "description": "string",
6498
+ "journey": {
6499
+ "id": "string",
6500
+ "journeyId": "string",
6501
+ "name": "string",
6502
+ "complete_task_automatically": true
6503
+ }
6504
+ },
6505
+ "installer": {
6506
+ "enabled": true,
6507
+ "label": "string",
6508
+ "description": "string",
6509
+ "journey": {
6510
+ "id": "string",
6511
+ "journeyId": "string",
6512
+ "name": "string",
6513
+ "complete_task_automatically": true
6514
+ }
6515
+ },
6516
+ "journey": {
6517
+ "id": "string",
6518
+ "journeyId": "string",
6519
+ "name": "string",
6520
+ "complete_task_automatically": true
6521
+ },
6522
+ "assigned_to": ["string"],
6523
+ "phase_id": "string",
6524
+ "phase_name": "string",
6525
+ "completed_at": "string",
6526
+ "updated_at": "string"
6527
+ }
6528
+ ]
6529
+ }
6530
+ ]
6531
+ }
6532
+ ```
6533
+
6534
+ </details>
6535
+
6536
+ ---
6537
+
6445
6538
  ### `uploadMeterReadingPhoto`
6446
6539
 
6447
6540
  Upload Meter Reading Photo
@@ -11940,6 +12033,129 @@ type WorkflowExecution = Record<string, unknown>
11940
12033
  type WorkflowStep = Record<string, unknown>
11941
12034
  ```
11942
12035
 
12036
+ ### `PortalWorkflow`
12037
+
12038
+ A portal-facing projection of a workflow execution (V1 or V2), with the execution
12039
+ graph already linearized by the Workflows API into a flat, ordered list of
12040
+ portal-visible tasks.
12041
+
12042
+
12043
+ ```ts
12044
+ type PortalWorkflow = {
12045
+ id: string
12046
+ definition_id?: string
12047
+ name: string
12048
+ status: "STARTED" | "DONE" | "CLOSED"
12049
+ version: 2 | 3
12050
+ created_at?: string
12051
+ updated_at?: string
12052
+ completed_at?: string
12053
+ due_date?: string
12054
+ assigned_to?: string[]
12055
+ contexts?: Array<{
12056
+ entity_id?: string
12057
+ entity_schema?: string
12058
+ is_primary?: boolean
12059
+ }>
12060
+ is_path_complete: boolean
12061
+ tasks: Array<{
12062
+ id: string
12063
+ name: string
12064
+ order: number
12065
+ status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
12066
+ is_active: boolean
12067
+ ecp?: {
12068
+ enabled?: { ... }
12069
+ label?: { ... }
12070
+ description?: { ... }
12071
+ journey?: { ... }
12072
+ }
12073
+ installer?: {
12074
+ enabled?: { ... }
12075
+ label?: { ... }
12076
+ description?: { ... }
12077
+ journey?: { ... }
12078
+ }
12079
+ journey?: {
12080
+ id?: { ... }
12081
+ journeyId?: { ... }
12082
+ name?: { ... }
12083
+ complete_task_automatically?: { ... }
12084
+ }
12085
+ assigned_to?: string[]
12086
+ phase_id?: string
12087
+ phase_name?: string
12088
+ completed_at?: string
12089
+ updated_at?: string
12090
+ }>
12091
+ }
12092
+ ```
12093
+
12094
+ ### `PortalWorkflowTask`
12095
+
12096
+ A single portal-visible task of a linearized workflow execution
12097
+
12098
+ ```ts
12099
+ type PortalWorkflowTask = {
12100
+ id: string
12101
+ name: string
12102
+ order: number
12103
+ status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
12104
+ is_active: boolean
12105
+ ecp?: {
12106
+ enabled?: boolean
12107
+ label?: string
12108
+ description?: string
12109
+ journey?: {
12110
+ id?: { ... }
12111
+ journeyId?: { ... }
12112
+ name?: { ... }
12113
+ complete_task_automatically?: { ... }
12114
+ }
12115
+ }
12116
+ installer?: {
12117
+ enabled?: boolean
12118
+ label?: string
12119
+ description?: string
12120
+ journey?: {
12121
+ id?: { ... }
12122
+ journeyId?: { ... }
12123
+ name?: { ... }
12124
+ complete_task_automatically?: { ... }
12125
+ }
12126
+ }
12127
+ journey?: {
12128
+ id?: string
12129
+ journeyId?: string
12130
+ name?: string
12131
+ complete_task_automatically?: boolean
12132
+ }
12133
+ assigned_to?: string[]
12134
+ phase_id?: string
12135
+ phase_name?: string
12136
+ completed_at?: string
12137
+ updated_at?: string
12138
+ }
12139
+ ```
12140
+
12141
+ ### `PortalTaskConfig`
12142
+
12143
+ Portal-specific (ECP / installer) display config of a workflow task
12144
+
12145
+ ```ts
12146
+ type PortalTaskConfig = {
12147
+ enabled?: boolean
12148
+ label?: string
12149
+ description?: string
12150
+ journey?: {
12151
+ id?: string
12152
+ journeyId?: string
12153
+ name?: string
12154
+ complete_task_automatically?: boolean
12155
+ }
12156
+ }
12157
+ ```
12158
+
11943
12159
  ### `BaseBillingEvent`
11944
12160
 
11945
12161
  A base billing event to be inherited by all billing events.
package/docs/pricing.md CHANGED
@@ -86,6 +86,7 @@ const { data } = await pricingClient.$calculatePricingDetails(...)
86
86
  - [`ExternalFeeMappings`](#externalfeemappings)
87
87
  - [`ExternalFeeMapping`](#externalfeemapping)
88
88
  - [`CatalogSearch`](#catalogsearch)
89
+ - [`CatalogFieldsParam`](#catalogfieldsparam)
89
90
  - [`CatalogSearchResult`](#catalogsearchresult)
90
91
  - [`SearchProvidersParams`](#searchprovidersparams)
91
92
  - [`SearchStreetsParams`](#searchstreetsparams)
@@ -2363,6 +2364,7 @@ type CatalogSearch = {
2363
2364
  from?: number
2364
2365
  size?: number
2365
2366
  hydrate?: boolean
2367
+ fields?: string[]
2366
2368
  availability?: {
2367
2369
  location: {
2368
2370
  street?: { ... }
@@ -2376,6 +2378,15 @@ type CatalogSearch = {
2376
2378
  }
2377
2379
  ```
2378
2380
 
2381
+ ### `CatalogFieldsParam`
2382
+
2383
+ List of entity fields to include or exclude from the results.
2384
+
2385
+
2386
+ ```ts
2387
+ type CatalogFieldsParam = string[]
2388
+ ```
2389
+
2379
2390
  ### `CatalogSearchResult`
2380
2391
 
2381
2392
  The query result payload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.15.4",
3
+ "version": "2.15.6",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",