@epilot/customer-portal-client 0.16.0 → 0.16.1-rc.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/dist/openapi.d.ts CHANGED
@@ -24,6 +24,10 @@ declare namespace Components {
24
24
  export type Unauthorized = Schemas.ErrorResp;
25
25
  }
26
26
  namespace Schemas {
27
+ export interface ActionLabel {
28
+ en?: string | null;
29
+ de?: string | null;
30
+ }
27
31
  export interface ActionWidget {
28
32
  id: string;
29
33
  type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET";
@@ -805,6 +809,15 @@ declare namespace Components {
805
809
  * 5da0a718-c822-403d-9f5d-20d4584e0528
806
810
  */
807
811
  EntityId /* uuid */;
812
+ /**
813
+ * ID of the advanced MFA with login link and login code
814
+ */
815
+ advancedMFA?: /**
816
+ * Entity ID
817
+ * example:
818
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
819
+ */
820
+ EntityId /* uuid */;
808
821
  /**
809
822
  * ID of the email template for forgot password
810
823
  */
@@ -850,6 +863,15 @@ declare namespace Components {
850
863
  * 5da0a718-c822-403d-9f5d-20d4584e0528
851
864
  */
852
865
  EntityId /* uuid */;
866
+ /**
867
+ * ID of the email template for workflow step assignment
868
+ */
869
+ onWorkflowStepAssigned?: /**
870
+ * Entity ID
871
+ * example:
872
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
873
+ */
874
+ EntityId /* uuid */;
853
875
  }
854
876
  export interface Entity {
855
877
  [name: string]: any;
@@ -1310,6 +1332,12 @@ declare namespace Components {
1310
1332
  */
1311
1333
  paid_date?: string; // date
1312
1334
  }
1335
+ export interface JourneyActions {
1336
+ journey_id?: string | null;
1337
+ action_label?: ActionLabel;
1338
+ slug?: string | null;
1339
+ rules?: Rule[] | null;
1340
+ }
1313
1341
  /**
1314
1342
  * The meter entity
1315
1343
  */
@@ -1633,6 +1661,14 @@ declare namespace Components {
1633
1661
  * Billing feature flag
1634
1662
  */
1635
1663
  billing?: boolean;
1664
+ /**
1665
+ * Change due date feature flag
1666
+ */
1667
+ change_due_date?: boolean;
1668
+ /**
1669
+ * Advanced MFA feature flag
1670
+ */
1671
+ advanced_mfa?: boolean;
1636
1672
  };
1637
1673
  /**
1638
1674
  * AWS Cognito Pool details for the portal
@@ -1656,6 +1692,41 @@ declare namespace Components {
1656
1692
  * eu-central-1_CUEQRNbUb
1657
1693
  */
1658
1694
  cognito_user_pool_id?: string;
1695
+ /**
1696
+ * Password policy for the portal
1697
+ */
1698
+ password_policy?: {
1699
+ /**
1700
+ * Minimum password length
1701
+ * example:
1702
+ * 8
1703
+ */
1704
+ minimum_length?: number;
1705
+ /**
1706
+ * Require lowercase characters
1707
+ * example:
1708
+ * true
1709
+ */
1710
+ require_lowercase?: boolean;
1711
+ /**
1712
+ * Require uppercase characters
1713
+ * example:
1714
+ * true
1715
+ */
1716
+ require_uppercase?: boolean;
1717
+ /**
1718
+ * Require numbers
1719
+ * example:
1720
+ * true
1721
+ */
1722
+ require_numbers?: boolean;
1723
+ /**
1724
+ * Require symbols
1725
+ * example:
1726
+ * true
1727
+ */
1728
+ require_symbols?: boolean;
1729
+ };
1659
1730
  };
1660
1731
  /**
1661
1732
  * Stringified object with configuration details
@@ -2043,6 +2114,11 @@ declare namespace Components {
2043
2114
  */
2044
2115
  paid_date?: string; // date
2045
2116
  }
2117
+ export interface Rule {
2118
+ entity?: string | null;
2119
+ attribute?: string | null;
2120
+ attribute_value?: string | null;
2121
+ }
2046
2122
  export interface SaveEntityFile {
2047
2123
  entity_id: /**
2048
2124
  * Entity ID
@@ -2224,6 +2300,14 @@ declare namespace Components {
2224
2300
  * Billing feature flag
2225
2301
  */
2226
2302
  billing?: boolean;
2303
+ /**
2304
+ * Change due date feature flag
2305
+ */
2306
+ change_due_date?: boolean;
2307
+ /**
2308
+ * Advanced MFA feature flag
2309
+ */
2310
+ advanced_mfa?: boolean;
2227
2311
  };
2228
2312
  /**
2229
2313
  * AWS Cognito Pool details for the portal
@@ -2247,6 +2331,41 @@ declare namespace Components {
2247
2331
  * eu-central-1_CUEQRNbUb
2248
2332
  */
2249
2333
  cognito_user_pool_id?: string;
2334
+ /**
2335
+ * Password policy for the portal
2336
+ */
2337
+ password_policy?: {
2338
+ /**
2339
+ * Minimum password length
2340
+ * example:
2341
+ * 8
2342
+ */
2343
+ minimum_length?: number;
2344
+ /**
2345
+ * Require lowercase characters
2346
+ * example:
2347
+ * true
2348
+ */
2349
+ require_lowercase?: boolean;
2350
+ /**
2351
+ * Require uppercase characters
2352
+ * example:
2353
+ * true
2354
+ */
2355
+ require_uppercase?: boolean;
2356
+ /**
2357
+ * Require numbers
2358
+ * example:
2359
+ * true
2360
+ */
2361
+ require_numbers?: boolean;
2362
+ /**
2363
+ * Require symbols
2364
+ * example:
2365
+ * true
2366
+ */
2367
+ require_symbols?: boolean;
2368
+ };
2250
2369
  };
2251
2370
  /**
2252
2371
  * Stringified object with configuration details
@@ -2731,7 +2850,6 @@ declare namespace Paths {
2731
2850
  namespace Responses {
2732
2851
  export interface $201 {
2733
2852
  message: "User created successfully";
2734
- response: /* The portal user entity */ Components.Schemas.PortalUser;
2735
2853
  }
