@epilot/customer-portal-client 0.41.0 → 0.42.0
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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +49 -0
- package/dist/openapi.d.ts +347 -11
- package/package.json +1 -1
- package/src/openapi-runtime.json +49 -0
- package/src/openapi.json +418 -10
package/dist/openapi.d.ts
CHANGED
|
@@ -1459,6 +1459,10 @@ declare namespace Components {
|
|
|
1459
1459
|
global_blocks?: {
|
|
1460
1460
|
[name: string]: Block;
|
|
1461
1461
|
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Configures which 360 events generate an in-app notification for the portal user. Each enabled trigger renders the referenced notification template and creates a notification addressed to the portal user. Admin/builder-only — never exposed via the public portal config.
|
|
1464
|
+
*/
|
|
1465
|
+
notification_triggers?: NotificationTriggerConfig[];
|
|
1462
1466
|
}
|
|
1463
1467
|
export interface CommonConfigAttributesV3 {
|
|
1464
1468
|
/**
|
|
@@ -4741,6 +4745,10 @@ declare namespace Components {
|
|
|
4741
4745
|
* Indicate whether the user has not seen/downloaded the file before
|
|
4742
4746
|
*/
|
|
4743
4747
|
is_new?: boolean;
|
|
4748
|
+
/**
|
|
4749
|
+
* Authorization mode of an externally hosted file's download url. `presigned` (the default) means `public_url` is HMAC-signed and needs no auth header; `token` means it authorizes the caller's bearer token instead and must be fetched with an `Authorization` header. Because `presigned` is the default, the absence of this property does NOT prove the file is stored in epilot — an external file may omit it.
|
|
4750
|
+
*/
|
|
4751
|
+
custom_download_url_auth?: "token" | "presigned";
|
|
4744
4752
|
}
|
|
4745
4753
|
export interface FilePreviewResult {
|
|
4746
4754
|
/**
|
|
@@ -4751,6 +4759,10 @@ declare namespace Components {
|
|
|
4751
4759
|
* A Content-Disposition: inline URL to render in a preview viewer. Present only when kind is "pdf" or "image". Short-lived — do not cache across dialog opens.
|
|
4752
4760
|
*/
|
|
4753
4761
|
url?: string; // uri
|
|
4762
|
+
/**
|
|
4763
|
+
* When true, `url` only answers to the portal user's bearer token: fetch the bytes with an `Authorization: Bearer <token>` header and render them from an object URL. Only ever set for URLs on an allow-listed ERP file-proxy host.
|
|
4764
|
+
*/
|
|
4765
|
+
requires_auth?: boolean;
|
|
4754
4766
|
/**
|
|
4755
4767
|
* Optional download URL for the file, returned for any kind — including "unsupported" — whenever the file entity exposes one. It is only a Content-Disposition: attachment URL for files with access_control "private", where it is a short-lived signed URL; for any other access level it is the file entity's plain public/CDN object URL, which carries no attachment disposition and may render inline in the browser. Absent when the file entity exposes no usable URL, so clients must handle it being missing.
|
|
4756
4768
|
*/
|
|
@@ -5331,6 +5343,26 @@ declare namespace Components {
|
|
|
5331
5343
|
*/
|
|
5332
5344
|
client_secret?: string;
|
|
5333
5345
|
}
|
|
5346
|
+
export interface NotificationTriggerConfig {
|
|
5347
|
+
/**
|
|
5348
|
+
* The 360 event that fires this notification trigger.
|
|
5349
|
+
*/
|
|
5350
|
+
trigger_type: "entity_created" | "entity_assigned" | "workflow_step_overdue";
|
|
5351
|
+
/**
|
|
5352
|
+
* For `entity_created` / `entity_assigned` triggers, the entity schema slug (e.g. `opportunity`, `order`) whose creation or assignment fires this trigger. Ignored for other trigger types.
|
|
5353
|
+
* example:
|
|
5354
|
+
* opportunity
|
|
5355
|
+
*/
|
|
5356
|
+
entity_schema?: string;
|
|
5357
|
+
/**
|
|
5358
|
+
* Whether this trigger is active.
|
|
5359
|
+
*/
|
|
5360
|
+
enabled?: boolean;
|
|
5361
|
+
/**
|
|
5362
|
+
* Entity id of the notification_template to render for this trigger.
|
|
5363
|
+
*/
|
|
5364
|
+
template_id?: string; // uuid
|
|
5365
|
+
}
|
|
5334
5366
|
/**
|
|
5335
5367
|
* OIDC provider configuration. Values are resolved at SSO invocation time
|
|
5336
5368
|
* (login / callback), so the fields below may reference org env vars via
|
|
@@ -5717,6 +5749,44 @@ declare namespace Components {
|
|
|
5717
5749
|
*/
|
|
5718
5750
|
minNativeVersion?: string;
|
|
5719
5751
|
}
|
|
5752
|
+
export interface OutstandingTask {
|
|
5753
|
+
/**
|
|
5754
|
+
* ID of the entity the task belongs to
|
|
5755
|
+
*/
|
|
5756
|
+
entity_id: string;
|
|
5757
|
+
/**
|
|
5758
|
+
* Schema slug of the entity (opportunity, order or contract)
|
|
5759
|
+
*/
|
|
5760
|
+
entity_schema: string;
|
|
5761
|
+
/**
|
|
5762
|
+
* Title (_title) of the entity
|
|
5763
|
+
*/
|
|
5764
|
+
entity_title: string;
|
|
5765
|
+
/**
|
|
5766
|
+
* Workflow execution id
|
|
5767
|
+
*/
|
|
5768
|
+
workflow_id: string;
|
|
5769
|
+
/**
|
|
5770
|
+
* Workflow execution / template name
|
|
5771
|
+
*/
|
|
5772
|
+
workflow_name: string;
|
|
5773
|
+
/**
|
|
5774
|
+
* Task (step) id within the workflow execution
|
|
5775
|
+
*/
|
|
5776
|
+
step_id: string;
|
|
5777
|
+
/**
|
|
5778
|
+
* Task (step) name
|
|
5779
|
+
*/
|
|
5780
|
+
step_name: string;
|
|
5781
|
+
/**
|
|
5782
|
+
* Journey id the customer needs to fill out
|
|
5783
|
+
*/
|
|
5784
|
+
journey_id: string;
|
|
5785
|
+
/**
|
|
5786
|
+
* Whether submitting the journey from the portal should auto-complete the task. When false, an internal user completes it.
|
|
5787
|
+
*/
|
|
5788
|
+
complete_task_automatically?: boolean;
|
|
5789
|
+
}
|
|
5720
5790
|
export interface Page {
|
|
5721
5791
|
[name: string]: any;
|
|
5722
5792
|
/**
|
|
@@ -6527,6 +6597,10 @@ declare namespace Components {
|
|
|
6527
6597
|
global_blocks?: {
|
|
6528
6598
|
[name: string]: Block;
|
|
6529
6599
|
};
|
|
6600
|
+
/**
|
|
6601
|
+
* Configures which 360 events generate an in-app notification for the portal user. Each enabled trigger renders the referenced notification template and creates a notification addressed to the portal user. Admin/builder-only — never exposed via the public portal config.
|
|
6602
|
+
*/
|
|
6603
|
+
notification_triggers?: NotificationTriggerConfig[];
|
|
6530
6604
|
/**
|
|
6531
6605
|
* ID of the organization
|
|
6532
6606
|
* example:
|
|
@@ -7248,6 +7322,57 @@ declare namespace Components {
|
|
|
7248
7322
|
* 453ad7bf-86d5-46c8-8252-bcc868df5e3c
|
|
7249
7323
|
*/
|
|
7250
7324
|
export type PortalId = string;
|
|
7325
|
+
/**
|
|
7326
|
+
* A 360 notification addressed to a portal user.
|
|
7327
|
+
*/
|
|
7328
|
+
export interface PortalNotification {
|
|
7329
|
+
/**
|
|
7330
|
+
* Stable string identifier of the notification (the numeric notification id as a string).
|
|
7331
|
+
* example:
|
|
7332
|
+
* 1234567890
|
|
7333
|
+
*/
|
|
7334
|
+
id: string;
|
|
7335
|
+
/**
|
|
7336
|
+
* Numeric id of the notification, used to mark it as read.
|
|
7337
|
+
* example:
|
|
7338
|
+
* 1234567890
|
|
7339
|
+
*/
|
|
7340
|
+
notification_id?: number;
|
|
7341
|
+
/**
|
|
7342
|
+
* Type of notification.
|
|
7343
|
+
* example:
|
|
7344
|
+
* workflow_step_overdue
|
|
7345
|
+
*/
|
|
7346
|
+
type?: string;
|
|
7347
|
+
/**
|
|
7348
|
+
* Localized, already-rendered notification title.
|
|
7349
|
+
*/
|
|
7350
|
+
title?: {
|
|
7351
|
+
en?: string;
|
|
7352
|
+
de?: string;
|
|
7353
|
+
};
|
|
7354
|
+
/**
|
|
7355
|
+
* Localized, already-rendered notification message.
|
|
7356
|
+
*/
|
|
7357
|
+
message?: {
|
|
7358
|
+
en?: string;
|
|
7359
|
+
de?: string;
|
|
7360
|
+
};
|
|
7361
|
+
/**
|
|
7362
|
+
* When the notification was created.
|
|
7363
|
+
*/
|
|
7364
|
+
created_at?: string; // date-time
|
|
7365
|
+
/**
|
|
7366
|
+
* Whether the notification has been read by the user.
|
|
7367
|
+
* example:
|
|
7368
|
+
* false
|
|
7369
|
+
*/
|
|
7370
|
+
read: boolean;
|
|
7371
|
+
/**
|
|
7372
|
+
* Optional URL the notification points to.
|
|
7373
|
+
*/
|
|
7374
|
+
redirect_url?: string;
|
|
7375
|
+
}
|
|
7251
7376
|
/**
|
|
7252
7377
|
* Portal-specific (ECP / installer) display config of a workflow task
|
|
7253
7378
|
*/
|
|
@@ -7951,7 +8076,7 @@ declare namespace Components {
|
|
|
7951
8076
|
*/
|
|
7952
8077
|
ProviderSlug /* [0-9a-z_-]+ */;
|
|
7953
8078
|
/**
|
|
7954
|
-
*
|
|
8079
|
+
* Deprecated and ignored; the token endpoint is derived server-side from the provider config.
|
|
7955
8080
|
* example:
|
|
7956
8081
|
* https://www.facebook.com/v12.0/dialog/oauth
|
|
7957
8082
|
*/
|
|
@@ -8852,6 +8977,10 @@ declare namespace Components {
|
|
|
8852
8977
|
global_blocks?: {
|
|
8853
8978
|
[name: string]: Block;
|
|
8854
8979
|
};
|
|
8980
|
+
/**
|
|
8981
|
+
* Configures which 360 events generate an in-app notification for the portal user. Each enabled trigger renders the referenced notification template and creates a notification addressed to the portal user. Admin/builder-only — never exposed via the public portal config.
|
|
8982
|
+
*/
|
|
8983
|
+
notification_triggers?: NotificationTriggerConfig[];
|
|
8855
8984
|
}
|
|
8856
8985
|
export interface UpsertPortalConfigV3 {
|
|
8857
8986
|
/**
|
|
@@ -11136,9 +11265,9 @@ declare namespace Paths {
|
|
|
11136
11265
|
*/
|
|
11137
11266
|
export type Size = number;
|
|
11138
11267
|
/**
|
|
11139
|
-
* Key to sort by
|
|
11268
|
+
* Key to sort by. Pass a comma-separated list to apply additional keys as tiebreakers, in order of precedence.
|
|
11140
11269
|
* example:
|
|
11141
|
-
*
|
|
11270
|
+
* paid_date:desc,booking_date:desc
|
|
11142
11271
|
*/
|
|
11143
11272
|
export type Sort = string;
|
|
11144
11273
|
}
|
|
@@ -11161,9 +11290,9 @@ declare namespace Paths {
|
|
|
11161
11290
|
date_after?: /* List billing events after this date */ Parameters.DateAfter /* date-time */;
|
|
11162
11291
|
date_before?: /* List billing events before this date */ Parameters.DateBefore /* date-time */;
|
|
11163
11292
|
sort?: /**
|
|
11164
|
-
* Key to sort by
|
|
11293
|
+
* Key to sort by. Pass a comma-separated list to apply additional keys as tiebreakers, in order of precedence.
|
|
11165
11294
|
* example:
|
|
11166
|
-
*
|
|
11295
|
+
* paid_date:desc,booking_date:desc
|
|
11167
11296
|
*/
|
|
11168
11297
|
Parameters.Sort;
|
|
11169
11298
|
}
|
|
@@ -11233,6 +11362,18 @@ declare namespace Paths {
|
|
|
11233
11362
|
* kWh
|
|
11234
11363
|
*/
|
|
11235
11364
|
unit?: string;
|
|
11365
|
+
/**
|
|
11366
|
+
* Optional localized label for this individual value, keyed by ISO 3166-1 alpha-2 language code (same shape as `VisualizationTypeOption.label`). When present, the portal renders it as the data point label instead of the default timestamp-derived label (e.g. to name billing periods or tariff windows).
|
|
11367
|
+
*
|
|
11368
|
+
* example:
|
|
11369
|
+
* {
|
|
11370
|
+
* "en": "Billing period 1",
|
|
11371
|
+
* "de": "Abrechnungszeitraum 1"
|
|
11372
|
+
* }
|
|
11373
|
+
*/
|
|
11374
|
+
label?: {
|
|
11375
|
+
[name: string]: string;
|
|
11376
|
+
};
|
|
11236
11377
|
}[];
|
|
11237
11378
|
}
|
|
11238
11379
|
export type $401 = Components.Responses.Unauthorized;
|
|
@@ -13375,6 +13516,10 @@ declare namespace Paths {
|
|
|
13375
13516
|
global_blocks?: {
|
|
13376
13517
|
[name: string]: Components.Schemas.Block;
|
|
13377
13518
|
};
|
|
13519
|
+
/**
|
|
13520
|
+
* Configures which 360 events generate an in-app notification for the portal user. Each enabled trigger renders the referenced notification template and creates a notification addressed to the portal user. Admin/builder-only — never exposed via the public portal config.
|
|
13521
|
+
*/
|
|
13522
|
+
notification_triggers?: Components.Schemas.NotificationTriggerConfig[];
|
|
13378
13523
|
/**
|
|
13379
13524
|
* ID of the organization
|
|
13380
13525
|
* example:
|
|
@@ -13993,6 +14138,10 @@ declare namespace Paths {
|
|
|
13993
14138
|
global_blocks?: {
|
|
13994
14139
|
[name: string]: Components.Schemas.Block;
|
|
13995
14140
|
};
|
|
14141
|
+
/**
|
|
14142
|
+
* Configures which 360 events generate an in-app notification for the portal user. Each enabled trigger renders the referenced notification template and creates a notification addressed to the portal user. Admin/builder-only — never exposed via the public portal config.
|
|
14143
|
+
*/
|
|
14144
|
+
notification_triggers?: Components.Schemas.NotificationTriggerConfig[];
|
|
13996
14145
|
/**
|
|
13997
14146
|
* ID of the organization
|
|
13998
14147
|
* example:
|
|
@@ -14111,6 +14260,21 @@ declare namespace Paths {
|
|
|
14111
14260
|
export type $500 = Components.Responses.InternalServerError;
|
|
14112
14261
|
}
|
|
14113
14262
|
}
|
|
14263
|
+
namespace GetOutstandingTasks {
|
|
14264
|
+
namespace Responses {
|
|
14265
|
+
export interface $200 {
|
|
14266
|
+
tasks: Components.Schemas.OutstandingTask[];
|
|
14267
|
+
/**
|
|
14268
|
+
* example:
|
|
14269
|
+
* 0
|
|
14270
|
+
*/
|
|
14271
|
+
total: number;
|
|
14272
|
+
}
|
|
14273
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
14274
|
+
export type $403 = Components.Responses.Forbidden;
|
|
14275
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
14276
|
+
}
|
|
14277
|
+
}
|
|
14114
14278
|
namespace GetPortalConfig {
|
|
14115
14279
|
namespace Parameters {
|
|
14116
14280
|
export type Origin = /* Origin of the portal */ Components.Schemas.Origin;
|
|
@@ -14203,6 +14367,20 @@ declare namespace Paths {
|
|
|
14203
14367
|
export type $500 = Components.Responses.InternalServerError;
|
|
14204
14368
|
}
|
|
14205
14369
|
}
|
|
14370
|
+
namespace GetPortalNotificationsUnreadCount {
|
|
14371
|
+
namespace Responses {
|
|
14372
|
+
export interface $200 {
|
|
14373
|
+
/**
|
|
14374
|
+
* example:
|
|
14375
|
+
* 3
|
|
14376
|
+
*/
|
|
14377
|
+
count?: number;
|
|
14378
|
+
}
|
|
14379
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
14380
|
+
export type $403 = Components.Responses.Forbidden;
|
|
14381
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
14382
|
+
}
|
|
14383
|
+
}
|
|
14206
14384
|
namespace GetPortalPage {
|
|
14207
14385
|
namespace Responses {
|
|
14208
14386
|
export type $200 = Components.Schemas.Page;
|
|
@@ -15273,12 +15451,6 @@ declare namespace Paths {
|
|
|
15273
15451
|
* Email address of the partner to invite
|
|
15274
15452
|
*/
|
|
15275
15453
|
email: string;
|
|
15276
|
-
represents_contact_list?: /**
|
|
15277
|
-
* Entity ID
|
|
15278
|
-
* example:
|
|
15279
|
-
* 5da0a718-c822-403d-9f5d-20d4584e0528
|
|
15280
|
-
*/
|
|
15281
|
-
Components.Schemas.EntityId /* uuid */[];
|
|
15282
15454
|
/**
|
|
15283
15455
|
* Additional contact entity fields to set when creating the contact for the invited user.
|
|
15284
15456
|
* These are mapped directly to contact entity attributes (e.g. first_name, last_name, phone).
|
|
@@ -15355,6 +15527,32 @@ declare namespace Paths {
|
|
|
15355
15527
|
export type $500 = Components.Responses.InternalServerError;
|
|
15356
15528
|
}
|
|
15357
15529
|
}
|
|
15530
|
+
namespace ListPortalNotifications {
|
|
15531
|
+
namespace Parameters {
|
|
15532
|
+
export type Cursor = string;
|
|
15533
|
+
export type Limit = number;
|
|
15534
|
+
}
|
|
15535
|
+
export interface QueryParameters {
|
|
15536
|
+
cursor?: Parameters.Cursor;
|
|
15537
|
+
limit?: Parameters.Limit;
|
|
15538
|
+
}
|
|
15539
|
+
namespace Responses {
|
|
15540
|
+
export interface $200 {
|
|
15541
|
+
/**
|
|
15542
|
+
* Base64 encoded cursor to fetch the next page. Absent when there are no more results.
|
|
15543
|
+
*/
|
|
15544
|
+
cursor?: string;
|
|
15545
|
+
/**
|
|
15546
|
+
* Total number of unread notifications for the user.
|
|
15547
|
+
*/
|
|
15548
|
+
total_unread?: number;
|
|
15549
|
+
results?: /* A 360 notification addressed to a portal user. */ Components.Schemas.PortalNotification[];
|
|
15550
|
+
}
|
|
15551
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
15552
|
+
export type $403 = Components.Responses.Forbidden;
|
|
15553
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
15554
|
+
}
|
|
15555
|
+
}
|
|
15358
15556
|
namespace LoginToPortalAsUser {
|
|
15359
15557
|
export interface RequestBody {
|
|
15360
15558
|
/**
|
|
@@ -15382,6 +15580,31 @@ declare namespace Paths {
|
|
|
15382
15580
|
}
|
|
15383
15581
|
}
|
|
15384
15582
|
}
|
|
15583
|
+
namespace MarkAllPortalNotificationsRead {
|
|
15584
|
+
namespace Responses {
|
|
15585
|
+
export interface $204 {
|
|
15586
|
+
}
|
|
15587
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
15588
|
+
export type $403 = Components.Responses.Forbidden;
|
|
15589
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
15590
|
+
}
|
|
15591
|
+
}
|
|
15592
|
+
namespace MarkPortalNotificationRead {
|
|
15593
|
+
namespace Parameters {
|
|
15594
|
+
export type Id = number;
|
|
15595
|
+
}
|
|
15596
|
+
export interface PathParameters {
|
|
15597
|
+
id: Parameters.Id;
|
|
15598
|
+
}
|
|
15599
|
+
namespace Responses {
|
|
15600
|
+
export interface $204 {
|
|
15601
|
+
}
|
|
15602
|
+
export type $400 = Components.Responses.InvalidRequest;
|
|
15603
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
15604
|
+
export type $403 = Components.Responses.Forbidden;
|
|
15605
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
15606
|
+
}
|
|
15607
|
+
}
|
|
15385
15608
|
namespace MigrateEmailTemplateReferences {
|
|
15386
15609
|
export interface RequestBody {
|
|
15387
15610
|
/**
|
|
@@ -18182,6 +18405,16 @@ export interface OperationMethods {
|
|
|
18182
18405
|
data?: any,
|
|
18183
18406
|
config?: AxiosRequestConfig
|
|
18184
18407
|
): OperationResponse<Paths.GetEntityWorkflows.Responses.$200>
|
|
18408
|
+
/**
|
|
18409
|
+
* getOutstandingTasks - Get outstanding workflow tasks for the portal user
|
|
18410
|
+
*
|
|
18411
|
+
* Returns all outstanding workflow journey tasks for the authenticated portal user, across their opportunity, order and contract entities. Each task is an active workflow step that exposes a journey the customer still needs to fill out.
|
|
18412
|
+
*/
|
|
18413
|
+
'getOutstandingTasks'(
|
|
18414
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
18415
|
+
data?: any,
|
|
18416
|
+
config?: AxiosRequestConfig
|
|
18417
|
+
): OperationResponse<Paths.GetOutstandingTasks.Responses.$200>
|
|
18185
18418
|
/**
|
|
18186
18419
|
* getEntityPortalWorkflows - getEntityPortalWorkflows
|
|
18187
18420
|
*
|
|
@@ -18510,6 +18743,46 @@ export interface OperationMethods {
|
|
|
18510
18743
|
data?: Paths.UpdateCampaignPortalBlockStatus.RequestBody,
|
|
18511
18744
|
config?: AxiosRequestConfig
|
|
18512
18745
|
): OperationResponse<Paths.UpdateCampaignPortalBlockStatus.Responses.$200>
|
|
18746
|
+
/**
|
|
18747
|
+
* listPortalNotifications - listPortalNotifications
|
|
18748
|
+
*
|
|
18749
|
+
* Lists the 360 notifications addressed to the authenticated portal user, newest first. The organization and the portal user are derived from the authenticated session, so a user can only ever read their own notifications.
|
|
18750
|
+
*/
|
|
18751
|
+
'listPortalNotifications'(
|
|
18752
|
+
parameters?: Parameters<Paths.ListPortalNotifications.QueryParameters> | null,
|
|
18753
|
+
data?: any,
|
|
18754
|
+
config?: AxiosRequestConfig
|
|
18755
|
+
): OperationResponse<Paths.ListPortalNotifications.Responses.$200>
|
|
18756
|
+
/**
|
|
18757
|
+
* getPortalNotificationsUnreadCount - getPortalNotificationsUnreadCount
|
|
18758
|
+
*
|
|
18759
|
+
* Returns the number of unread notifications for the authenticated portal user.
|
|
18760
|
+
*/
|
|
18761
|
+
'getPortalNotificationsUnreadCount'(
|
|
18762
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
18763
|
+
data?: any,
|
|
18764
|
+
config?: AxiosRequestConfig
|
|
18765
|
+
): OperationResponse<Paths.GetPortalNotificationsUnreadCount.Responses.$200>
|
|
18766
|
+
/**
|
|
18767
|
+
* markAllPortalNotificationsRead - markAllPortalNotificationsRead
|
|
18768
|
+
*
|
|
18769
|
+
* Marks all notifications of the authenticated portal user as read.
|
|
18770
|
+
*/
|
|
18771
|
+
'markAllPortalNotificationsRead'(
|
|
18772
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
18773
|
+
data?: any,
|
|
18774
|
+
config?: AxiosRequestConfig
|
|
18775
|
+
): OperationResponse<Paths.MarkAllPortalNotificationsRead.Responses.$204>
|
|
18776
|
+
/**
|
|
18777
|
+
* markPortalNotificationRead - markPortalNotificationRead
|
|
18778
|
+
*
|
|
18779
|
+
* Marks a single notification of the authenticated portal user as read.
|
|
18780
|
+
*/
|
|
18781
|
+
'markPortalNotificationRead'(
|
|
18782
|
+
parameters?: Parameters<Paths.MarkPortalNotificationRead.PathParameters> | null,
|
|
18783
|
+
data?: any,
|
|
18784
|
+
config?: AxiosRequestConfig
|
|
18785
|
+
): OperationResponse<Paths.MarkPortalNotificationRead.Responses.$204>
|
|
18513
18786
|
/**
|
|
18514
18787
|
* updateNotificationsStatus - updateNotificationsStatus
|
|
18515
18788
|
*
|
|
@@ -20136,6 +20409,18 @@ export interface PathsDictionary {
|
|
|
20136
20409
|
config?: AxiosRequestConfig
|
|
20137
20410
|
): OperationResponse<Paths.GetEntityWorkflows.Responses.$200>
|
|
20138
20411
|
}
|
|
20412
|
+
['/v2/portal/engagement/tasks']: {
|
|
20413
|
+
/**
|
|
20414
|
+
* getOutstandingTasks - Get outstanding workflow tasks for the portal user
|
|
20415
|
+
*
|
|
20416
|
+
* Returns all outstanding workflow journey tasks for the authenticated portal user, across their opportunity, order and contract entities. Each task is an active workflow step that exposes a journey the customer still needs to fill out.
|
|
20417
|
+
*/
|
|
20418
|
+
'get'(
|
|
20419
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
20420
|
+
data?: any,
|
|
20421
|
+
config?: AxiosRequestConfig
|
|
20422
|
+
): OperationResponse<Paths.GetOutstandingTasks.Responses.$200>
|
|
20423
|
+
}
|
|
20139
20424
|
['/v2/portal/entity/{slug}/{id}/workflows/linearized']: {
|
|
20140
20425
|
/**
|
|
20141
20426
|
* getEntityPortalWorkflows - getEntityPortalWorkflows
|
|
@@ -20506,6 +20791,54 @@ export interface PathsDictionary {
|
|
|
20506
20791
|
config?: AxiosRequestConfig
|
|
20507
20792
|
): OperationResponse<Paths.UpdateCampaignPortalBlockStatus.Responses.$200>
|
|
20508
20793
|
}
|
|
20794
|
+
['/v2/portal/notifications']: {
|
|
20795
|
+
/**
|
|
20796
|
+
* listPortalNotifications - listPortalNotifications
|
|
20797
|
+
*
|
|
20798
|
+
* Lists the 360 notifications addressed to the authenticated portal user, newest first. The organization and the portal user are derived from the authenticated session, so a user can only ever read their own notifications.
|
|
20799
|
+
*/
|
|
20800
|
+
'get'(
|
|
20801
|
+
parameters?: Parameters<Paths.ListPortalNotifications.QueryParameters> | null,
|
|
20802
|
+
data?: any,
|
|
20803
|
+
config?: AxiosRequestConfig
|
|
20804
|
+
): OperationResponse<Paths.ListPortalNotifications.Responses.$200>
|
|
20805
|
+
}
|
|
20806
|
+
['/v2/portal/notifications/unread-count']: {
|
|
20807
|
+
/**
|
|
20808
|
+
* getPortalNotificationsUnreadCount - getPortalNotificationsUnreadCount
|
|
20809
|
+
*
|
|
20810
|
+
* Returns the number of unread notifications for the authenticated portal user.
|
|
20811
|
+
*/
|
|
20812
|
+
'get'(
|
|
20813
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
20814
|
+
data?: any,
|
|
20815
|
+
config?: AxiosRequestConfig
|
|
20816
|
+
): OperationResponse<Paths.GetPortalNotificationsUnreadCount.Responses.$200>
|
|
20817
|
+
}
|
|
20818
|
+
['/v2/portal/notifications/read-all']: {
|
|
20819
|
+
/**
|
|
20820
|
+
* markAllPortalNotificationsRead - markAllPortalNotificationsRead
|
|
20821
|
+
*
|
|
20822
|
+
* Marks all notifications of the authenticated portal user as read.
|
|
20823
|
+
*/
|
|
20824
|
+
'put'(
|
|
20825
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
20826
|
+
data?: any,
|
|
20827
|
+
config?: AxiosRequestConfig
|
|
20828
|
+
): OperationResponse<Paths.MarkAllPortalNotificationsRead.Responses.$204>
|
|
20829
|
+
}
|
|
20830
|
+
['/v2/portal/notifications/{id}/read']: {
|
|
20831
|
+
/**
|
|
20832
|
+
* markPortalNotificationRead - markPortalNotificationRead
|
|
20833
|
+
*
|
|
20834
|
+
* Marks a single notification of the authenticated portal user as read.
|
|
20835
|
+
*/
|
|
20836
|
+
'put'(
|
|
20837
|
+
parameters?: Parameters<Paths.MarkPortalNotificationRead.PathParameters> | null,
|
|
20838
|
+
data?: any,
|
|
20839
|
+
config?: AxiosRequestConfig
|
|
20840
|
+
): OperationResponse<Paths.MarkPortalNotificationRead.Responses.$204>
|
|
20841
|
+
}
|
|
20509
20842
|
['/v2/portal/notifications/entity:status']: {
|
|
20510
20843
|
/**
|
|
20511
20844
|
* updateNotificationsStatus - updateNotificationsStatus
|
|
@@ -20851,6 +21184,7 @@ export type MobileConfig = Components.Schemas.MobileConfig;
|
|
|
20851
21184
|
export type MobileConfigUpdate = Components.Schemas.MobileConfigUpdate;
|
|
20852
21185
|
export type MobileOtaConfig = Components.Schemas.MobileOtaConfig;
|
|
20853
21186
|
export type MoblieOIDCConfig = Components.Schemas.MoblieOIDCConfig;
|
|
21187
|
+
export type NotificationTriggerConfig = Components.Schemas.NotificationTriggerConfig;
|
|
20854
21188
|
export type OIDCProviderConfig = Components.Schemas.OIDCProviderConfig;
|
|
20855
21189
|
export type OIDCProviderMetadata = Components.Schemas.OIDCProviderMetadata;
|
|
20856
21190
|
export type Opportunity = Components.Schemas.Opportunity;
|
|
@@ -20858,6 +21192,7 @@ export type Order = Components.Schemas.Order;
|
|
|
20858
21192
|
export type OrganizationSettings = Components.Schemas.OrganizationSettings;
|
|
20859
21193
|
export type Origin = Components.Schemas.Origin;
|
|
20860
21194
|
export type OtaPortal = Components.Schemas.OtaPortal;
|
|
21195
|
+
export type OutstandingTask = Components.Schemas.OutstandingTask;
|
|
20861
21196
|
export type Page = Components.Schemas.Page;
|
|
20862
21197
|
export type PageRequest = Components.Schemas.PageRequest;
|
|
20863
21198
|
export type PaymentWidget = Components.Schemas.PaymentWidget;
|
|
@@ -20865,6 +21200,7 @@ export type PortalConfig = Components.Schemas.PortalConfig;
|
|
|
20865
21200
|
export type PortalConfigV3 = Components.Schemas.PortalConfigV3;
|
|
20866
21201
|
export type PortalDataExportColumn = Components.Schemas.PortalDataExportColumn;
|
|
20867
21202
|
export type PortalId = Components.Schemas.PortalId;
|
|
21203
|
+
export type PortalNotification = Components.Schemas.PortalNotification;
|
|
20868
21204
|
export type PortalTaskConfig = Components.Schemas.PortalTaskConfig;
|
|
20869
21205
|
export type PortalUser = Components.Schemas.PortalUser;
|
|
20870
21206
|
export type PortalUserRegistrationStatus = Components.Schemas.PortalUserRegistrationStatus;
|
package/package.json
CHANGED
package/src/openapi-runtime.json
CHANGED
|
@@ -1967,6 +1967,12 @@
|
|
|
1967
1967
|
"responses": {}
|
|
1968
1968
|
}
|
|
1969
1969
|
},
|
|
1970
|
+
"/v2/portal/engagement/tasks": {
|
|
1971
|
+
"get": {
|
|
1972
|
+
"operationId": "getOutstandingTasks",
|
|
1973
|
+
"responses": {}
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1970
1976
|
"/v2/portal/entity/{slug}/{id}/workflows/linearized": {
|
|
1971
1977
|
"get": {
|
|
1972
1978
|
"operationId": "getEntityPortalWorkflows",
|
|
@@ -2426,6 +2432,49 @@
|
|
|
2426
2432
|
"responses": {}
|
|
2427
2433
|
}
|
|
2428
2434
|
},
|
|
2435
|
+
"/v2/portal/notifications": {
|
|
2436
|
+
"get": {
|
|
2437
|
+
"operationId": "listPortalNotifications",
|
|
2438
|
+
"parameters": [
|
|
2439
|
+
{
|
|
2440
|
+
"in": "query",
|
|
2441
|
+
"name": "cursor",
|
|
2442
|
+
"required": false
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"in": "query",
|
|
2446
|
+
"name": "limit",
|
|
2447
|
+
"required": false
|
|
2448
|
+
}
|
|
2449
|
+
],
|
|
2450
|
+
"responses": {}
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
"/v2/portal/notifications/unread-count": {
|
|
2454
|
+
"get": {
|
|
2455
|
+
"operationId": "getPortalNotificationsUnreadCount",
|
|
2456
|
+
"responses": {}
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
"/v2/portal/notifications/read-all": {
|
|
2460
|
+
"put": {
|
|
2461
|
+
"operationId": "markAllPortalNotificationsRead",
|
|
2462
|
+
"responses": {}
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
"/v2/portal/notifications/{id}/read": {
|
|
2466
|
+
"put": {
|
|
2467
|
+
"operationId": "markPortalNotificationRead",
|
|
2468
|
+
"parameters": [
|
|
2469
|
+
{
|
|
2470
|
+
"in": "path",
|
|
2471
|
+
"name": "id",
|
|
2472
|
+
"required": true
|
|
2473
|
+
}
|
|
2474
|
+
],
|
|
2475
|
+
"responses": {}
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2429
2478
|
"/v2/portal/notifications/entity:status": {
|
|
2430
2479
|
"put": {
|
|
2431
2480
|
"operationId": "updateNotificationsStatus",
|