@epilot/entity-client 4.16.0-rc2 → 4.16.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;
@@ -1374,6 +1410,35 @@ declare namespace Components {
1374
1410
  edit?: string[];
1375
1411
  delete?: string[];
1376
1412
  }
1413
+ /**
1414
+ * An entity action configured from the entity schema
1415
+ */
1416
+ export interface EntityAction {
1417
+ /**
1418
+ * A unique action name
1419
+ * example:
1420
+ * preview_file
1421
+ */
1422
+ action: string;
1423
+ /**
1424
+ * example:
1425
+ * Preview File
1426
+ */
1427
+ label: string;
1428
+ /**
1429
+ * example:
1430
+ * visibility
1431
+ */
1432
+ icon?: string;
1433
+ /**
1434
+ * Permission required to show the action.
1435
+ * If not provided, the action will be shown to all users.
1436
+ *
1437
+ * example:
1438
+ * entity:edit
1439
+ */
1440
+ permission?: string;
1441
+ }
1377
1442
  /**
1378
1443
  * Capabilities the Entity has. Turn features on/off for entities.
1379
1444
  */
@@ -1548,7 +1613,7 @@ declare namespace Components {
1548
1613
  */
1549
1614
  legacy?: boolean;
1550
1615
  })[];
1551
- row_actions?: string[];
1616
+ row_actions?: (("view" | "edit" | "duplicate" | "delete" | "share") | /* An entity action configured from the entity schema */ EntityAction)[];
1552
1617
  navbar_actions?: {
1553
1618
  type: string;
1554
1619
  options?: {
@@ -1955,14 +2020,6 @@ declare namespace Components {
1955
2020
  * }
1956
2021
  */
1957
2022
  RedirectEntityView | EntityViewDisabled;
1958
- single_view?: EntityDefaultEdit | /**
1959
- * example:
1960
- * {
1961
- * "type": "redirect",
1962
- * "route": "/app/pricing-hub/product/:entityId"
1963
- * }
1964
- */
1965
- RedirectEntityView | EntityViewDisabled;
1966
2023
  list_item?: {
1967
2024
  summary_attributes?: (/**
1968
2025
  * Represents an expanded version of an attribute to be displayed in the list item summary.
@@ -1979,6 +2036,7 @@ declare namespace Components {
1979
2036
  *
1980
2037
  */
1981
2038
  SummaryAttribute | string)[];
2039
+ quick_actions?: /* An entity action configured from the entity schema */ EntityAction[];
1982
2040
  };
1983
2041
  sharing?: {
1984
2042
  /**
@@ -2211,14 +2269,6 @@ declare namespace Components {
2211
2269
  * }
2212
2270
  */
2213
2271
  RedirectEntityView | EntityViewDisabled;
2214
- single_view?: EntityDefaultEdit | /**
2215
- * example:
2216
- * {
2217
- * "type": "redirect",
2218
- * "route": "/app/pricing-hub/product/:entityId"
2219
- * }
2220
- */
2221
- RedirectEntityView | EntityViewDisabled;
2222
2272
  list_item?: {
2223
2273
  summary_attributes?: (/**
2224
2274
  * Represents an expanded version of an attribute to be displayed in the list item summary.
@@ -2235,6 +2285,7 @@ declare namespace Components {
2235
2285
  *
2236
2286
  */
2237
2287
  SummaryAttribute | string)[];
2288
+ quick_actions?: /* An entity action configured from the entity schema */ EntityAction[];
2238
2289
  };
2239
2290
  sharing?: {
2240
2291
  /**
@@ -2532,6 +2583,10 @@ declare namespace Components {
2532
2583
  * Render as a column in table views. When defined, overrides `hidden`
2533
2584
  */
2534
2585
  show_in_table?: boolean;
2586
+ /**
2587
+ * Allow sorting by this attribute in table views if `show_in_table` is true
2588
+ */
2589
+ sortable?: boolean;
2535
2590
  required?: boolean;
2536
2591
  readonly?: boolean;
2537
2592
  deprecated?: boolean;
@@ -2653,6 +2708,13 @@ declare namespace Components {
2653
2708
  enable_description?: boolean;
2654
2709
  default_access_control?: "public-read" | "private";
2655
2710
  }
2711
+ export interface GetRelatedEntitiesCount {
2712
+ /**
2713
+ * example:
2714
+ * 1
2715
+ */
2716
+ hits?: number;
2717
+ }
2656
2718
  export type GetRelationsResp = (RelationItem | /**
2657
2719
  * example:
2658
2720
  * {
@@ -2896,6 +2958,10 @@ declare namespace Components {
2896
2958
  * Render as a column in table views. When defined, overrides `hidden`
2897
2959
  */
2898
2960
  show_in_table?: boolean;
2961
+ /**
2962
+ * Allow sorting by this attribute in table views if `show_in_table` is true
2963
+ */
2964
+ sortable?: boolean;
2899
2965
  required?: boolean;
2900
2966
  readonly?: boolean;
2901
2967
  deprecated?: boolean;
@@ -3016,6 +3082,10 @@ declare namespace Components {
3016
3082
  * Render as a column in table views. When defined, overrides `hidden`
3017
3083
  */
3018
3084
  show_in_table?: boolean;
3085
+ /**
3086
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3087
+ */
3088
+ sortable?: boolean;
3019
3089
  required?: boolean;
3020
3090
  readonly?: boolean;
3021
3091
  deprecated?: boolean;
@@ -3136,6 +3206,10 @@ declare namespace Components {
3136
3206
  * Render as a column in table views. When defined, overrides `hidden`
3137
3207
  */
3138
3208
  show_in_table?: boolean;
3209
+ /**
3210
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3211
+ */
3212
+ sortable?: boolean;
3139
3213
  required?: boolean;
3140
3214
  readonly?: boolean;
3141
3215
  deprecated?: boolean;
@@ -3264,6 +3338,10 @@ declare namespace Components {
3264
3338
  * Render as a column in table views. When defined, overrides `hidden`
3265
3339
  */
3266
3340
  show_in_table?: boolean;
3341
+ /**
3342
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3343
+ */
3344
+ sortable?: boolean;
3267
3345
  required?: boolean;
3268
3346
  readonly?: boolean;
3269
3347
  deprecated?: boolean;
@@ -3384,6 +3462,10 @@ declare namespace Components {
3384
3462
  * Render as a column in table views. When defined, overrides `hidden`
3385
3463
  */
3386
3464
  show_in_table?: boolean;
3465
+ /**
3466
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3467
+ */
3468
+ sortable?: boolean;
3387
3469
  required?: boolean;
3388
3470
  readonly?: boolean;
3389
3471
  deprecated?: boolean;
@@ -3520,6 +3602,10 @@ declare namespace Components {
3520
3602
  * Render as a column in table views. When defined, overrides `hidden`
3521
3603
  */
3522
3604
  show_in_table?: boolean;
3605
+ /**
3606
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3607
+ */
3608
+ sortable?: boolean;
3523
3609
  required?: boolean;
3524
3610
  readonly?: boolean;
3525
3611
  deprecated?: boolean;
@@ -3641,6 +3727,10 @@ declare namespace Components {
3641
3727
  * Render as a column in table views. When defined, overrides `hidden`
3642
3728
  */
3643
3729
  show_in_table?: boolean;
3730
+ /**
3731
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3732
+ */
3733
+ sortable?: boolean;
3644
3734
  required?: boolean;
3645
3735
  readonly?: boolean;
3646
3736
  deprecated?: boolean;
@@ -3746,6 +3836,130 @@ declare namespace Components {
3746
3836
  };
3747
3837
  type?: "ordered_list";
3748
3838
  }
3839
+ /**
3840
+ * Shared Partner Organisations
3841
+ */
3842
+ export interface PartnerOrganisationAttribute {
3843
+ name: string;
3844
+ label: string;
3845
+ placeholder?: string;
3846
+ /**
3847
+ * Do not render attribute in entity views
3848
+ */
3849
+ hidden?: boolean;
3850
+ /**
3851
+ * Render as a column in table views. When defined, overrides `hidden`
3852
+ */
3853
+ show_in_table?: boolean;
3854
+ /**
3855
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3856
+ */
3857
+ sortable?: boolean;
3858
+ required?: boolean;
3859
+ readonly?: boolean;
3860
+ deprecated?: boolean;
3861
+ default_value?: any;
3862
+ /**
3863
+ * Which group the attribute should appear in. Accepts group ID or group name
3864
+ */
3865
+ group?: string;
3866
+ /**
3867
+ * Attribute sort order (ascending) in group
3868
+ * example:
3869
+ * 0
3870
+ */
3871
+ order?: number;
3872
+ /**
3873
+ * example:
3874
+ * full_width
3875
+ */
3876
+ layout?: string;
3877
+ /**
3878
+ * When set to true, will hide the label of the field.
3879
+ */
3880
+ hide_label?: boolean;
3881
+ /**
3882
+ * Code name of the icon to used to represent this attribute.
3883
+ * The value must be a valid @epilot/base-elements Icon name
3884
+ *
3885
+ */
3886
+ icon?: string;
3887
+ /**
3888
+ * Defines the conditional rendering expression for showing this field.
3889
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
3890
+ * Note: Empty or invalid expression have no effect on the field visibility.
3891
+ *
3892
+ */
3893
+ render_condition?: string;
3894
+ _purpose?: ClassificationId /* uuid */[];
3895
+ /**
3896
+ * A set of constraints applicable to the attribute.
3897
+ * These constraints should and will be enforced by the attribute renderer.
3898
+ *
3899
+ * example:
3900
+ * {
3901
+ * "disablePast": true
3902
+ * }
3903
+ */
3904
+ constraints?: {
3905
+ [key: string]: any;
3906
+ };
3907
+ /**
3908
+ * This attribute should only be active when the feature flag is enabled
3909
+ * example:
3910
+ * FF_MY_FEATURE_FLAG
3911
+ */
3912
+ feature_flag?: string;
3913
+ /**
3914
+ * This attribute should only be active when the setting is enabled
3915
+ * example:
3916
+ * MY_SETTING
3917
+ */
3918
+ setting_flag?: string;
3919
+ value_formatter?: string;
3920
+ preview_value_formatter?: string;
3921
+ /**
3922
+ * Setting to `true` disables editing the attribute on the entity builder UI
3923
+ */
3924
+ entity_builder_disable_edit?: boolean;
3925
+ /**
3926
+ * Setting to `true` prevents the attribute from being modified / deleted
3927
+ */
3928
+ protected?: boolean;
3929
+ /**
3930
+ * A set of configurations meant to document and assist the user in filling the attribute.
3931
+ */
3932
+ info_helpers?: {
3933
+ /**
3934
+ * The text to be displayed in the attribute hint helper.
3935
+ * When specified it overrides the `hint_text_key` configuration.
3936
+ *
3937
+ */
3938
+ hint_text?: string;
3939
+ /**
3940
+ * The key of the hint text to be displayed in the attribute hint helper.
3941
+ * The key should be a valid i18n key.
3942
+ *
3943
+ */
3944
+ hint_text_key?: string;
3945
+ /**
3946
+ * The name of the custom component to be used as the hint helper.
3947
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
3948
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
3949
+ *
3950
+ */
3951
+ hint_custom_component?: string;
3952
+ /**
3953
+ * The placement of the hint tooltip.
3954
+ * The value should be a valid `@mui/core` tooltip placement.
3955
+ *
3956
+ * example:
3957
+ * top
3958
+ */
3959
+ hint_tooltip_placement?: string;
3960
+ };
3961
+ type?: "partner_organisation";
3962
+ }
3749
3963
  /**
3750
3964
  * Partner Status
3751
3965
  */
@@ -3761,6 +3975,10 @@ declare namespace Components {
3761
3975
  * Render as a column in table views. When defined, overrides `hidden`
3762
3976
  */
3763
3977
  show_in_table?: boolean;
3978
+ /**
3979
+ * Allow sorting by this attribute in table views if `show_in_table` is true
3980
+ */
3981
+ sortable?: boolean;
3764
3982
  required?: boolean;
3765
3983
  readonly?: boolean;
3766
3984
  deprecated?: boolean;
@@ -3881,6 +4099,10 @@ declare namespace Components {
3881
4099
  * Render as a column in table views. When defined, overrides `hidden`
3882
4100
  */
3883
4101
  show_in_table?: boolean;
4102
+ /**
4103
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4104
+ */
4105
+ sortable?: boolean;
3884
4106
  required?: boolean;
3885
4107
  readonly?: boolean;
3886
4108
  deprecated?: boolean;
@@ -4006,6 +4228,10 @@ declare namespace Components {
4006
4228
  * Render as a column in table views. When defined, overrides `hidden`
4007
4229
  */
4008
4230
  show_in_table?: boolean;
4231
+ /**
4232
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4233
+ */
4234
+ sortable?: boolean;
4009
4235
  required?: boolean;
4010
4236
  readonly?: boolean;
4011
4237
  deprecated?: boolean;
@@ -4145,6 +4371,10 @@ declare namespace Components {
4145
4371
  * Render as a column in table views. When defined, overrides `hidden`
4146
4372
  */
4147
4373
  show_in_table?: boolean;
4374
+ /**
4375
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4376
+ */
4377
+ sortable?: boolean;
4148
4378
  required?: boolean;
4149
4379
  readonly?: boolean;
4150
4380
  deprecated?: boolean;
@@ -4502,6 +4732,10 @@ declare namespace Components {
4502
4732
  * Render as a column in table views. When defined, overrides `hidden`
4503
4733
  */
4504
4734
  show_in_table?: boolean;
4735
+ /**
4736
+ * Allow sorting by this attribute in table views if `show_in_table` is true
4737
+ */
4738
+ sortable?: boolean;
4505
4739
  required?: boolean;
4506
4740
  readonly?: boolean;
4507
4741
  deprecated?: boolean;
@@ -4648,6 +4882,10 @@ declare namespace Components {
4648
4882
  * true
4649
4883
  */
4650
4884
  shared?: boolean;
4885
+ /**
4886
+ * List of users (IDs) that have favorited the view
4887
+ */
4888
+ isFavoritedBy?: string[];
4651
4889
  created_by: {
4652
4890
  /**
4653
4891
  * example:
@@ -4717,6 +4955,10 @@ declare namespace Components {
4717
4955
  * true
4718
4956
  */
4719
4957
  shared?: boolean;
4958
+ /**
4959
+ * List of users (IDs) that have favorited the view
4960
+ */
4961
+ isFavoritedBy?: string[];
4720
4962
  created_by: {
4721
4963
  /**
4722
4964
  * example:
@@ -4787,6 +5029,10 @@ declare namespace Components {
4787
5029
  * Render as a column in table views. When defined, overrides `hidden`
4788
5030
  */
4789
5031
  show_in_table?: boolean;
5032
+ /**
5033
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5034
+ */
5035
+ sortable?: boolean;
4790
5036
  required?: boolean;
4791
5037
  readonly?: boolean;
4792
5038
  deprecated?: boolean;
@@ -4915,6 +5161,10 @@ declare namespace Components {
4915
5161
  * Render as a column in table views. When defined, overrides `hidden`
4916
5162
  */
4917
5163
  show_in_table?: boolean;
5164
+ /**
5165
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5166
+ */
5167
+ sortable?: boolean;
4918
5168
  required?: boolean;
4919
5169
  readonly?: boolean;
4920
5170
  deprecated?: boolean;
@@ -5042,6 +5292,10 @@ declare namespace Components {
5042
5292
  * Render as a column in table views. When defined, overrides `hidden`
5043
5293
  */
5044
5294
  show_in_table?: boolean;
5295
+ /**
5296
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5297
+ */
5298
+ sortable?: boolean;
5045
5299
  required?: boolean;
5046
5300
  readonly?: boolean;
5047
5301
  deprecated?: boolean;
@@ -5232,6 +5486,10 @@ declare namespace Components {
5232
5486
  * Render as a column in table views. When defined, overrides `hidden`
5233
5487
  */
5234
5488
  show_in_table?: boolean;
5489
+ /**
5490
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5491
+ */
5492
+ sortable?: boolean;
5235
5493
  required?: boolean;
5236
5494
  readonly?: boolean;
5237
5495
  deprecated?: boolean;
@@ -5393,6 +5651,10 @@ declare namespace Components {
5393
5651
  * Render as a column in table views. When defined, overrides `hidden`
5394
5652
  */
5395
5653
  show_in_table?: boolean;
5654
+ /**
5655
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5656
+ */
5657
+ sortable?: boolean;
5396
5658
  required?: boolean;
5397
5659
  readonly?: boolean;
5398
5660
  deprecated?: boolean;
@@ -5514,6 +5776,10 @@ declare namespace Components {
5514
5776
  * Render as a column in table views. When defined, overrides `hidden`
5515
5777
  */
5516
5778
  show_in_table?: boolean;
5779
+ /**
5780
+ * Allow sorting by this attribute in table views if `show_in_table` is true
5781
+ */
5782
+ sortable?: boolean;
5517
5783
  required?: boolean;
5518
5784
  readonly?: boolean;
5519
5785
  deprecated?: boolean;
@@ -5625,6 +5891,12 @@ declare namespace Components {
5625
5891
  declare namespace Paths {
5626
5892
  namespace AddRelations {
5627
5893
  namespace Parameters {
5894
+ export type ActivityId = /**
5895
+ * See https://github.com/ulid/spec
5896
+ * example:
5897
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
5898
+ */
5899
+ Components.Schemas.ActivityId /* ulid */;
5628
5900
  export type Async = boolean;
5629
5901
  export type Id = Components.Schemas.EntityId /* uuid */;
5630
5902
  export type Slug = /**
@@ -5640,6 +5912,7 @@ declare namespace Paths {
5640
5912
  }
5641
5913
  export interface QueryParameters {
5642
5914
  async?: Parameters.Async;
5915
+ activity_id?: Parameters.ActivityId;
5643
5916
  }
5644
5917
  export type RequestBody = Components.Schemas.RelationItem[];
5645
5918
  namespace Responses {
@@ -5861,6 +6134,12 @@ declare namespace Paths {
5861
6134
  }
5862
6135
  namespace DeleteRelation {
5863
6136
  namespace Parameters {
6137
+ export type ActivityId = /**
6138
+ * See https://github.com/ulid/spec
6139
+ * example:
6140
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
6141
+ */
6142
+ Components.Schemas.ActivityId /* ulid */;
5864
6143
  export type Async = boolean;
5865
6144
  export type Attribute = string;
5866
6145
  export type EntityId = string;
@@ -5880,6 +6159,7 @@ declare namespace Paths {
5880
6159
  }
5881
6160
  export interface QueryParameters {
5882
6161
  async?: Parameters.Async;
6162
+ activity_id?: Parameters.ActivityId;
5883
6163
  }
5884
6164
  namespace Responses {
5885
6165
  export interface $204 {
@@ -6074,6 +6354,7 @@ declare namespace Paths {
6074
6354
  export type Before = string; // date-time
6075
6355
  export type From = number;
6076
6356
  export type Id = Components.Schemas.EntityId /* uuid */;
6357
+ export type IncludeRelations = boolean;
6077
6358
  export type Size = number;
6078
6359
  export type Slug = /**
6079
6360
  * URL-friendly identifier for the entity schema
@@ -6101,6 +6382,7 @@ declare namespace Paths {
6101
6382
  * SyncActivity
6102
6383
  */
6103
6384
  Parameters.Type;
6385
+ include_relations?: Parameters.IncludeRelations;
6104
6386
  }
6105
6387
  namespace Responses {
6106
6388
  export interface $200 {
@@ -6113,11 +6395,47 @@ declare namespace Paths {
6113
6395
  }
6114
6396
  }
6115
6397
  }
6398
+ namespace GetRelatedEntitiesCount {
6399
+ namespace Parameters {
6400
+ export type ExcludeSchemas = string[];
6401
+ export type Id = Components.Schemas.EntityId /* uuid */;
6402
+ export type Slug = /**
6403
+ * URL-friendly identifier for the entity schema
6404
+ * example:
6405
+ * contact
6406
+ */
6407
+ Components.Schemas.EntitySlug;
6408
+ }
6409
+ export interface PathParameters {
6410
+ slug: Parameters.Slug;
6411
+ id: Parameters.Id;
6412
+ }
6413
+ export interface QueryParameters {
6414
+ exclude_schemas?: Parameters.ExcludeSchemas;
6415
+ }
6416
+ namespace Responses {
6417
+ export type $200 = Components.Schemas.GetRelatedEntitiesCount;
6418
+ }
6419
+ }
6116
6420
  namespace GetRelations {
6117
6421
  namespace Parameters {
6422
+ export type ExcludeSchemas = /**
6423
+ * URL-friendly identifier for the entity schema
6424
+ * example:
6425
+ * contact
6426
+ */
6427
+ Components.Schemas.EntitySlug[];
6428
+ export type From = number;
6118
6429
  export type Hydrate = boolean;
6119
6430
  export type Id = Components.Schemas.EntityId /* uuid */;
6120
6431
  export type IncludeReverse = boolean;
6432
+ export type IncludeSchemas = /**
6433
+ * URL-friendly identifier for the entity schema
6434
+ * example:
6435
+ * contact
6436
+ */
6437
+ Components.Schemas.EntitySlug[];
6438
+ export type Size = number;
6121
6439
  export type Slug = /**
6122
6440
  * URL-friendly identifier for the entity schema
6123
6441
  * example:
@@ -6132,6 +6450,10 @@ declare namespace Paths {
6132
6450
  export interface QueryParameters {
6133
6451
  hydrate?: Parameters.Hydrate;
6134
6452
  include_reverse?: Parameters.IncludeReverse;
6453
+ from?: Parameters.From;
6454
+ size?: Parameters.Size;
6455
+ include_schemas?: Parameters.IncludeSchemas;
6456
+ exclude_schemas?: Parameters.ExcludeSchemas;
6135
6457
  }
6136
6458
  namespace Responses {
6137
6459
  export type $200 = Components.Schemas.GetRelationsResp;
@@ -6185,6 +6507,48 @@ declare namespace Paths {
6185
6507
  export type $200 = Components.Schemas.GetRelationsRespWithPagination;
6186
6508
  }
6187
6509
  }
6510
+ namespace GetRelationsV3 {
6511
+ namespace Parameters {
6512
+ export type ExcludeSchemas = /**
6513
+ * URL-friendly identifier for the entity schema
6514
+ * example:
6515
+ * contact
6516
+ */
6517
+ Components.Schemas.EntitySlug[];
6518
+ export type From = number;
6519
+ export type Hydrate = boolean;
6520
+ export type Id = Components.Schemas.EntityId /* uuid */;
6521
+ export type IncludeReverse = boolean;
6522
+ export type IncludeSchemas = /**
6523
+ * URL-friendly identifier for the entity schema
6524
+ * example:
6525
+ * contact
6526
+ */
6527
+ Components.Schemas.EntitySlug[];
6528
+ export type Size = number;
6529
+ export type Slug = /**
6530
+ * URL-friendly identifier for the entity schema
6531
+ * example:
6532
+ * contact
6533
+ */
6534
+ Components.Schemas.EntitySlug;
6535
+ }
6536
+ export interface PathParameters {
6537
+ slug: Parameters.Slug;
6538
+ id: Parameters.Id;
6539
+ }
6540
+ export interface QueryParameters {
6541
+ hydrate?: Parameters.Hydrate;
6542
+ include_reverse?: Parameters.IncludeReverse;
6543
+ from?: Parameters.From;
6544
+ size?: Parameters.Size;
6545
+ include_schemas?: Parameters.IncludeSchemas;
6546
+ exclude_schemas?: Parameters.ExcludeSchemas;
6547
+ }
6548
+ namespace Responses {
6549
+ export type $200 = Components.Schemas.GetRelationsRespWithPagination;
6550
+ }
6551
+ }
6188
6552
  namespace GetSavedView {
6189
6553
  namespace Parameters {
6190
6554
  export type Id = /* Generated uuid for a saved view */ Components.Schemas.SavedViewId /* uuid */;
@@ -6281,6 +6645,13 @@ declare namespace Paths {
6281
6645
  }
6282
6646
  }
6283
6647
  }
6648
+ namespace ListFavoriteViewsForUser {
6649
+ namespace Responses {
6650
+ export interface $200 {
6651
+ results?: /* A saved entity view */ Components.Schemas.SavedViewItem[];
6652
+ }
6653
+ }
6654
+ }
6284
6655
  namespace ListSavedViews {
6285
6656
  namespace Responses {
6286
6657
  export interface $200 {
@@ -6640,6 +7011,12 @@ declare namespace Paths {
6640
7011
  }
6641
7012
  namespace UpdateRelation {
6642
7013
  namespace Parameters {
7014
+ export type ActivityId = /**
7015
+ * See https://github.com/ulid/spec
7016
+ * example:
7017
+ * 01F130Q52Q6MWSNS8N2AVXV4JN
7018
+ */
7019
+ Components.Schemas.ActivityId /* ulid */;
6643
7020
  export type Async = boolean;
6644
7021
  export type Attribute = string;
6645
7022
  export type EntityId = string;
@@ -6659,6 +7036,7 @@ declare namespace Paths {
6659
7036
  }
6660
7037
  export interface QueryParameters {
6661
7038
  async?: Parameters.Async;
7039
+ activity_id?: Parameters.ActivityId;
6662
7040
  }
6663
7041
  export interface RequestBody {
6664
7042
  _tags?: string[];
@@ -7295,6 +7673,32 @@ export interface OperationMethods {
7295
7673
  data?: any,
7296
7674
  config?: AxiosRequestConfig
7297
7675
  ): OperationResponse<Paths.GetRelationsV2.Responses.$200>
7676
+ /**
7677
+ * getRelationsV3 - getRelationsV3
7678
+ *
7679
+ * Returns 1st level direct relations for an entity with pagination.
7680
+ *
7681
+ * You can control whether to return the full entity or just the relation item with the `?hydrate` query param.
7682
+ *
7683
+ * Reverse relations i.e. entities referring to this entity are included with the `?include_reverse` query param.
7684
+ *
7685
+ */
7686
+ 'getRelationsV3'(
7687
+ parameters?: Parameters<Paths.GetRelationsV3.PathParameters & Paths.GetRelationsV3.QueryParameters> | null,
7688
+ data?: any,
7689
+ config?: AxiosRequestConfig
7690
+ ): OperationResponse<Paths.GetRelationsV3.Responses.$200>
7691
+ /**
7692
+ * getRelatedEntitiesCount - getRelatedEntitiesCount
7693
+ *
7694
+ * Returns the amount of unique related entities for an entity - includes direct and reverse relations.
7695
+ *
7696
+ */
7697
+ 'getRelatedEntitiesCount'(
7698
+ parameters?: Parameters<Paths.GetRelatedEntitiesCount.PathParameters & Paths.GetRelatedEntitiesCount.QueryParameters> | null,
7699
+ data?: any,
7700
+ config?: AxiosRequestConfig
7701
+ ): OperationResponse<Paths.GetRelatedEntitiesCount.Responses.$200>
7298
7702
  /**
7299
7703
  * updateRelation - updateRelation
7300
7704
  *
@@ -7388,6 +7792,16 @@ export interface OperationMethods {
7388
7792
  data?: any,
7389
7793
  config?: AxiosRequestConfig
7390
7794
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
7795
+ /**
7796
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
7797
+ *
7798
+ * Get the Favorite Saved Views for user based on the schema
7799
+ */
7800
+ 'listFavoriteViewsForUser'(
7801
+ parameters?: Parameters<UnknownParamsObject> | null,
7802
+ data?: any,
7803
+ config?: AxiosRequestConfig
7804
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
7391
7805
  /**
7392
7806
  * listTaxonomies - listTaxonomies
7393
7807
  *
@@ -7928,6 +8342,36 @@ export interface PathsDictionary {
7928
8342
  config?: AxiosRequestConfig
7929
8343
  ): OperationResponse<Paths.GetRelationsV2.Responses.$200>
7930
8344
  }
8345
+ ['/v3/entity/{slug}/{id}/relations']: {
8346
+ /**
8347
+ * getRelationsV3 - getRelationsV3
8348
+ *
8349
+ * Returns 1st level direct relations for an entity with pagination.
8350
+ *
8351
+ * You can control whether to return the full entity or just the relation item with the `?hydrate` query param.
8352
+ *
8353
+ * Reverse relations i.e. entities referring to this entity are included with the `?include_reverse` query param.
8354
+ *
8355
+ */
8356
+ 'get'(
8357
+ parameters?: Parameters<Paths.GetRelationsV3.PathParameters & Paths.GetRelationsV3.QueryParameters> | null,
8358
+ data?: any,
8359
+ config?: AxiosRequestConfig
8360
+ ): OperationResponse<Paths.GetRelationsV3.Responses.$200>
8361
+ }
8362
+ ['/v2/entity/{slug}/{id}/relations/count']: {
8363
+ /**
8364
+ * getRelatedEntitiesCount - getRelatedEntitiesCount
8365
+ *
8366
+ * Returns the amount of unique related entities for an entity - includes direct and reverse relations.
8367
+ *
8368
+ */
8369
+ 'get'(
8370
+ parameters?: Parameters<Paths.GetRelatedEntitiesCount.PathParameters & Paths.GetRelatedEntitiesCount.QueryParameters> | null,
8371
+ data?: any,
8372
+ config?: AxiosRequestConfig
8373
+ ): OperationResponse<Paths.GetRelatedEntitiesCount.Responses.$200>
8374
+ }
7931
8375
  ['/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}']: {
7932
8376
  /**
7933
8377
  * updateRelation - updateRelation
@@ -8033,6 +8477,18 @@ export interface PathsDictionary {
8033
8477
  config?: AxiosRequestConfig
8034
8478
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
8035
8479
  }
8480
+ ['/v1/entity/views/favorites']: {
8481
+ /**
8482
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
8483
+ *
8484
+ * Get the Favorite Saved Views for user based on the schema
8485
+ */
8486
+ 'get'(
8487
+ parameters?: Parameters<UnknownParamsObject> | null,
8488
+ data?: any,
8489
+ config?: AxiosRequestConfig
8490
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
8491
+ }
8036
8492
  ['/v1/entity/listTaxonomies']: {
8037
8493
  /**
8038
8494
  * listTaxonomies - listTaxonomies