2736
2854
  export type $400 = Components.Responses.InvalidRequest;
2737
2855
  export type $500 = Components.Responses.InternalServerError;
@@ -3088,6 +3206,7 @@ declare namespace Paths {
3088
3206
  entity?: /* The mapped contact of the portal user */ Components.Schemas.Contact;
3089
3207
  files?: /* The file entity */ Components.Schemas.File[];
3090
3208
  relations?: Components.Schemas.EntityItem[];
3209
+ journey_actions?: Components.Schemas.JourneyActions[];
3091
3210
  }
3092
3211
  export type $401 = Components.Responses.Unauthorized;
3093
3212
  export type $403 = Components.Responses.Forbidden;
@@ -3175,6 +3294,7 @@ declare namespace Paths {
3175
3294
  * }
3176
3295
  */
3177
3296
  Components.Schemas.WorkflowExecution[];
3297
+ journey_actions?: Components.Schemas.JourneyActions[];
3178
3298
  }
3179
3299
  export type $401 = Components.Responses.Unauthorized;
3180
3300
  export type $403 = Components.Responses.Forbidden;
@@ -3309,6 +3429,27 @@ declare namespace Paths {
3309
3429
  export type $500 = Components.Responses.InternalServerError;
3310
3430
  }
3311
3431
  }
