@epilot/entity-client 4.15.0-rc1 → 4.15.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 CHANGED
@@ -158,6 +158,10 @@ declare namespace Components {
158
158
  * Render as a column in table views. When defined, overrides `hidden`
159
159
  */
160
160
  show_in_table?: boolean;
161
+ /**
162
+ * Allow sorting by this attribute in table views if `show_in_table` is true
163
+ */
164
+ sortable?: boolean;
161
165
  required?: boolean;
162
166
  readonly?: boolean;
163
167
  deprecated?: boolean;
@@ -264,7 +268,7 @@ declare namespace Components {
264
268
  type?: "relation_address";
265
269
  has_primary?: boolean;
266
270
  }
267
- 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 | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* Numeric input */ NumberAttribute | /* 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;
271
+ 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 | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* Numeric input */ NumberAttribute | /* 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;
268
272
  /**
269
273
  * Automation entity
270
274
  */
@@ -280,6 +284,10 @@ declare namespace Components {
280
284
  * Render as a column in table views. When defined, overrides `hidden`
281
285
  */
282
286
  show_in_table?: boolean;
287
+ /**
288
+ * Allow sorting by this attribute in table views if `show_in_table` is true
289
+ */
290
+ sortable?: boolean;
283
291
  required?: boolean;
284
292
  readonly?: boolean;
285
293
  deprecated?: boolean;
@@ -397,6 +405,10 @@ declare namespace Components {
397
405
  * Render as a column in table views. When defined, overrides `hidden`
398
406
  */
399
407
  show_in_table?: boolean;
408
+ /**
409
+ * Allow sorting by this attribute in table views if `show_in_table` is true
410
+ */
411
+ sortable?: boolean;
400
412
  required?: boolean;
401
413
  readonly?: boolean;
402
414
  deprecated?: boolean;
@@ -581,6 +593,10 @@ declare namespace Components {
581
593
  * Render as a column in table views. When defined, overrides `hidden`
582
594
  */
583
595
  show_in_table?: boolean;
596
+ /**
597
+ * Allow sorting by this attribute in table views if `show_in_table` is true
598
+ */
599
+ sortable?: boolean;
584
600
  required?: boolean;
585
601
  readonly?: boolean;
586
602
  deprecated?: boolean;
@@ -707,6 +723,10 @@ declare namespace Components {
707
723
  * Render as a column in table views. When defined, overrides `hidden`
708
724
  */
709
725
  show_in_table?: boolean;
726
+ /**
727
+ * Allow sorting by this attribute in table views if `show_in_table` is true
728
+ */
729
+ sortable?: boolean;
710
730
  required?: boolean;
711
731
  readonly?: boolean;
712
732
  deprecated?: boolean;
@@ -827,6 +847,10 @@ declare namespace Components {
827
847
  * Render as a column in table views. When defined, overrides `hidden`
828
848
  */
829
849
  show_in_table?: boolean;
850
+ /**
851
+ * Allow sorting by this attribute in table views if `show_in_table` is true
852
+ */
853
+ sortable?: boolean;
830
854
  required?: boolean;
831
855
  readonly?: boolean;
832
856
  deprecated?: boolean;
@@ -949,6 +973,10 @@ declare namespace Components {
949
973
  * Render as a column in table views. When defined, overrides `hidden`
950
974
  */
951
975
  show_in_table?: boolean;
976
+ /**
977
+ * Allow sorting by this attribute in table views if `show_in_table` is true
978
+ */
979
+ sortable?: boolean;
952
980
  required?: boolean;
953
981
  readonly?: boolean;
954
982
  deprecated?: boolean;
@@ -1069,6 +1097,10 @@ declare namespace Components {
1069
1097
  * Render as a column in table views. When defined, overrides `hidden`
1070
1098
  */
1071
1099
  show_in_table?: boolean;
1100
+ /**
1101
+ * Allow sorting by this attribute in table views if `show_in_table` is true
1102
+ */
1103
+ sortable?: boolean;
1072
1104
  required?: boolean;
1073
1105
  readonly?: boolean;
1074
1106
  deprecated?: boolean;
@@ -1199,6 +1231,10 @@ declare namespace Components {
1199
1231
  * Render as a column in table views. When defined, overrides `hidden`
1200
1232
  */
1201
1233
  show_in_table?: boolean;
1234
+ /**
1235
+ * Allow sorting by this attribute in table views if `show_in_table` is true
1236
+ */
1237
+ sortable?: boolean;
1202
1238
  required?: boolean;
1203
1239
  readonly?: boolean;
1204
1240
  deprecated?: boolean;
@@ -2532,6 +2568,10 @@ declare namespace Components {
2532
2568
  * Render as a column in table views. When defined, overrides `hidden`
2533
2569
  */
2534
2570
  show_in_table?: boolean;
2571
+ /**
2572
+ * Allow sorting by this attribute in table views if `show_in_table` is true
2573
+ */
2574
+ sortable?: boolean;
2535
2575
  required?: boolean;
2536
2576
  readonly?: boolean;
2537
2577
  deprecated?: boolean;
@@ -2653,6 +2693,13 @@ declare namespace Components {
2653
2693
  enable_description?: boolean;
2654
2694
  default_access_control?: "public-read" | "private";
2655
2695
  }
2696
+ export interface GetRelatedEntitiesCountByEntityId {
2697
+ /**
2698
+ * example:
2699
+ * 1
2700
+ */
2701
+ hits?: number;
2702
+ }
2656
2703
  export type GetRelationsResp = (RelationItem | /**
2657
2704
  * example:
2658
2705
  * {
@@ -2896,6 +2943,10 @@ declare namespace Components {
2896
2943
  * Render as a column in table views. When defined, overrides `hidden`
2897
2944
  */
2898
2945
  show_in_table?: boolean;
2946
+ /**
2947
+ * Allow sorting by this attribute in table views if `show_in_table` is true
2948
+ */
2949
+ sortable?: boolean;
2899
2950
  required?: boolean;
2900
2951
  readonly?: boolean;
2901
2952
  deprecated?: boolean;
@@ -3016,6 +3067,10 @@ declare namespace Components {
3016
3067
  * Render as a column in table views. When defined, overrides `hidden`
3017
3068
  */
3018
3069
  show_in_table?: boolean;
3070
+ /**
3071
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3072
+ */
3073
+ sortable?: boolean;
3019
3074
  required?: boolean;
3020
3075
  readonly?: boolean;
3021
3076
  deprecated?: boolean;
@@ -3136,6 +3191,10 @@ declare namespace Components {
3136
3191
  * Render as a column in table views. When defined, overrides `hidden`
3137
3192
  */
3138
3193
  show_in_table?: boolean;
3194
+ /**
3195
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3196
+ */
3197
+ sortable?: boolean;
3139
3198
  required?: boolean;
3140
3199
  readonly?: boolean;
3141
3200
  deprecated?: boolean;
@@ -3264,6 +3323,10 @@ declare namespace Components {
3264
3323
  * Render as a column in table views. When defined, overrides `hidden`
3265
3324
  */
3266
3325
  show_in_table?: boolean;
3326
+ /**
3327
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3328
+ */
3329
+ sortable?: boolean;
3267
3330
  required?: boolean;
3268
3331
  readonly?: boolean;
3269
3332
  deprecated?: boolean;
@@ -3384,6 +3447,10 @@ declare namespace Components {
3384
3447
  * Render as a column in table views. When defined, overrides `hidden`
3385
3448
  */
3386
3449
  show_in_table?: boolean;
3450
+ /**
3451
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3452
+ */
3453
+ sortable?: boolean;
3387
3454
  required?: boolean;
3388
3455
  readonly?: boolean;
3389
3456
  deprecated?: boolean;
@@ -3520,6 +3587,10 @@ declare namespace Components {
3520
3587
  * Render as a column in table views. When defined, overrides `hidden`
3521
3588
  */
3522
3589
  show_in_table?: boolean;
3590
+ /**
3591
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3592
+ */
3593
+ sortable?: boolean;
3523
3594
  required?: boolean;
3524
3595
  readonly?: boolean;
3525
3596
  deprecated?: boolean;
@@ -3641,6 +3712,10 @@ declare namespace Components {
3641
3712
  * Render as a column in table views. When defined, overrides `hidden`
3642
3713
  */
3643
3714
  show_in_table?: boolean;
3715
+ /**
3716
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3717
+ */
3718
+ sortable?: boolean;
3644
3719
  required?: boolean;
3645
3720
  readonly?: boolean;
3646
3721
  deprecated?: boolean;
@@ -3746,6 +3821,130 @@ declare namespace Components {
3746
3821
  };
3747
3822
  type?: "ordered_list";
3748
3823
  }
3824
+ /**
3825
+ * Shared Partner Organisations
3826
+ */
3827
+ export interface PartnerOrganisationAttribute {
3828
+ name: string;
3829
+ label: string;
3830
+ placeholder?: string;
3831
+ /**
3832
+ * Do not render attribute in entity views
3833
+ */
3834
+ hidden?: boolean;
3835
+ /**
3836
+ * Render as a column in table views. When defined, overrides `hidden`
3837
+ */
3838
+ show_in_table?: boolean;
3839
+ /**
3840
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3841
+ */
3842
+ sortable?: boolean;
3843
+ required?: boolean;
3844
+ readonly?: boolean;
3845
+ deprecated?: boolean;
3846
+ default_value?: any;
3847
+ /**
3848
+ * Which group the attribute should appear in. Accepts group ID or group name
3849
+ */
3850
+ group?: string;
3851
+ /**
3852
+ * Attribute sort order (ascending) in group
3853
+ * example:
3854
+ * 0
3855
+ */
3856
+ order?: number;
3857
+ /**
3858
+ * example:
3859
+ * full_width
3860
+ */
3861
+ layout?: string;
3862
+ /**
3863
+ * When set to true, will hide the label of the field.
3864
+ */
3865
+ hide_label?: boolean;
3866
+ /**
3867
+ * Code name of the icon to used to represent this attribute.
3868
+ * The value must be a valid @epilot/base-elements Icon name
3869
+ *
3870
+ */
3871
+ icon?: string;
3872
+ /**
3873
+ * Defines the conditional rendering expression for showing this field.
3874
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
3875
+ * Note: Empty or invalid expression have no effect on the field visibility.
3876
+ *
3877
+ */
3878
+ render_condition?: string;
3879
+ _purpose?: ClassificationId /* uuid */[];
3880
+ /**
3881
+ * A set of constraints applicable to the attribute.
3882
+ * These constraints should and will be enforced by the attribute renderer.
3883
+ *
3884
+ * example:
3885
+ * {
3886
+ * "disablePast": true
3887
+ * }
3888
+ */
3889
+ constraints?: {
3890
+ [key: string]: any;
3891
+ };
3892
+ /**
3893
+ * This attribute should only be active when the feature flag is enabled
3894
+ * example:
3895
+ * FF_MY_FEATURE_FLAG
3896
+ */
3897
+ feature_flag?: string;
3898
+ /**
3899
+ * This attribute should only be active when the setting is enabled
3900
+ * example:
3901
+ * MY_SETTING
3902
+ */
3903
+ setting_flag?: string;
3904
+ value_formatter?: string;
3905
+ preview_value_formatter?: string;
3906
+ /**
3907
+ * Setting to `true` disables editing the attribute on the entity builder UI
3908
+ */
3909
+ entity_builder_disable_edit?: boolean;
3910
+ /**
3911
+ * Setting to `true` prevents the attribute from being modified / deleted
3912
+ */
3913
+ protected?: boolean;
3914
+ /**
3915
+ * A set of configurations meant to document and assist the user in filling the attribute.
3916
+ */
3917
+ info_helpers?: {
3918
+ /**
3919
+ * The text to be displayed in the attribute hint helper.
3920
+ * When specified it overrides the `hint_text_key` configuration.
3921
+ *
3922
+ */
3923
+ hint_text?: string;
3924
+ /**
3925
+ * The key of the hint text to be displayed in the attribute hint helper.
3926
+ * The key should be a valid i18n key.
3927
+ *
3928
+ */
3929
+ hint_text_key?: string;
3930
+ /**
3931
+ * The name of the custom component to be used as the hint helper.
3932
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
3933
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
3934
+ *
3935
+ */
3936
+ hint_custom_component?: string;
3937
+ /**
3938
+ * The placement of the hint tooltip.
3939
+ * The value should be a valid `@mui/core` tooltip placement.
3940
+ *
3941
+ * example:
3942
+ * top
3943
+ */
3944
+ hint_tooltip_placement?: string;
3945
+ };
3946
+ type?: "partner_organisation";
3947
+ }
3749
3948
  /**
3750
3949
  * Partner Status
3751
3950
  */
@@ -3761,6 +3960,10 @@ declare namespace Components {
3761
3960
  * Render as a column in table views. When defined, overrides `hidden`
3762
3961
  */
3763
3962
  show_in_table?: boolean;
3963
+ /**
3964
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3965
+ */
3966
+ sortable?: boolean;
3764
3967
  required?: boolean;
3765
3968
  readonly?: boolean;
3766
3969
  deprecated?: boolean;
@@ -3881,6 +4084,10 @@ declare namespace Components {
3881
4084
  * Render as a column in table views. When defined, overrides `hidden`
3882
4085
  */
3883
4086
  show_in_table?: boolean;
4087
+ /**
4088
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4089
+ */
4090
+ sortable?: boolean;
3884
4091
  required?: boolean;
3885
4092
  readonly?: boolean;
3886
4093
  deprecated?: boolean;
@@ -4006,6 +4213,10 @@ declare namespace Components {
4006
4213
  * Render as a column in table views. When defined, overrides `hidden`
4007
4214
  */
4008
4215
  show_in_table?: boolean;
4216
+ /**
4217
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4218
+ */
4219
+ sortable?: boolean;
4009
4220
  required?: boolean;
4010
4221
  readonly?: boolean;
4011
4222
  deprecated?: boolean;
@@ -4145,6 +4356,10 @@ declare namespace Components {
4145
4356
  * Render as a column in table views. When defined, overrides `hidden`
4146
4357
  */
4147
4358
  show_in_table?: boolean;
4359
+ /**
4360
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4361
+ */
4362
+ sortable?: boolean;
4148
4363
  required?: boolean;
4149
4364
  readonly?: boolean;
4150
4365
  deprecated?: boolean;
@@ -4502,6 +4717,10 @@ declare namespace Components {
4502
4717
  * Render as a column in table views. When defined, overrides `hidden`
4503
4718
  */
4504
4719
  show_in_table?: boolean;
4720
+ /**
4721
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4722
+ */
4723
+ sortable?: boolean;
4505
4724
  required?: boolean;
4506
4725
  readonly?: boolean;
4507
4726
  deprecated?: boolean;
@@ -4648,6 +4867,10 @@ declare namespace Components {
4648
4867
  * true
4649
4868
  */
4650
4869
  shared?: boolean;
4870
+ /**
4871
+ * List of users (IDs) that have favorited the view
4872
+ */
4873
+ isFavoritedBy?: string[];
4651
4874
  created_by: {
4652
4875
  /**
4653
4876
  * example:
@@ -4717,6 +4940,10 @@ declare namespace Components {
4717
4940
  * true
4718
4941
  */
4719
4942
  shared?: boolean;
4943
+ /**
4944
+ * List of users (IDs) that have favorited the view
4945
+ */
4946
+ isFavoritedBy?: string[];
4720
4947
  created_by: {
4721
4948
  /**
4722
4949
  * example:
@@ -4787,6 +5014,10 @@ declare namespace Components {
4787
5014
  * Render as a column in table views. When defined, overrides `hidden`
4788
5015
  */
4789
5016
  show_in_table?: boolean;
5017
+ /**
5018
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5019
+ */
5020
+ sortable?: boolean;
4790
5021
  required?: boolean;
4791
5022
  readonly?: boolean;
4792
5023
  deprecated?: boolean;
@@ -4915,6 +5146,10 @@ declare namespace Components {
4915
5146
  * Render as a column in table views. When defined, overrides `hidden`
4916
5147
  */
4917
5148
  show_in_table?: boolean;
5149
+ /**
5150
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5151
+ */
5152
+ sortable?: boolean;
4918
5153
  required?: boolean;
4919
5154
  readonly?: boolean;
4920
5155
  deprecated?: boolean;
@@ -5042,6 +5277,10 @@ declare namespace Components {
5042
5277
  * Render as a column in table views. When defined, overrides `hidden`
5043
5278
  */
5044
5279
  show_in_table?: boolean;
5280
+ /**
5281
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5282
+ */
5283
+ sortable?: boolean;
5045
5284
  required?: boolean;
5046
5285
  readonly?: boolean;
5047
5286
  deprecated?: boolean;
@@ -5232,6 +5471,10 @@ declare namespace Components {
5232
5471
  * Render as a column in table views. When defined, overrides `hidden`
5233
5472
  */
5234
5473
  show_in_table?: boolean;
5474
+ /**
5475
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5476
+ */
5477
+ sortable?: boolean;
5235
5478
  required?: boolean;
5236
5479
  readonly?: boolean;
5237
5480
  deprecated?: boolean;
@@ -5393,6 +5636,10 @@ declare namespace Components {
5393
5636
  * Render as a column in table views. When defined, overrides `hidden`
5394
5637
  */
5395
5638
  show_in_table?: boolean;
5639
+ /**
5640
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5641
+ */
5642
+ sortable?: boolean;
5396
5643
  required?: boolean;
5397
5644
  readonly?: boolean;
5398
5645
  deprecated?: boolean;
@@ -5514,6 +5761,10 @@ declare namespace Components {
5514
5761
  * Render as a column in table views. When defined, overrides `hidden`
5515
5762
  */
5516
5763
  show_in_table?: boolean;
5764
+ /**
5765
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5766
+ */
5767
+ sortable?: boolean;
5517
5768
  required?: boolean;
5518
5769
  readonly?: boolean;
5519
5770
  deprecated?: boolean;
@@ -5625,6 +5876,12 @@ declare namespace Components {
5625
5876
  declare namespace Paths {
5626
5877
  namespace AddRelations {
5627
5878
  namespace Parameters {
5879
+ export type ActivityId = /**
5880
+ * See https://github.com/ulid/spec
5881
+ * example:
5882
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
5883
+ */
5884
+ Components.Schemas.ActivityId /* ulid */;
5628
5885
  export type Async = boolean;
5629
5886
  export type Id = Components.Schemas.EntityId /* uuid */;
5630
5887
  export type Slug = /**
@@ -5640,6 +5897,7 @@ declare namespace Paths {
5640
5897
  }
5641
5898
  export interface QueryParameters {
5642
5899
  async?: Parameters.Async;
5900
+ activity_id?: Parameters.ActivityId;
5643
5901
  }
5644
5902
  export type RequestBody = Components.Schemas.RelationItem[];
5645
5903
  namespace Responses {
@@ -5861,6 +6119,12 @@ declare namespace Paths {
5861
6119
  }
5862
6120
  namespace DeleteRelation {
5863
6121
  namespace Parameters {
6122
+ export type ActivityId = /**
6123
+ * See https://github.com/ulid/spec
6124
+ * example:
6125
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
6126
+ */
6127
+ Components.Schemas.ActivityId /* ulid */;
5864
6128
  export type Async = boolean;
5865
6129
  export type Attribute = string;
5866
6130
  export type EntityId = string;
@@ -5880,6 +6144,7 @@ declare namespace Paths {
5880
6144
  }
5881
6145
  export interface QueryParameters {
5882
6146
  async?: Parameters.Async;
6147
+ activity_id?: Parameters.ActivityId;
5883
6148
  }
5884
6149
  namespace Responses {
5885
6150
  export interface $204 {
@@ -6074,6 +6339,7 @@ declare namespace Paths {
6074
6339
  export type Before = string; // date-time
6075
6340
  export type From = number;
6076
6341
  export type Id = Components.Schemas.EntityId /* uuid */;
6342
+ export type IncludeRelations = boolean;
6077
6343
  export type Size = number;
6078
6344
  export type Slug = /**
6079
6345
  * URL-friendly identifier for the entity schema
@@ -6101,6 +6367,7 @@ declare namespace Paths {
6101
6367
  * SyncActivity
6102
6368
  */
6103
6369
  Parameters.Type;
6370
+ include_relations?: Parameters.IncludeRelations;
6104
6371
  }
6105
6372
  namespace Responses {
6106
6373
  export interface $200 {
@@ -6137,6 +6404,24 @@ declare namespace Paths {
6137
6404
  export type $200 = Components.Schemas.GetRelationsResp;
6138
6405
  }
6139
6406
  }
6407
+ namespace GetRelatedEntitiesCountByEntityId {
6408
+ namespace Parameters {
6409
+ export type Id = Components.Schemas.EntityId /* uuid */;
6410
+ export type Slug = /**
6411
+ * URL-friendly identifier for the entity schema
6412
+ * example:
6413
+ * contact
6414
+ */
6415
+ Components.Schemas.EntitySlug;
6416
+ }
6417
+ export interface PathParameters {
6418
+ slug: Parameters.Slug;
6419
+ id: Parameters.Id;
6420
+ }
6421
+ namespace Responses {
6422
+ export type $200 = Components.Schemas.GetRelatedEntitiesCountByEntityId;
6423
+ }
6424
+ }
6140
6425
  namespace GetRelationsV2 {
6141
6426
  namespace Parameters {
6142
6427
  /**
@@ -6281,6 +6566,13 @@ declare namespace Paths {
6281
6566
  }
6282
6567
  }
6283
6568
  }
6569
+ namespace ListFavoriteViewsForUser {
6570
+ namespace Responses {
6571
+ export interface $200 {
6572
+ results?: /* A saved entity view */ Components.Schemas.SavedViewItem[];
6573
+ }
6574
+ }
6575
+ }
6284
6576
  namespace ListSavedViews {
6285
6577
  namespace Responses {
6286
6578
  export interface $200 {
@@ -6640,6 +6932,12 @@ declare namespace Paths {
6640
6932
  }
6641
6933
  namespace UpdateRelation {
6642
6934
  namespace Parameters {
6935
+ export type ActivityId = /**
6936
+ * See https://github.com/ulid/spec
6937
+ * example:
6938
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
6939
+ */
6940
+ Components.Schemas.ActivityId /* ulid */;
6643
6941
  export type Async = boolean;
6644
6942
  export type Attribute = string;
6645
6943
  export type EntityId = string;
@@ -6659,6 +6957,7 @@ declare namespace Paths {
6659
6957
  }
6660
6958
  export interface QueryParameters {
6661
6959
  async?: Parameters.Async;
6960
+ activity_id?: Parameters.ActivityId;
6662
6961
  }
6663
6962
  export interface RequestBody {
6664
6963
  _tags?: string[];
@@ -7295,6 +7594,17 @@ export interface OperationMethods {
7295
7594
  data?: any,
7296
7595
  config?: AxiosRequestConfig
7297
7596
  ): OperationResponse<Paths.GetRelationsV2.Responses.$200>
7597
+ /**
7598
+ * getRelatedEntitiesCountByEntityId - getRelatedEntitiesCountByEntityId
7599
+ *
7600
+ * Returns the amount of unique related entities for an entity - includes direct and reverse relations.
7601
+ *
7602
+ */
7603
+ 'getRelatedEntitiesCountByEntityId'(
7604
+ parameters?: Parameters<Paths.GetRelatedEntitiesCountByEntityId.PathParameters> | null,
7605
+ data?: any,
7606
+ config?: AxiosRequestConfig
7607
+ ): OperationResponse<Paths.GetRelatedEntitiesCountByEntityId.Responses.$200>
7298
7608
  /**
7299
7609
  * updateRelation - updateRelation
7300
7610
  *
@@ -7388,6 +7698,16 @@ export interface OperationMethods {
7388
7698
  data?: any,
7389
7699
  config?: AxiosRequestConfig
7390
7700
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
7701
+ /**
7702
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
7703
+ *
7704
+ * Get the Favorite Saved Views for user based on the schema
7705
+ */
7706
+ 'listFavoriteViewsForUser'(
7707
+ parameters?: Parameters<UnknownParamsObject> | null,
7708
+ data?: any,
7709
+ config?: AxiosRequestConfig
7710
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
7391
7711
  /**
7392
7712
  * listTaxonomies - listTaxonomies
7393
7713
  *
@@ -7928,6 +8248,19 @@ export interface PathsDictionary {
7928
8248
  config?: AxiosRequestConfig
7929
8249
  ): OperationResponse<Paths.GetRelationsV2.Responses.$200>
7930
8250
  }
8251
+ ['/v2/entity/{slug}/{id}/relations/count']: {
8252
+ /**
8253
+ * getRelatedEntitiesCountByEntityId - getRelatedEntitiesCountByEntityId
8254
+ *
8255
+ * Returns the amount of unique related entities for an entity - includes direct and reverse relations
8256
+ *
8257
+ */
8258
+ 'get'(
8259
+ parameters?: Parameters<Paths.GetRelatedEntitiesCountByEntityId.PathParameters> | null,
8260
+ data?: any,
8261
+ config?: AxiosRequestConfig
8262
+ ): OperationResponse<Paths.GetRelatedEntitiesCountByEntityId.Responses.$200>
8263
+ }
7931
8264
  ['/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}']: {
7932
8265
  /**
7933
8266
  * updateRelation - updateRelation
@@ -8033,6 +8366,18 @@ export interface PathsDictionary {
8033
8366
  config?: AxiosRequestConfig
8034
8367
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
8035
8368
  }
8369
+ ['/v1/entity/views/favorites']: {
8370
+ /**
8371
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
8372
+ *
8373
+ * Get the Favorite Saved Views for user based on the schema
8374
+ */
8375
+ 'get'(
8376
+ parameters?: Parameters<UnknownParamsObject> | null,
8377
+ data?: any,
8378
+ config?: AxiosRequestConfig
8379
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
8380
+ }
8036
8381
  ['/v1/entity/listTaxonomies']: {
8037
8382
  /**
8038
8383
  * listTaxonomies - listTaxonomies