@epilot/entity-client 7.3.0 → 7.4.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 +159 -2
- package/dist/openapi.json +111 -2
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -834,6 +834,19 @@ declare namespace Components {
|
|
|
834
834
|
*/
|
|
835
835
|
DefaultAddressFields;
|
|
836
836
|
}
|
|
837
|
+
/**
|
|
838
|
+
* Configuration for adjusting a contract installment through a Journey.
|
|
839
|
+
* example:
|
|
840
|
+
* {
|
|
841
|
+
* "journey_id": "adjust-installment-flow"
|
|
842
|
+
* }
|
|
843
|
+
*/
|
|
844
|
+
export interface AdjustInstallmentCapabilityConfig {
|
|
845
|
+
/**
|
|
846
|
+
* ID of the Flow Journey to open when adjusting the installment.
|
|
847
|
+
*/
|
|
848
|
+
journey_id: string;
|
|
849
|
+
}
|
|
837
850
|
export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row. */ TableAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
|
|
838
851
|
/**
|
|
839
852
|
* a readonly computed ID for the attribute including schema slug and the attribute ID
|
|
@@ -3297,6 +3310,15 @@ declare namespace Components {
|
|
|
3297
3310
|
*/
|
|
3298
3311
|
title?: string;
|
|
3299
3312
|
attributes?: Attribute[];
|
|
3313
|
+
/**
|
|
3314
|
+
* Allow conditional variants of the entity to override the values managed by this
|
|
3315
|
+
* capability. Only meaningful on schemas that declare `conditions` and on capabilities
|
|
3316
|
+
* that render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.
|
|
3317
|
+
* Attributes carried by the capability opt in individually via their own
|
|
3318
|
+
* `variant_overridable` flag.
|
|
3319
|
+
*
|
|
3320
|
+
*/
|
|
3321
|
+
variant_overridable?: boolean;
|
|
3300
3322
|
_purpose?: /**
|
|
3301
3323
|
* example:
|
|
3302
3324
|
* taxonomy-slug:classification-slug
|
|
@@ -3312,6 +3334,14 @@ declare namespace Components {
|
|
|
3312
3334
|
* 123e4567-e89b-12d3-a456-426614174000
|
|
3313
3335
|
*/
|
|
3314
3336
|
app_id?: string;
|
|
3337
|
+
adjust_installment?: /**
|
|
3338
|
+
* Configuration for adjusting a contract installment through a Journey.
|
|
3339
|
+
* example:
|
|
3340
|
+
* {
|
|
3341
|
+
* "journey_id": "adjust-installment-flow"
|
|
3342
|
+
* }
|
|
3343
|
+
*/
|
|
3344
|
+
AdjustInstallmentCapabilityConfig;
|
|
3315
3345
|
ui_config?: {
|
|
3316
3346
|
/**
|
|
3317
3347
|
* Whether the capability is filterable
|
|
@@ -3395,6 +3425,24 @@ declare namespace Components {
|
|
|
3395
3425
|
*/
|
|
3396
3426
|
resource?: string;
|
|
3397
3427
|
};
|
|
3428
|
+
/**
|
|
3429
|
+
* Whether this widget is switched on by default for entity types that have the capability. Only meaningful on the `EntityDetailsV2:Widget` hook. Defaults to true when omitted. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_visibility` and wins over this.
|
|
3430
|
+
* example:
|
|
3431
|
+
* false
|
|
3432
|
+
*/
|
|
3433
|
+
default_visible?: boolean;
|
|
3434
|
+
/**
|
|
3435
|
+
* How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.
|
|
3436
|
+
* example:
|
|
3437
|
+
* half_width
|
|
3438
|
+
*/
|
|
3439
|
+
default_width?: "one_third_width" | "half_width" | "two_third_width" | "full_width";
|
|
3440
|
+
/**
|
|
3441
|
+
* The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.
|
|
3442
|
+
* example:
|
|
3443
|
+
* entity_address_maps
|
|
3444
|
+
*/
|
|
3445
|
+
pricing_tier_setting?: string;
|
|
3398
3446
|
}[];
|
|
3399
3447
|
/**
|
|
3400
3448
|
* This capability should only be active when the feature flag is enabled
|
|
@@ -3442,6 +3490,15 @@ declare namespace Components {
|
|
|
3442
3490
|
*/
|
|
3443
3491
|
title?: string;
|
|
3444
3492
|
attributes?: Attribute[];
|
|
3493
|
+
/**
|
|
3494
|
+
* Allow conditional variants of the entity to override the values managed by this
|
|
3495
|
+
* capability. Only meaningful on schemas that declare `conditions` and on capabilities
|
|
3496
|
+
* that render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.
|
|
3497
|
+
* Attributes carried by the capability opt in individually via their own
|
|
3498
|
+
* `variant_overridable` flag.
|
|
3499
|
+
*
|
|
3500
|
+
*/
|
|
3501
|
+
variant_overridable?: boolean;
|
|
3445
3502
|
_purpose?: /**
|
|
3446
3503
|
* example:
|
|
3447
3504
|
* taxonomy-slug:classification-slug
|
|
@@ -3457,6 +3514,14 @@ declare namespace Components {
|
|
|
3457
3514
|
* 123e4567-e89b-12d3-a456-426614174000
|
|
3458
3515
|
*/
|
|
3459
3516
|
app_id?: string;
|
|
3517
|
+
adjust_installment?: /**
|
|
3518
|
+
* Configuration for adjusting a contract installment through a Journey.
|
|
3519
|
+
* example:
|
|
3520
|
+
* {
|
|
3521
|
+
* "journey_id": "adjust-installment-flow"
|
|
3522
|
+
* }
|
|
3523
|
+
*/
|
|
3524
|
+
AdjustInstallmentCapabilityConfig;
|
|
3460
3525
|
ui_config?: {
|
|
3461
3526
|
/**
|
|
3462
3527
|
* Whether the capability is filterable
|
|
@@ -3540,6 +3605,24 @@ declare namespace Components {
|
|
|
3540
3605
|
*/
|
|
3541
3606
|
resource?: string;
|
|
3542
3607
|
};
|
|
3608
|
+
/**
|
|
3609
|
+
* Whether this widget is switched on by default for entity types that have the capability. Only meaningful on the `EntityDetailsV2:Widget` hook. Defaults to true when omitted. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_visibility` and wins over this.
|
|
3610
|
+
* example:
|
|
3611
|
+
* false
|
|
3612
|
+
*/
|
|
3613
|
+
default_visible?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.
|
|
3616
|
+
* example:
|
|
3617
|
+
* half_width
|
|
3618
|
+
*/
|
|
3619
|
+
default_width?: "one_third_width" | "half_width" | "two_third_width" | "full_width";
|
|
3620
|
+
/**
|
|
3621
|
+
* The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.
|
|
3622
|
+
* example:
|
|
3623
|
+
* entity_address_maps
|
|
3624
|
+
*/
|
|
3625
|
+
pricing_tier_setting?: string;
|
|
3543
3626
|
}[];
|
|
3544
3627
|
/**
|
|
3545
3628
|
* This capability should only be active when the feature flag is enabled
|
|
@@ -4535,7 +4618,7 @@ declare namespace Components {
|
|
|
4535
4618
|
show_sharing_button?: boolean;
|
|
4536
4619
|
};
|
|
4537
4620
|
/**
|
|
4538
|
-
*
|
|
4621
|
+
* Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.
|
|
4539
4622
|
*/
|
|
4540
4623
|
grid_layout?: {
|
|
4541
4624
|
/**
|
|
@@ -4555,6 +4638,28 @@ declare namespace Components {
|
|
|
4555
4638
|
* Ordered list of widget ids controlling the entity-details widget-grid order. Each id is a capability widget's `component` (or `summary` for the synthesized summary card); widgets absent from the list keep their natural order at the end.
|
|
4556
4639
|
*/
|
|
4557
4640
|
widget_order?: string[];
|
|
4641
|
+
/**
|
|
4642
|
+
* Per-widget on/off state for the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_visible`, and then to visible. Do not seed this map from migrations — doing so would freeze today's defaults into the schema.
|
|
4643
|
+
* example:
|
|
4644
|
+
* {
|
|
4645
|
+
* "next_best_action": true,
|
|
4646
|
+
* "address_map": false
|
|
4647
|
+
* }
|
|
4648
|
+
*/
|
|
4649
|
+
widget_visibility?: {
|
|
4650
|
+
[name: string]: boolean;
|
|
4651
|
+
};
|
|
4652
|
+
/**
|
|
4653
|
+
* Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.
|
|
4654
|
+
* example:
|
|
4655
|
+
* {
|
|
4656
|
+
* "address_map": "full_width",
|
|
4657
|
+
* "recent_communications": "one_third_width"
|
|
4658
|
+
* }
|
|
4659
|
+
*/
|
|
4660
|
+
widget_widths?: {
|
|
4661
|
+
[name: string]: "one_third_width" | "half_width" | "two_third_width" | "full_width";
|
|
4662
|
+
};
|
|
4558
4663
|
};
|
|
4559
4664
|
capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
4560
4665
|
/**
|
|
@@ -4966,7 +5071,7 @@ declare namespace Components {
|
|
|
4966
5071
|
show_sharing_button?: boolean;
|
|
4967
5072
|
};
|
|
4968
5073
|
/**
|
|
4969
|
-
*
|
|
5074
|
+
* Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.
|
|
4970
5075
|
*/
|
|
4971
5076
|
grid_layout?: {
|
|
4972
5077
|
/**
|
|
@@ -4986,6 +5091,28 @@ declare namespace Components {
|
|
|
4986
5091
|
* Ordered list of widget ids controlling the entity-details widget-grid order. Each id is a capability widget's `component` (or `summary` for the synthesized summary card); widgets absent from the list keep their natural order at the end.
|
|
4987
5092
|
*/
|
|
4988
5093
|
widget_order?: string[];
|
|
5094
|
+
/**
|
|
5095
|
+
* Per-widget on/off state for the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_visible`, and then to visible. Do not seed this map from migrations — doing so would freeze today's defaults into the schema.
|
|
5096
|
+
* example:
|
|
5097
|
+
* {
|
|
5098
|
+
* "next_best_action": true,
|
|
5099
|
+
* "address_map": false
|
|
5100
|
+
* }
|
|
5101
|
+
*/
|
|
5102
|
+
widget_visibility?: {
|
|
5103
|
+
[name: string]: boolean;
|
|
5104
|
+
};
|
|
5105
|
+
/**
|
|
5106
|
+
* Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.
|
|
5107
|
+
* example:
|
|
5108
|
+
* {
|
|
5109
|
+
* "address_map": "full_width",
|
|
5110
|
+
* "recent_communications": "one_third_width"
|
|
5111
|
+
* }
|
|
5112
|
+
*/
|
|
5113
|
+
widget_widths?: {
|
|
5114
|
+
[name: string]: "one_third_width" | "half_width" | "two_third_width" | "full_width";
|
|
5115
|
+
};
|
|
4989
5116
|
};
|
|
4990
5117
|
capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
4991
5118
|
/**
|
|
@@ -6076,6 +6203,34 @@ declare namespace Components {
|
|
|
6076
6203
|
* ]
|
|
6077
6204
|
*/
|
|
6078
6205
|
fields?: string[];
|
|
6206
|
+
/**
|
|
6207
|
+
* Narrows this node's traversal results to entities matching every filter (AND semantics). Useful for
|
|
6208
|
+
* disambiguating among multiple entities reachable via the same graph edge.
|
|
6209
|
+
*
|
|
6210
|
+
*/
|
|
6211
|
+
filter?: /* Entities are included in this node's result only if `attribute` exactly equals the literal `value`. */ GraphNodeFilter[];
|
|
6212
|
+
}
|
|
6213
|
+
/**
|
|
6214
|
+
* Entities are included in this node's result only if `attribute` exactly equals the literal `value`.
|
|
6215
|
+
*/
|
|
6216
|
+
export interface GraphNodeFilter {
|
|
6217
|
+
/**
|
|
6218
|
+
* Entity attribute name to match against. Must be a plain attribute name, not an Elasticsearch field path.
|
|
6219
|
+
* example:
|
|
6220
|
+
* order_number
|
|
6221
|
+
*/
|
|
6222
|
+
attribute: string;
|
|
6223
|
+
/**
|
|
6224
|
+
* Literal value the attribute must exactly equal for the entity to be included in this node's result.
|
|
6225
|
+
* example:
|
|
6226
|
+
* OR-113
|
|
6227
|
+
*/
|
|
6228
|
+
value: /**
|
|
6229
|
+
* Literal value the attribute must exactly equal for the entity to be included in this node's result.
|
|
6230
|
+
* example:
|
|
6231
|
+
* OR-113
|
|
6232
|
+
*/
|
|
6233
|
+
(string | null) | number | boolean;
|
|
6079
6234
|
}
|
|
6080
6235
|
export interface GraphQueryRequest {
|
|
6081
6236
|
seed: GraphSeed;
|
|
@@ -19436,6 +19591,7 @@ export type ActivityItem = Components.Schemas.ActivityItem;
|
|
|
19436
19591
|
export type ActivityType = Components.Schemas.ActivityType;
|
|
19437
19592
|
export type AddressAttribute = Components.Schemas.AddressAttribute;
|
|
19438
19593
|
export type AddressRelationAttribute = Components.Schemas.AddressRelationAttribute;
|
|
19594
|
+
export type AdjustInstallmentCapabilityConfig = Components.Schemas.AdjustInstallmentCapabilityConfig;
|
|
19439
19595
|
export type Attribute = Components.Schemas.Attribute;
|
|
19440
19596
|
export type AttributeWithCompositeID = Components.Schemas.AttributeWithCompositeID;
|
|
19441
19597
|
export type AutomationAttribute = Components.Schemas.AutomationAttribute;
|
|
@@ -19511,6 +19667,7 @@ export type GetRelationsRespWithPagination = Components.Schemas.GetRelationsResp
|
|
|
19511
19667
|
export type GraphDefinition = Components.Schemas.GraphDefinition;
|
|
19512
19668
|
export type GraphEdge = Components.Schemas.GraphEdge;
|
|
19513
19669
|
export type GraphNode = Components.Schemas.GraphNode;
|
|
19670
|
+
export type GraphNodeFilter = Components.Schemas.GraphNodeFilter;
|
|
19514
19671
|
export type GraphQueryRequest = Components.Schemas.GraphQueryRequest;
|
|
19515
19672
|
export type GraphQueryResponse = Components.Schemas.GraphQueryResponse;
|
|
19516
19673
|
export type GraphSeed = Components.Schemas.GraphSeed;
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Entity API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.10.0",
|
|
6
6
|
"description": "Flexible data layer for epilot Entities.\n\nUse this API configure and access your business objects like Contacts, Opportunities and Products.\n\n[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)\n"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -5072,7 +5072,8 @@
|
|
|
5072
5072
|
},
|
|
5073
5073
|
"grid_layout": {
|
|
5074
5074
|
"type": "object",
|
|
5075
|
-
"
|
|
5075
|
+
"deprecated": true,
|
|
5076
|
+
"description": "Superseded by `widget_widths`. A whole-grid layout preset that assigned each widget a width by its POSITION, so a widget that rendered nothing shifted every width after it. Neither the entity app nor the entity builder reads it any more; values stored before it was replaced are left in place rather than migrated.",
|
|
5076
5077
|
"properties": {
|
|
5077
5078
|
"id": {
|
|
5078
5079
|
"type": "string",
|
|
@@ -5097,6 +5098,34 @@
|
|
|
5097
5098
|
"items": {
|
|
5098
5099
|
"type": "string"
|
|
5099
5100
|
}
|
|
5101
|
+
},
|
|
5102
|
+
"widget_visibility": {
|
|
5103
|
+
"type": "object",
|
|
5104
|
+
"description": "Per-widget on/off state for the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_visible`, and then to visible. Do not seed this map from migrations — doing so would freeze today's defaults into the schema.",
|
|
5105
|
+
"additionalProperties": {
|
|
5106
|
+
"type": "boolean"
|
|
5107
|
+
},
|
|
5108
|
+
"example": {
|
|
5109
|
+
"next_best_action": true,
|
|
5110
|
+
"address_map": false
|
|
5111
|
+
}
|
|
5112
|
+
},
|
|
5113
|
+
"widget_widths": {
|
|
5114
|
+
"type": "object",
|
|
5115
|
+
"description": "Per-widget width in the entity-details widget grid, keyed by widget id (a capability widget's `component`, or `summary` for the synthesized summary card). Spans a 12-column grid: `one_third_width` = 4, `half_width` = 6, `two_third_width` = 8, `full_width` = 12. Holds only the admin's deviations from each widget's declared default: a widget absent from this map falls back to its ui_hook `default_width`, and then to `full_width`. Do not seed this map from migrations — doing so would freeze today's defaults into the schema. Replaces the positional `grid_layout` preset.",
|
|
5116
|
+
"additionalProperties": {
|
|
5117
|
+
"type": "string",
|
|
5118
|
+
"enum": [
|
|
5119
|
+
"one_third_width",
|
|
5120
|
+
"half_width",
|
|
5121
|
+
"two_third_width",
|
|
5122
|
+
"full_width"
|
|
5123
|
+
]
|
|
5124
|
+
},
|
|
5125
|
+
"example": {
|
|
5126
|
+
"address_map": "full_width",
|
|
5127
|
+
"recent_communications": "one_third_width"
|
|
5128
|
+
}
|
|
5100
5129
|
}
|
|
5101
5130
|
}
|
|
5102
5131
|
},
|
|
@@ -7405,6 +7434,24 @@
|
|
|
7405
7434
|
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
7406
7435
|
"example": "contact"
|
|
7407
7436
|
},
|
|
7437
|
+
"AdjustInstallmentCapabilityConfig": {
|
|
7438
|
+
"description": "Configuration for adjusting a contract installment through a Journey.",
|
|
7439
|
+
"type": "object",
|
|
7440
|
+
"additionalProperties": false,
|
|
7441
|
+
"example": {
|
|
7442
|
+
"journey_id": "adjust-installment-flow"
|
|
7443
|
+
},
|
|
7444
|
+
"required": [
|
|
7445
|
+
"journey_id"
|
|
7446
|
+
],
|
|
7447
|
+
"properties": {
|
|
7448
|
+
"journey_id": {
|
|
7449
|
+
"type": "string",
|
|
7450
|
+
"minLength": 1,
|
|
7451
|
+
"description": "ID of the Flow Journey to open when adjusting the installment."
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7408
7455
|
"EntityCapability": {
|
|
7409
7456
|
"description": "Capabilities the Entity has. Turn features on/off for entities.",
|
|
7410
7457
|
"type": "object",
|
|
@@ -7430,6 +7477,11 @@
|
|
|
7430
7477
|
"$ref": "#/components/schemas/Attribute"
|
|
7431
7478
|
}
|
|
7432
7479
|
},
|
|
7480
|
+
"variant_overridable": {
|
|
7481
|
+
"type": "boolean",
|
|
7482
|
+
"default": false,
|
|
7483
|
+
"description": "Allow conditional variants of the entity to override the values managed by this\ncapability. Only meaningful on schemas that declare `conditions` and on capabilities\nthat render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.\nAttributes carried by the capability opt in individually via their own\n`variant_overridable` flag.\n"
|
|
7484
|
+
},
|
|
7433
7485
|
"_purpose": {
|
|
7434
7486
|
"type": "array",
|
|
7435
7487
|
"items": {
|
|
@@ -7451,6 +7503,9 @@
|
|
|
7451
7503
|
"description": "ID of the app if the capability is provided by an app",
|
|
7452
7504
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
7453
7505
|
},
|
|
7506
|
+
"adjust_installment": {
|
|
7507
|
+
"$ref": "#/components/schemas/AdjustInstallmentCapabilityConfig"
|
|
7508
|
+
},
|
|
7454
7509
|
"ui_config": {
|
|
7455
7510
|
"type": "object",
|
|
7456
7511
|
"properties": {
|
|
@@ -7534,6 +7589,27 @@
|
|
|
7534
7589
|
"required": [
|
|
7535
7590
|
"action"
|
|
7536
7591
|
]
|
|
7592
|
+
},
|
|
7593
|
+
"default_visible": {
|
|
7594
|
+
"type": "boolean",
|
|
7595
|
+
"description": "Whether this widget is switched on by default for entity types that have the capability. Only meaningful on the `EntityDetailsV2:Widget` hook. Defaults to true when omitted. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_visibility` and wins over this.",
|
|
7596
|
+
"example": false
|
|
7597
|
+
},
|
|
7598
|
+
"default_width": {
|
|
7599
|
+
"type": "string",
|
|
7600
|
+
"enum": [
|
|
7601
|
+
"one_third_width",
|
|
7602
|
+
"half_width",
|
|
7603
|
+
"two_third_width",
|
|
7604
|
+
"full_width"
|
|
7605
|
+
],
|
|
7606
|
+
"description": "How wide this widget is by default in the entity-details widget grid. Only meaningful on the `EntityDetailsV2:Widget` and `EntityDetailsV2:Header` hooks. Defaults to `full_width` when omitted — deliberately unlike the attribute layout default of `half_width`, because a full-width widget can never leave a hole in a row. An admin's explicit choice in the entity builder is stored in the schema's `ui_config.widget_widths` and wins over this.",
|
|
7607
|
+
"example": "half_width"
|
|
7608
|
+
},
|
|
7609
|
+
"pricing_tier_setting": {
|
|
7610
|
+
"type": "string",
|
|
7611
|
+
"description": "The pricing-tier settings key an organisation must have enabled to use this widget. Omit for widgets available to everyone. Resolved against `GET /v2/pricing-tiers/me` as `override_settings[key].enabled ?? settings[key].enabled`. Note this is commercial packaging enforced in the UI, not a security control — the key must also be added to the pricing tier settings list in epilot-admin-portal, or it can never be switched on for a tier.",
|
|
7612
|
+
"example": "entity_address_maps"
|
|
7537
7613
|
}
|
|
7538
7614
|
},
|
|
7539
7615
|
"required": [
|
|
@@ -8917,6 +8993,39 @@
|
|
|
8917
8993
|
"description": "Optional array of field names to include in the hydrated entity response for this node.\nWhen specified, only the requested fields plus required internal fields (_id, _schema, _org) will be returned.\nOnly applies when hydrate=true.\n"
|
|
8918
8994
|
}
|
|
8919
8995
|
]
|
|
8996
|
+
},
|
|
8997
|
+
"filter": {
|
|
8998
|
+
"type": "array",
|
|
8999
|
+
"description": "Narrows this node's traversal results to entities matching every filter (AND semantics). Useful for\ndisambiguating among multiple entities reachable via the same graph edge.\n",
|
|
9000
|
+
"items": {
|
|
9001
|
+
"$ref": "#/components/schemas/GraphNodeFilter"
|
|
9002
|
+
}
|
|
9003
|
+
}
|
|
9004
|
+
}
|
|
9005
|
+
},
|
|
9006
|
+
"GraphNodeFilter": {
|
|
9007
|
+
"type": "object",
|
|
9008
|
+
"description": "Entities are included in this node's result only if `attribute` exactly equals the literal `value`.",
|
|
9009
|
+
"required": [
|
|
9010
|
+
"attribute",
|
|
9011
|
+
"value"
|
|
9012
|
+
],
|
|
9013
|
+
"properties": {
|
|
9014
|
+
"attribute": {
|
|
9015
|
+
"type": "string",
|
|
9016
|
+
"description": "Entity attribute name to match against. Must be a plain attribute name, not an Elasticsearch field path.",
|
|
9017
|
+
"example": "order_number"
|
|
9018
|
+
},
|
|
9019
|
+
"value": {
|
|
9020
|
+
"allOf": [
|
|
9021
|
+
{
|
|
9022
|
+
"$ref": "#/components/schemas/SearchFilterValue"
|
|
9023
|
+
},
|
|
9024
|
+
{
|
|
9025
|
+
"description": "Literal value the attribute must exactly equal for the entity to be included in this node's result."
|
|
9026
|
+
}
|
|
9027
|
+
],
|
|
9028
|
+
"example": "OR-113"
|
|
8920
9029
|
}
|
|
8921
9030
|
}
|
|
8922
9031
|
},
|