3432
+ namespace GetExternalLinks {
3433
+ namespace Parameters {
3434
+ export type ContactId = /**
3435
+ * Entity ID
3436
+ * example:
3437
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
3438
+ */
3439
+ Components.Schemas.EntityId /* uuid */;
3440
+ export type Origin = /* Origin of the portal */ Components.Schemas.Origin;
3441
+ }
3442
+ export interface QueryParameters {
3443
+ origin?: Parameters.Origin;
3444
+ contactId?: Parameters.ContactId;
3445
+ }
3446
+ namespace Responses {
3447
+ export type $200 = Components.Schemas.JourneyActions[];
3448
+ export type $401 = Components.Responses.Unauthorized;
3449
+ export type $403 = Components.Responses.Forbidden;
3450
+ export type $500 = Components.Responses.InternalServerError;
3451
+ }
3452
+ }
3312
3453
  namespace GetFileById {
3313
3454
  namespace Parameters {
3314
3455
  export type Id = /**
@@ -3419,6 +3560,7 @@ declare namespace Paths {
3419
3560
  * }
3420
3561
  */
3421
3562
  Components.Schemas.WorkflowExecution[];
3563
+ journey_actions?: Components.Schemas.JourneyActions[];
3422
3564
  }
3423
3565
  export type $401 = Components.Responses.Unauthorized;
3424
3566
  export type $403 = Components.Responses.Forbidden;
@@ -3509,6 +3651,7 @@ declare namespace Paths {
3509
3651
  * }
3510
3652
  */
3511
3653
  Components.Schemas.WorkflowExecution[];
3654
+ journey_actions?: Components.Schemas.JourneyActions[];
3512
3655
  }
3513
3656
  export type $401 = Components.Responses.Unauthorized;
3514
3657
  export type $403 = Components.Responses.Forbidden;
@@ -4454,6 +4597,16 @@ export interface OperationMethods {
4454
4597
  data?: any,
4455
4598
  config?: AxiosRequestConfig
4456
4599
  ): OperationResponse<Paths.DeletePortal.Responses.$204>
