@epilot/customer-portal-client 0.42.0 → 0.43.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/openapi.d.ts +50 -8
- package/package.json +1 -1
- package/src/openapi.json +56 -7
package/dist/openapi.d.ts
CHANGED
|
@@ -2769,7 +2769,7 @@ declare namespace Components {
|
|
|
2769
2769
|
*/
|
|
2770
2770
|
fields?: string[];
|
|
2771
2771
|
/**
|
|
2772
|
-
*
|
|
2772
|
+
* DEPRECATED — client-supplied template strings to parse and return as synthetic fields. Supports both string values and nested objects of strings. Use `templates_ref` instead so templates are derived server-side from admin-authored portal configuration; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
2773
2773
|
* example:
|
|
2774
2774
|
* {
|
|
2775
2775
|
* "content_top_name": "Customer #{{contract.customer_number}}",
|
|
@@ -2786,6 +2786,10 @@ declare namespace Components {
|
|
|
2786
2786
|
[name: string]: string;
|
|
2787
2787
|
};
|
|
2788
2788
|
};
|
|
2789
|
+
/**
|
|
2790
|
+
* Reference to the portal page (or a single block within it) whose admin-configured content provides the templates, derived server-side. With only `page_id`, the derived templates are a nested map keyed by block id, mirroring the entity detail page contract.
|
|
2791
|
+
*/
|
|
2792
|
+
templates_ref?: /* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored. */ TemplatesRef;
|
|
2789
2793
|
/**
|
|
2790
2794
|
* Additional filters to apply to the search query
|
|
2791
2795
|
* example:
|
|
@@ -3144,7 +3148,7 @@ declare namespace Components {
|
|
|
3144
3148
|
*/
|
|
3145
3149
|
group?: string;
|
|
3146
3150
|
/**
|
|
3147
|
-
*
|
|
3151
|
+
* DEPRECATED — client-supplied Handlebars template for the group title. Use `templates_ref` (global_search_config_id) instead; overridden when `templates_ref` derives a group title and rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
3148
3152
|
* example:
|
|
3149
3153
|
* {{customer[Primary].first_name}} {{customer[Primary].last_name}}
|
|
3150
3154
|
*/
|
|
@@ -3189,7 +3193,7 @@ declare namespace Components {
|
|
|
3189
3193
|
*/
|
|
3190
3194
|
fields?: string[];
|
|
3191
3195
|
/**
|
|
3192
|
-
*
|
|
3196
|
+
* DEPRECATED — client-supplied template strings to parse and return as synthetic fields. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
3193
3197
|
* example:
|
|
3194
3198
|
* {
|
|
3195
3199
|
* "content_top_name": "Customer #{{contract.customer_number}}",
|
|
@@ -3200,6 +3204,10 @@ declare namespace Components {
|
|
|
3200
3204
|
templates?: {
|
|
3201
3205
|
[name: string]: string;
|
|
3202
3206
|
};
|
|
3207
|
+
/**
|
|
3208
|
+
* Reference to admin-authored configuration providing the templates, derived server-side. For the global search block pass `global_search_config_id`; the derived templates also supply the group title template (overriding `group_title`).
|
|
3209
|
+
*/
|
|
3210
|
+
templates_ref?: /* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored. */ TemplatesRef;
|
|
3203
3211
|
/**
|
|
3204
3212
|
* Additional filters to apply to the search query
|
|
3205
3213
|
* example:
|
|
@@ -3279,9 +3287,13 @@ declare namespace Components {
|
|
|
3279
3287
|
*/
|
|
3280
3288
|
EntitySlug;
|
|
3281
3289
|
targets?: string /* uuid */[];
|
|
3290
|
+
/**
|
|
3291
|
+
* DEPRECATED — client-supplied Handlebars templates. Use `templates_ref` instead so templates are derived server-side from admin-authored portal configuration. Ignored when `templates_ref` is present; rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
3292
|
+
*/
|
|
3282
3293
|
templates?: {
|
|
3283
3294
|
[name: string]: string;
|
|
3284
3295
|
};
|
|
3296
|
+
templates_ref?: /* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored. */ TemplatesRef;
|
|
3285
3297
|
}
|
|
3286
3298
|
export interface EntityTemplates {
|
|
3287
3299
|
/**
|
|
@@ -8296,6 +8308,27 @@ declare namespace Components {
|
|
|
8296
8308
|
url?: string;
|
|
8297
8309
|
};
|
|
8298
8310
|
}
|
|
8311
|
+
/**
|
|
8312
|
+
* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored.
|
|
8313
|
+
*/
|
|
8314
|
+
export interface TemplatesRef {
|
|
8315
|
+
/**
|
|
8316
|
+
* ID of the portal page to derive templates from. When given without `block_id`, templates are derived from every block of the page and returned resolved as a nested map keyed by block id (the entity detail page contract).
|
|
8317
|
+
*/
|
|
8318
|
+
page_id?: string;
|
|
8319
|
+
/**
|
|
8320
|
+
* ID of a block within the page. Templates are derived from the block's content according to its block type (e.g. meter_selector, meter_reading, entity_list).
|
|
8321
|
+
*/
|
|
8322
|
+
block_id?: string;
|
|
8323
|
+
/**
|
|
8324
|
+
* For blocks carrying a per-schema configuration array (entity_list), the id of the configuration item to derive templates from. Requires `page_id` and `block_id`.
|
|
8325
|
+
*/
|
|
8326
|
+
config_id?: string;
|
|
8327
|
+
/**
|
|
8328
|
+
* ID of the portal's `global_search` configuration item to derive search result templates and the group title template from. Mutually exclusive with `page_id`.
|
|
8329
|
+
*/
|
|
8330
|
+
global_search_config_id?: string;
|
|
8331
|
+
}
|
|
8299
8332
|
export interface TriggerPortalFlow {
|
|
8300
8333
|
/**
|
|
8301
8334
|
* Id of the activity
|
|
@@ -11498,11 +11531,15 @@ declare namespace Paths {
|
|
|
11498
11531
|
}
|
|
11499
11532
|
export interface RequestBody {
|
|
11500
11533
|
/**
|
|
11501
|
-
*
|
|
11534
|
+
* DEPRECATED — client-supplied map of content field name to Handlebars template string, resolved per related meter and returned as templates_output on the meter. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
11502
11535
|
*/
|
|
11503
11536
|
templates?: {
|
|
11504
11537
|
[name: string]: string;
|
|
11505
11538
|
};
|
|
11539
|
+
/**
|
|
11540
|
+
* Reference to the meter selector block whose admin-configured content provides the templates, derived server-side.
|
|
11541
|
+
*/
|
|
11542
|
+
templates_ref?: /* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored. */ Components.Schemas.TemplatesRef;
|
|
11506
11543
|
}
|
|
11507
11544
|
namespace Responses {
|
|
11508
11545
|
export interface $200 {
|
|
@@ -12759,17 +12796,21 @@ declare namespace Paths {
|
|
|
12759
12796
|
from?: number;
|
|
12760
12797
|
size?: number;
|
|
12761
12798
|
/**
|
|
12762
|
-
*
|
|
12799
|
+
* DEPRECATED — client-supplied template map (key to Handlebars template string), resolved per reading. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.
|
|
12763
12800
|
*/
|
|
12764
12801
|
templates?: {
|
|
12765
12802
|
[name: string]: string;
|
|
12766
12803
|
};
|
|
12767
12804
|
/**
|
|
12768
|
-
*
|
|
12805
|
+
* DEPRECATED — client-supplied template map resolved against the counter entity. Use `templates_ref` instead; same deprecation rules as `templates`.
|
|
12769
12806
|
*/
|
|
12770
12807
|
counter_templates?: {
|
|
12771
12808
|
[name: string]: string;
|
|
12772
12809
|
};
|
|
12810
|
+
/**
|
|
12811
|
+
* Reference to the meter reading block whose admin-configured content provides both the per-reading templates (content_top_name, main_content_name, content_bottom_name) and the counter templates (counter_title_name, counter_subtitle_name), derived server-side.
|
|
12812
|
+
*/
|
|
12813
|
+
templates_ref?: /* Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored. */ Components.Schemas.TemplatesRef;
|
|
12773
12814
|
}
|
|
12774
12815
|
namespace Responses {
|
|
12775
12816
|
export interface $200 {
|
|
@@ -18641,7 +18682,7 @@ export interface OperationMethods {
|
|
|
18641
18682
|
/**
|
|
18642
18683
|
* interpolatePortalPages - interpolatePortalPages
|
|
18643
18684
|
*
|
|
18644
|
-
* Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved.
|
|
18685
|
+
* Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved. Portal Builder preview only: requires a 360 (epilot) token or a `portal_preview` token; plain portal user tokens get 403.
|
|
18645
18686
|
*/
|
|
18646
18687
|
'interpolatePortalPages'(
|
|
18647
18688
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -20676,7 +20717,7 @@ export interface PathsDictionary {
|
|
|
20676
20717
|
/**
|
|
20677
20718
|
* interpolatePortalPages - interpolatePortalPages
|
|
20678
20719
|
*
|
|
20679
|
-
* Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved.
|
|
20720
|
+
* Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved. Portal Builder preview only: requires a 360 (epilot) token or a `portal_preview` token; plain portal user tokens get 403.
|
|
20680
20721
|
*/
|
|
20681
20722
|
'post'(
|
|
20682
20723
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -21242,6 +21283,7 @@ export type Source = Components.Schemas.Source;
|
|
|
21242
21283
|
export type SwappableConfig = Components.Schemas.SwappableConfig;
|
|
21243
21284
|
export type TariffType = Components.Schemas.TariffType;
|
|
21244
21285
|
export type TeaserWidget = Components.Schemas.TeaserWidget;
|
|
21286
|
+
export type TemplatesRef = Components.Schemas.TemplatesRef;
|
|
21245
21287
|
export type TriggerPortalFlow = Components.Schemas.TriggerPortalFlow;
|
|
21246
21288
|
export type UpdateOnlyPortalConfigAttributes = Components.Schemas.UpdateOnlyPortalConfigAttributes;
|
|
21247
21289
|
export type UpsertPortalConfig = Components.Schemas.UpsertPortalConfig;
|
package/package.json
CHANGED
package/src/openapi.json
CHANGED
|
@@ -6043,10 +6043,15 @@
|
|
|
6043
6043
|
"properties": {
|
|
6044
6044
|
"templates": {
|
|
6045
6045
|
"type": "object",
|
|
6046
|
+
"deprecated": true,
|
|
6046
6047
|
"additionalProperties": {
|
|
6047
6048
|
"type": "string"
|
|
6048
6049
|
},
|
|
6049
|
-
"description": "
|
|
6050
|
+
"description": "DEPRECATED — client-supplied map of content field name to Handlebars template string, resolved per related meter and returned as templates_output on the meter. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled."
|
|
6051
|
+
},
|
|
6052
|
+
"templates_ref": {
|
|
6053
|
+
"$ref": "#/components/schemas/TemplatesRef",
|
|
6054
|
+
"description": "Reference to the meter selector block whose admin-configured content provides the templates, derived server-side."
|
|
6050
6055
|
}
|
|
6051
6056
|
}
|
|
6052
6057
|
}
|
|
@@ -8521,17 +8526,23 @@
|
|
|
8521
8526
|
},
|
|
8522
8527
|
"templates": {
|
|
8523
8528
|
"type": "object",
|
|
8529
|
+
"deprecated": true,
|
|
8524
8530
|
"additionalProperties": {
|
|
8525
8531
|
"type": "string"
|
|
8526
8532
|
},
|
|
8527
|
-
"description": "
|
|
8533
|
+
"description": "DEPRECATED — client-supplied template map (key to Handlebars template string), resolved per reading. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled."
|
|
8528
8534
|
},
|
|
8529
8535
|
"counter_templates": {
|
|
8530
8536
|
"type": "object",
|
|
8537
|
+
"deprecated": true,
|
|
8531
8538
|
"additionalProperties": {
|
|
8532
8539
|
"type": "string"
|
|
8533
8540
|
},
|
|
8534
|
-
"description": "
|
|
8541
|
+
"description": "DEPRECATED — client-supplied template map resolved against the counter entity. Use `templates_ref` instead; same deprecation rules as `templates`."
|
|
8542
|
+
},
|
|
8543
|
+
"templates_ref": {
|
|
8544
|
+
"$ref": "#/components/schemas/TemplatesRef",
|
|
8545
|
+
"description": "Reference to the meter reading block whose admin-configured content provides both the per-reading templates (content_top_name, main_content_name, content_bottom_name) and the counter templates (counter_title_name, counter_subtitle_name), derived server-side."
|
|
8535
8546
|
}
|
|
8536
8547
|
}
|
|
8537
8548
|
}
|
|
@@ -9303,7 +9314,7 @@
|
|
|
9303
9314
|
"post": {
|
|
9304
9315
|
"operationId": "interpolatePortalPages",
|
|
9305
9316
|
"summary": "interpolatePortalPages",
|
|
9306
|
-
"description": "Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved.",
|
|
9317
|
+
"description": "Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved. Portal Builder preview only: requires a 360 (epilot) token or a `portal_preview` token; plain portal user tokens get 403.",
|
|
9307
9318
|
"tags": [
|
|
9308
9319
|
"ECP Admin"
|
|
9309
9320
|
],
|
|
@@ -13929,9 +13940,36 @@
|
|
|
13929
13940
|
},
|
|
13930
13941
|
"templates": {
|
|
13931
13942
|
"type": "object",
|
|
13943
|
+
"deprecated": true,
|
|
13944
|
+
"description": "DEPRECATED — client-supplied Handlebars templates. Use `templates_ref` instead so templates are derived server-side from admin-authored portal configuration. Ignored when `templates_ref` is present; rejected once the org has the `portals-reject-client-templates` flag enabled.",
|
|
13932
13945
|
"additionalProperties": {
|
|
13933
13946
|
"type": "string"
|
|
13934
13947
|
}
|
|
13948
|
+
},
|
|
13949
|
+
"templates_ref": {
|
|
13950
|
+
"$ref": "#/components/schemas/TemplatesRef"
|
|
13951
|
+
}
|
|
13952
|
+
}
|
|
13953
|
+
},
|
|
13954
|
+
"TemplatesRef": {
|
|
13955
|
+
"type": "object",
|
|
13956
|
+
"description": "Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference and raw `templates` are provided, the reference wins and the raw templates are ignored.",
|
|
13957
|
+
"properties": {
|
|
13958
|
+
"page_id": {
|
|
13959
|
+
"type": "string",
|
|
13960
|
+
"description": "ID of the portal page to derive templates from. When given without `block_id`, templates are derived from every block of the page and returned resolved as a nested map keyed by block id (the entity detail page contract)."
|
|
13961
|
+
},
|
|
13962
|
+
"block_id": {
|
|
13963
|
+
"type": "string",
|
|
13964
|
+
"description": "ID of a block within the page. Templates are derived from the block's content according to its block type (e.g. meter_selector, meter_reading, entity_list)."
|
|
13965
|
+
},
|
|
13966
|
+
"config_id": {
|
|
13967
|
+
"type": "string",
|
|
13968
|
+
"description": "For blocks carrying a per-schema configuration array (entity_list), the id of the configuration item to derive templates from. Requires `page_id` and `block_id`."
|
|
13969
|
+
},
|
|
13970
|
+
"global_search_config_id": {
|
|
13971
|
+
"type": "string",
|
|
13972
|
+
"description": "ID of the portal's `global_search` configuration item to derive search result templates and the group title template from. Mutually exclusive with `page_id`."
|
|
13935
13973
|
}
|
|
13936
13974
|
}
|
|
13937
13975
|
},
|
|
@@ -15773,7 +15811,8 @@
|
|
|
15773
15811
|
},
|
|
15774
15812
|
"templates": {
|
|
15775
15813
|
"type": "object",
|
|
15776
|
-
"
|
|
15814
|
+
"deprecated": true,
|
|
15815
|
+
"description": "DEPRECATED — client-supplied template strings to parse and return as synthetic fields. Supports both string values and nested objects of strings. Use `templates_ref` instead so templates are derived server-side from admin-authored portal configuration; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.",
|
|
15777
15816
|
"additionalProperties": {
|
|
15778
15817
|
"oneOf": [
|
|
15779
15818
|
{
|
|
@@ -15797,6 +15836,10 @@
|
|
|
15797
15836
|
}
|
|
15798
15837
|
}
|
|
15799
15838
|
},
|
|
15839
|
+
"templates_ref": {
|
|
15840
|
+
"$ref": "#/components/schemas/TemplatesRef",
|
|
15841
|
+
"description": "Reference to the portal page (or a single block within it) whose admin-configured content provides the templates, derived server-side. With only `page_id`, the derived templates are a nested map keyed by block id, mirroring the entity detail page contract."
|
|
15842
|
+
},
|
|
15800
15843
|
"filters": {
|
|
15801
15844
|
"type": "array",
|
|
15802
15845
|
"description": "Additional filters to apply to the search query",
|
|
@@ -15913,7 +15956,8 @@
|
|
|
15913
15956
|
},
|
|
15914
15957
|
"group_title": {
|
|
15915
15958
|
"type": "string",
|
|
15916
|
-
"
|
|
15959
|
+
"deprecated": true,
|
|
15960
|
+
"description": "DEPRECATED — client-supplied Handlebars template for the group title. Use `templates_ref` (global_search_config_id) instead; overridden when `templates_ref` derives a group title and rejected once the org has the `portals-reject-client-templates` flag enabled.",
|
|
15917
15961
|
"example": "{{customer[Primary].first_name}} {{customer[Primary].last_name}}"
|
|
15918
15962
|
},
|
|
15919
15963
|
"group_size": {
|
|
@@ -15980,7 +16024,8 @@
|
|
|
15980
16024
|
},
|
|
15981
16025
|
"templates": {
|
|
15982
16026
|
"type": "object",
|
|
15983
|
-
"
|
|
16027
|
+
"deprecated": true,
|
|
16028
|
+
"description": "DEPRECATED — client-supplied template strings to parse and return as synthetic fields. Use `templates_ref` instead; ignored when `templates_ref` is present and rejected once the org has the `portals-reject-client-templates` flag enabled.",
|
|
15984
16029
|
"additionalProperties": {
|
|
15985
16030
|
"type": "string"
|
|
15986
16031
|
},
|
|
@@ -15990,6 +16035,10 @@
|
|
|
15990
16035
|
"content_bottom_name": "{{custom_contract_delivery_address}}"
|
|
15991
16036
|
}
|
|
15992
16037
|
},
|
|
16038
|
+
"templates_ref": {
|
|
16039
|
+
"$ref": "#/components/schemas/TemplatesRef",
|
|
16040
|
+
"description": "Reference to admin-authored configuration providing the templates, derived server-side. For the global search block pass `global_search_config_id`; the derived templates also supply the group title template (overriding `group_title`)."
|
|
16041
|
+
},
|
|
15993
16042
|
"filters": {
|
|
15994
16043
|
"type": "array",
|
|
15995
16044
|
"description": "Additional filters to apply to the search query",
|