@epilot/entity-client 7.3.0 → 7.3.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 +94 -0
- package/dist/openapi.json +47 -0
- 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,18 @@ 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
|
+
* 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.
|
|
3436
|
+
* example:
|
|
3437
|
+
* entity_address_maps
|
|
3438
|
+
*/
|
|
3439
|
+
pricing_tier_setting?: string;
|
|
3398
3440
|
}[];
|
|
3399
3441
|
/**
|
|
3400
3442
|
* This capability should only be active when the feature flag is enabled
|
|
@@ -3442,6 +3484,15 @@ declare namespace Components {
|
|
|
3442
3484
|
*/
|
|
3443
3485
|
title?: string;
|
|
3444
3486
|
attributes?: Attribute[];
|
|
3487
|
+
/**
|
|
3488
|
+
* Allow conditional variants of the entity to override the values managed by this
|
|
3489
|
+
* capability. Only meaningful on schemas that declare `conditions` and on capabilities
|
|
3490
|
+
* that render an attribute group (`EntityAttributes:Group` ui hook), e.g. pricing tiers.
|
|
3491
|
+
* Attributes carried by the capability opt in individually via their own
|
|
3492
|
+
* `variant_overridable` flag.
|
|
3493
|
+
*
|
|
3494
|
+
*/
|
|
3495
|
+
variant_overridable?: boolean;
|
|
3445
3496
|
_purpose?: /**
|
|
3446
3497
|
* example:
|
|
3447
3498
|
* taxonomy-slug:classification-slug
|
|
@@ -3457,6 +3508,14 @@ declare namespace Components {
|
|
|
3457
3508
|
* 123e4567-e89b-12d3-a456-426614174000
|
|
3458
3509
|
*/
|
|
3459
3510
|
app_id?: string;
|
|
3511
|
+
adjust_installment?: /**
|
|
3512
|
+
* Configuration for adjusting a contract installment through a Journey.
|
|
3513
|
+
* example:
|
|
3514
|
+
* {
|
|
3515
|
+
* "journey_id": "adjust-installment-flow"
|
|
3516
|
+
* }
|
|
3517
|
+
*/
|
|
3518
|
+
AdjustInstallmentCapabilityConfig;
|
|
3460
3519
|
ui_config?: {
|
|
3461
3520
|
/**
|
|
3462
3521
|
* Whether the capability is filterable
|
|
@@ -3540,6 +3599,18 @@ declare namespace Components {
|
|
|
3540
3599
|
*/
|
|
3541
3600
|
resource?: string;
|
|
3542
3601
|
};
|
|
3602
|
+
/**
|
|
3603
|
+
* 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.
|
|
3604
|
+
* example:
|
|
3605
|
+
* false
|
|
3606
|
+
*/
|
|
3607
|
+
default_visible?: boolean;
|
|
3608
|
+
/**
|
|
3609
|
+
* 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.
|
|
3610
|
+
* example:
|
|
3611
|
+
* entity_address_maps
|
|
3612
|
+
*/
|
|
3613
|
+
pricing_tier_setting?: string;
|
|
3543
3614
|
}[];
|
|
3544
3615
|
/**
|
|
3545
3616
|
* This capability should only be active when the feature flag is enabled
|
|
@@ -4555,6 +4626,17 @@ declare namespace Components {
|
|
|
4555
4626
|
* 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
4627
|
*/
|
|
4557
4628
|
widget_order?: string[];
|
|
4629
|
+
/**
|
|
4630
|
+
* 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.
|
|
4631
|
+
* example:
|
|
4632
|
+
* {
|
|
4633
|
+
* "next_best_action": true,
|
|
4634
|
+
* "address_map": false
|
|
4635
|
+
* }
|
|
4636
|
+
*/
|
|
4637
|
+
widget_visibility?: {
|
|
4638
|
+
[name: string]: boolean;
|
|
4639
|
+
};
|
|
4558
4640
|
};
|
|
4559
4641
|
capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
4560
4642
|
/**
|
|
@@ -4986,6 +5068,17 @@ declare namespace Components {
|
|
|
4986
5068
|
* 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
5069
|
*/
|
|
4988
5070
|
widget_order?: string[];
|
|
5071
|
+
/**
|
|
5072
|
+
* 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.
|
|
5073
|
+
* example:
|
|
5074
|
+
* {
|
|
5075
|
+
* "next_best_action": true,
|
|
5076
|
+
* "address_map": false
|
|
5077
|
+
* }
|
|
5078
|
+
*/
|
|
5079
|
+
widget_visibility?: {
|
|
5080
|
+
[name: string]: boolean;
|
|
5081
|
+
};
|
|
4989
5082
|
};
|
|
4990
5083
|
capabilities: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
4991
5084
|
/**
|
|
@@ -19436,6 +19529,7 @@ export type ActivityItem = Components.Schemas.ActivityItem;
|
|
|
19436
19529
|
export type ActivityType = Components.Schemas.ActivityType;
|
|
19437
19530
|
export type AddressAttribute = Components.Schemas.AddressAttribute;
|
|
19438
19531
|
export type AddressRelationAttribute = Components.Schemas.AddressRelationAttribute;
|
|
19532
|
+
export type AdjustInstallmentCapabilityConfig = Components.Schemas.AdjustInstallmentCapabilityConfig;
|
|
19439
19533
|
export type Attribute = Components.Schemas.Attribute;
|
|
19440
19534
|
export type AttributeWithCompositeID = Components.Schemas.AttributeWithCompositeID;
|
|
19441
19535
|
export type AutomationAttribute = Components.Schemas.AutomationAttribute;
|
package/dist/openapi.json
CHANGED
|
@@ -5097,6 +5097,17 @@
|
|
|
5097
5097
|
"items": {
|
|
5098
5098
|
"type": "string"
|
|
5099
5099
|
}
|
|
5100
|
+
},
|
|
5101
|
+
"widget_visibility": {
|
|
5102
|
+
"type": "object",
|
|
5103
|
+
"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.",
|
|
5104
|
+
"additionalProperties": {
|
|
5105
|
+
"type": "boolean"
|
|
5106
|
+
},
|
|
5107
|
+
"example": {
|
|
5108
|
+
"next_best_action": true,
|
|
5109
|
+
"address_map": false
|
|
5110
|
+
}
|
|
5100
5111
|
}
|
|
5101
5112
|
}
|
|
5102
5113
|
},
|
|
@@ -7405,6 +7416,24 @@
|
|
|
7405
7416
|
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
7406
7417
|
"example": "contact"
|
|
7407
7418
|
},
|
|
7419
|
+
"AdjustInstallmentCapabilityConfig": {
|
|
7420
|
+
"description": "Configuration for adjusting a contract installment through a Journey.",
|
|
7421
|
+
"type": "object",
|
|
7422
|
+
"additionalProperties": false,
|
|
7423
|
+
"example": {
|
|
7424
|
+
"journey_id": "adjust-installment-flow"
|
|
7425
|
+
},
|
|
7426
|
+
"required": [
|
|
7427
|
+
"journey_id"
|
|
7428
|
+
],
|
|
7429
|
+
"properties": {
|
|
7430
|
+
"journey_id": {
|
|
7431
|
+
"type": "string",
|
|
7432
|
+
"minLength": 1,
|
|
7433
|
+
"description": "ID of the Flow Journey to open when adjusting the installment."
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7436
|
+
},
|
|
7408
7437
|
"EntityCapability": {
|
|
7409
7438
|
"description": "Capabilities the Entity has. Turn features on/off for entities.",
|
|
7410
7439
|
"type": "object",
|
|
@@ -7430,6 +7459,11 @@
|
|
|
7430
7459
|
"$ref": "#/components/schemas/Attribute"
|
|
7431
7460
|
}
|
|
7432
7461
|
},
|
|
7462
|
+
"variant_overridable": {
|
|
7463
|
+
"type": "boolean",
|
|
7464
|
+
"default": false,
|
|
7465
|
+
"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"
|
|
7466
|
+
},
|
|
7433
7467
|
"_purpose": {
|
|
7434
7468
|
"type": "array",
|
|
7435
7469
|
"items": {
|
|
@@ -7451,6 +7485,9 @@
|
|
|
7451
7485
|
"description": "ID of the app if the capability is provided by an app",
|
|
7452
7486
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
7453
7487
|
},
|
|
7488
|
+
"adjust_installment": {
|
|
7489
|
+
"$ref": "#/components/schemas/AdjustInstallmentCapabilityConfig"
|
|
7490
|
+
},
|
|
7454
7491
|
"ui_config": {
|
|
7455
7492
|
"type": "object",
|
|
7456
7493
|
"properties": {
|
|
@@ -7534,6 +7571,16 @@
|
|
|
7534
7571
|
"required": [
|
|
7535
7572
|
"action"
|
|
7536
7573
|
]
|
|
7574
|
+
},
|
|
7575
|
+
"default_visible": {
|
|
7576
|
+
"type": "boolean",
|
|
7577
|
+
"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.",
|
|
7578
|
+
"example": false
|
|
7579
|
+
},
|
|
7580
|
+
"pricing_tier_setting": {
|
|
7581
|
+
"type": "string",
|
|
7582
|
+
"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.",
|
|
7583
|
+
"example": "entity_address_maps"
|
|
7537
7584
|
}
|
|
7538
7585
|
},
|
|
7539
7586
|
"required": [
|