4600
+ /**
4601
+ * getExternalLinks - getExternalLinks
4602
+ *
4603
+ * Retrieves the portal configuration external links.
4604
+ */
4605
+ 'getExternalLinks'(
4606
+ parameters?: Parameters<Paths.GetExternalLinks.QueryParameters> | null,
4607
+ data?: any,
4608
+ config?: AxiosRequestConfig
4609
+ ): OperationResponse<Paths.GetExternalLinks.Responses.$200>
4457
4610
  /**
4458
4611
  * getPublicPortalConfig - getPublicPortalConfig
4459
4612
  *
@@ -5137,6 +5290,18 @@ export interface PathsDictionary {
5137
5290
  config?: AxiosRequestConfig
5138
5291
  ): OperationResponse<Paths.DeletePortal.Responses.$204>
5139
5292
  }
5293
+ ['/v2/portal/external-links']: {
5294
+ /**
5295
+ * getExternalLinks - getExternalLinks
5296
+ *
5297
+ * Retrieves the portal configuration external links.
5298
+ */
5299
+ 'get'(
5300
+ parameters?: Parameters<Paths.GetExternalLinks.QueryParameters> | null,
5301
+ data?: any,
5302
+ config?: AxiosRequestConfig
5303
+ ): OperationResponse<Paths.GetExternalLinks.Responses.$200>
5304
+ }
5140
5305
  ['/v2/portal/public/portal/config']: {
5141
5306
  /**
5142
5307
  * getPublicPortalConfig - getPublicPortalConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-rc.2",
4
4
  "description": "API Client for epilot portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -109,6 +109,23 @@
109
109
  ]
110
110
  }
111
111
  },
112
+ "/v2/portal/external-links": {
113
+ "get": {
114
+ "operationId": "getExternalLinks",
115
+ "parameters": [
116
+ {
117
+ "in": "query",
118
+ "name": "origin",
119
+ "required": false
120
+ },
121
+ {
122
+ "in": "query",
123
+ "name": "contactId",
124
+ "required": false
125
+ }
126
+ ]
127
+ }
128
+ },
112
129
  "/v2/portal/public/portal/config": {
113
130
  "get": {
114
131
  "operationId": "getPublicPortalConfig",
package/src/openapi.json CHANGED
@@ -140,9 +140,6 @@
140
140
  "enum": [
141
141
  "User created successfully"
142
142
  ]
143
- },
144
- "response": {
145
- "$ref": "#/components/schemas/PortalUser"
146
143
  }
147
144
  }
148
145
  }
@@ -433,6 +430,66 @@
433
430
  }
434
431
  }
435
432
  },
433
+ "/v2/portal/external-links": {
434
+ "get": {
435
+ "operationId": "getExternalLinks",
436
+ "summary": "getExternalLinks",
437
+ "description": "Retrieves the portal configuration external links.",
438
+ "tags": [
439
+ "ECP Admin",
440
+ "ECP"
441
+ ],
442
+ "parameters": [
443
+ {
444
+ "in": "query",
445
+ "name": "origin",
446
+ "required": false,
447
+ "schema": {
448
+ "$ref": "#/components/schemas/Origin"
449
+ },
450
+ "description": "Origin of the portal"
451
+ },
452
+ {
453
+ "in": "query",
454
+ "name": "contactId",
455
+ "required": false,
456
+ "schema": {
457
+ "$ref": "#/components/schemas/EntityId"
458
+ },
459
+ "description": "Contact ID of the user"
460
+ }
461
+ ],
462
+ "security": [
463
+ {
464
+ "EitherAuth": []
465
+ }
466
+ ],
467
+ "responses": {
468
+ "200": {
469
+ "description": "Portal config links retrieved successfully.",
470
+ "content": {
471
+ "application/json": {
472
+ "schema": {
473
+ "type": "array",
474
+ "items": {
475
+ "$ref": "#/components/schemas/JourneyActions"
476
+ }
477
+ }
478
+ }
479
+ }
480
+ },
481
+ "401": {
482
+ "$ref": "#/components/responses/Unauthorized"
483
+ },
484
+ "403": {
485
+ "$ref": "#/components/responses/Forbidden"
486
+ },
487
+ "500": {
488
+ "$ref": "#/components/responses/InternalServerError"
489
+ }
490
+ }
491
+ }
492
+ },
436
493
  "/v2/portal/public/portal/config": {
437
494
  "get": {
438
495
  "operationId": "getPublicPortalConfig",
@@ -1129,6 +1186,12 @@
1129
1186
  "items": {
1130
1187
  "$ref": "#/components/schemas/EntityItem"
1131
1188
  }
1189
+ },
1190
+ "journey_actions": {
1191
+ "type": "array",
1192
+ "items": {
1193
+ "$ref": "#/components/schemas/JourneyActions"
1194
+ }
1132
1195
  }
1133
1196
  }
1134
1197
  }
@@ -1954,6 +2017,12 @@
1954
2017
  "items": {
1955
2018
  "$ref": "#/components/schemas/WorkflowExecution"
1956
2019
  }
2020
+ },
2021
+ "journey_actions": {
2022
+ "type": "array",
2023
+ "items": {
2024
+ "$ref": "#/components/schemas/JourneyActions"
2025
+ }
1957
2026
  }
1958
2027
  }
1959
2028
  }
@@ -2350,6 +2419,12 @@
2350
2419
  "items": {
2351
2420
  "$ref": "#/components/schemas/WorkflowExecution"
2352
2421
  }
2422
+ },
2423
+ "journey_actions": {
2424
+ "type": "array",
2425
+ "items": {
2426
+ "$ref": "#/components/schemas/JourneyActions"
2427
+ }
2353
2428
  }
2354
2429
  }
2355
2430
  }
@@ -2571,6 +2646,12 @@
2571
2646
  "items": {
2572
2647
  "$ref": "#/components/schemas/WorkflowExecution"
2573
2648
  }
2649
+ },
2650
+ "journey_actions": {
2651
+ "type": "array",
2652
+ "items": {
2653
+ "$ref": "#/components/schemas/JourneyActions"
2654
+ }
2574
2655
  }
2575
2656
  }
2576
2657
  }
@@ -4185,6 +4266,11 @@
4185
4266
  "$ref": "#/components/schemas/EntityId",
4186
4267
  "description": "ID of the confirmation email template upon registration"
4187
4268
  },
4269
+ "advancedMFA": {
4270
+ "$ref": "#/components/schemas/EntityId",
4271
+ "nullable": true,
4272
+ "description": "ID of the advanced MFA with login link and login code"
4273
+ },
4188
4274
  "forgotPassword": {
4189
4275
  "$ref": "#/components/schemas/EntityId",
4190
4276
  "description": "ID of the email template for forgot password"
@@ -4204,6 +4290,10 @@
4204
4290
  "onDocUpload": {
4205
4291
  "$ref": "#/components/schemas/EntityId",
4206
4292
  "description": "ID of the email template for document upload"
4293
+ },
4294
+ "onWorkflowStepAssigned": {
4295
+ "$ref": "#/components/schemas/EntityId",
4296
+ "description": "ID of the email template for workflow step assignment"
4207
4297
  }
4208
4298
  }
4209
4299
  },
@@ -4527,6 +4617,14 @@
4527
4617
  "billing": {
4528
4618
  "type": "boolean",
4529
4619
  "description": "Billing feature flag"
4620
+ },
4621
+ "change_due_date": {
4622
+ "type": "boolean",
4623
+ "description": "Change due date feature flag"
4624
+ },
4625
+ "advanced_mfa": {
4626
+ "type": "boolean",
4627
+ "description": "Advanced MFA feature flag"
4530
4628
  }
4531
4629
  }
4532
4630
  },
@@ -4548,6 +4646,37 @@
4548
4646
  "type": "string",
4549
4647
  "example": "eu-central-1_CUEQRNbUb",
4550
4648
  "description": "Cognito user pool ID"
4649
+ },
4650
+ "password_policy": {
4651
+ "type": "object",
4652
+ "description": "Password policy for the portal",
4653
+ "properties": {
4654
+ "minimum_length": {
4655
+ "type": "integer",
4656
+ "example": 8,
4657
+ "description": "Minimum password length"
4658
+ },
4659
+ "require_lowercase": {
4660
+ "type": "boolean",
4661
+ "example": true,
4662
+ "description": "Require lowercase characters"
4663
+ },
4664
+ "require_uppercase": {
4665
+ "type": "boolean",
4666
+ "example": true,
4667
+ "description": "Require uppercase characters"
4668
+ },
4669
+ "require_numbers": {
4670
+ "type": "boolean",
4671
+ "example": true,
4672
+ "description": "Require numbers"
4673
+ },
4674
+ "require_symbols": {
4675
+ "type": "boolean",
4676
+ "example": true,
4677
+ "description": "Require symbols"
4678
+ }
4679
+ }
4551
4680
  }
4552
4681
  }
4553
4682
  },
@@ -6152,6 +6281,61 @@
6152
6281
  "action"
6153
6282
  ]
6154
6283
  },
6284
+ "ActionLabel": {
6285
+ "type": "object",
6286
+ "properties": {
6287
+ "en": {
6288
+ "type": "string",
6289
+ "nullable": true
6290
+ },
6291
+ "de": {
6292
+ "type": "string",
6293
+ "nullable": true
6294
+ }
6295
+ }
6296
+ },
6297
+ "Rule": {
6298
+ "type": "object",
6299
+ "properties": {
6300
+ "entity": {
6301
+ "type": "string",
6302
+ "nullable": true
6303
+ },
6304
+ "attribute": {
6305
+ "type": "string",
6306
+ "nullable": true
6307
+ },
6308
+ "attribute_value": {
6309
+ "type": "string",
6310
+ "nullable": true
6311
+ }
6312
+ }
6313
+ },
6314
+ "JourneyActions": {
6315
+ "type": "object",
6316
+ "properties": {
6317
+ "journey_id": {
6318
+ "type": "string",
6319
+ "nullable": true
6320
+ },
6321
+ "action_label": {
6322
+ "type": "object",
6323
+ "$ref": "#/components/schemas/ActionLabel",
6324
+ "nullable": true
6325
+ },
6326
+ "slug": {
6327
+ "type": "string",
6328
+ "nullable": true
6329
+ },
6330
+ "rules": {
6331
+ "type": "array",
6332
+ "items": {
6333
+ "$ref": "#/components/schemas/Rule"
6334
+ },
6335
+ "nullable": true
6336
+ }
6337
+ }
6338
+ },
6155
6339
  "WorkflowExecution": {
6156
6340
  "type": "object",
6157
6341
  "properties": {},