@epilot/entity-client 4.14.1 → 4.14.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,t,i){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(240));t.default=a.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"in":"path","name":"slug","required":true}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"taxonomySlug","required":true},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"dry_run","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"}]},"put":{"operationId":"updateEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"dry_run","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"in":"path","name":"id","required":true},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"in":"path","name":"id","required":true},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"after"},{"in":"query","name":"before"},{"in":"query","name":"from"},{"in":"query","name":"size"},{"in":"query","name":"type"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"},{"in":"query","name":"include_reverse"}]},"post":{"operationId":"addRelations","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"},{"in":"query","name":"query"},{"in":"query","name":"include_reverse"},{"in":"query","name":"from"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"in":"query","name":"async","required":false}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews"}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"in":"path","name":"id","required":true}]},"put":{"operationId":"updateSavedView","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"in":"path","name":"id","required":true}]}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"in":"path","name":"taxonomySlug","required":true}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"in":"path","name":"taxonomySlug","required":true},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"in":"query","name":"taxonomySlug","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"in":"path","name":"taxonomySlug","required":true}],"requestBody":{"content":{"application/json":{}}}}}},"components":{},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},i=function i(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,i),n.exports}(914),r=exports;for(var a in i)r[a]=i[a];i.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={914:function(e,t,i){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(240));t.default=a.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"in":"path","name":"slug","required":true}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"taxonomySlug","required":true},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"dry_run","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"}]},"put":{"operationId":"updateEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false},{"in":"query","name":"dry_run","required":false},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"activity_id","required":false}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"in":"path","name":"id","required":true},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"in":"path","name":"id","required":true},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"after"},{"in":"query","name":"before"},{"in":"query","name":"from"},{"in":"query","name":"size"},{"in":"query","name":"type"},{"in":"query","name":"include_relations"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"},{"in":"query","name":"include_reverse"}]},"post":{"operationId":"addRelations","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"query","name":"hydrate"},{"in":"query","name":"query"},{"in":"query","name":"include_reverse"},{"in":"query","name":"from"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"in":"query","name":"async","required":false}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"id","required":true},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"in":"query","name":"async","required":false}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews"}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"in":"path","name":"id","required":true}]},"put":{"operationId":"updateSavedView","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"in":"path","name":"id","required":true}]}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser"}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"in":"path","name":"taxonomySlug","required":true}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"in":"path","name":"taxonomySlug","required":true},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"in":"query","name":"taxonomySlug","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"in":"path","name":"taxonomySlug","required":true}],"requestBody":{"content":{"application/json":{}}}}}},"components":{},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},i=function i(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,i),n.exports}(914),r=exports;for(var a in i)r[a]=i[a];i.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
@@ -408,6 +408,10 @@
408
408
  {
409
409
  "in": "query",
410
410
  "name": "type"
411
+ },
412
+ {
413
+ "in": "query",
414
+ "name": "include_relations"
411
415
  }
412
416
  ]
413
417
  }
@@ -662,6 +666,11 @@
662
666
  ]
663
667
  }
664
668
  },
669
+ "/v1/entity/views/favorites": {
670
+ "get": {
671
+ "operationId": "listFavoriteViewsForUser"
672
+ }
673
+ },
665
674
  "/v1/entity/listTaxonomies": {
666
675
  "get": {
667
676
  "operationId": "listTaxonomies"
package/dist/openapi.d.ts CHANGED
@@ -264,7 +264,7 @@ declare namespace Components {
264
264
  type?: "relation_address";
265
265
  has_primary?: boolean;
266
266
  }
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;
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 | /* Shared Partner Organisations */ ParterOrganisationAttribute;
268
268
  /**
269
269
  * Automation entity
270
270
  */
@@ -3746,6 +3746,126 @@ declare namespace Components {
3746
3746
  };
3747
3747
  type?: "ordered_list";
3748
3748
  }
3749
+ /**
3750
+ * Shared Partner Organisations
3751
+ */
3752
+ export interface ParterOrganisationAttribute {
3753
+ name: string;
3754
+ label: string;
3755
+ placeholder?: string;
3756
+ /**
3757
+ * Do not render attribute in entity views
3758
+ */
3759
+ hidden?: boolean;
3760
+ /**
3761
+ * Render as a column in table views. When defined, overrides `hidden`
3762
+ */
3763
+ show_in_table?: boolean;
3764
+ required?: boolean;
3765
+ readonly?: boolean;
3766
+ deprecated?: boolean;
3767
+ default_value?: any;
3768
+ /**
3769
+ * Which group the attribute should appear in. Accepts group ID or group name
3770
+ */
3771
+ group?: string;
3772
+ /**
3773
+ * Attribute sort order (ascending) in group
3774
+ * example:
3775
+ * 0
3776
+ */
3777
+ order?: number;
3778
+ /**
3779
+ * example:
3780
+ * full_width
3781
+ */
3782
+ layout?: string;
3783
+ /**
3784
+ * When set to true, will hide the label of the field.
3785
+ */
3786
+ hide_label?: boolean;
3787
+ /**
3788
+ * Code name of the icon to used to represent this attribute.
3789
+ * The value must be a valid @epilot/base-elements Icon name
3790
+ *
3791
+ */
3792
+ icon?: string;
3793
+ /**
3794
+ * Defines the conditional rendering expression for showing this field.
3795
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
3796
+ * Note: Empty or invalid expression have no effect on the field visibility.
3797
+ *
3798
+ */
3799
+ render_condition?: string;
3800
+ _purpose?: ClassificationId /* uuid */[];
3801
+ /**
3802
+ * A set of constraints applicable to the attribute.
3803
+ * These constraints should and will be enforced by the attribute renderer.
3804
+ *
3805
+ * example:
3806
+ * {
3807
+ * "disablePast": true
3808
+ * }
3809
+ */
3810
+ constraints?: {
3811
+ [key: string]: any;
3812
+ };
3813
+ /**
3814
+ * This attribute should only be active when the feature flag is enabled
3815
+ * example:
3816
+ * FF_MY_FEATURE_FLAG
3817
+ */
3818
+ feature_flag?: string;
3819
+ /**
3820
+ * This attribute should only be active when the setting is enabled
3821
+ * example:
3822
+ * MY_SETTING
3823
+ */
3824
+ setting_flag?: string;
3825
+ value_formatter?: string;
3826
+ preview_value_formatter?: string;
3827
+ /**
3828
+ * Setting to `true` disables editing the attribute on the entity builder UI
3829
+ */
3830
+ entity_builder_disable_edit?: boolean;
3831
+ /**
3832
+ * Setting to `true` prevents the attribute from being modified / deleted
3833
+ */
3834
+ protected?: boolean;
3835
+ /**
3836
+ * A set of configurations meant to document and assist the user in filling the attribute.
3837
+ */
3838
+ info_helpers?: {
3839
+ /**
3840
+ * The text to be displayed in the attribute hint helper.
3841
+ * When specified it overrides the `hint_text_key` configuration.
3842
+ *
3843
+ */
3844
+ hint_text?: string;
3845
+ /**
3846
+ * The key of the hint text to be displayed in the attribute hint helper.
3847
+ * The key should be a valid i18n key.
3848
+ *
3849
+ */
3850
+ hint_text_key?: string;
3851
+ /**
3852
+ * The name of the custom component to be used as the hint helper.
3853
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
3854
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
3855
+ *
3856
+ */
3857
+ hint_custom_component?: string;
3858
+ /**
3859
+ * The placement of the hint tooltip.
3860
+ * The value should be a valid `@mui/core` tooltip placement.
3861
+ *
3862
+ * example:
3863
+ * top
3864
+ */
3865
+ hint_tooltip_placement?: string;
3866
+ };
3867
+ type?: "partner_organisation";
3868
+ }
3749
3869
  /**
3750
3870
  * Partner Status
3751
3871
  */
@@ -4648,6 +4768,10 @@ declare namespace Components {
4648
4768
  * true
4649
4769
  */
4650
4770
  shared?: boolean;
4771
+ /**
4772
+ * List of users (IDs) that have favorited the view
4773
+ */
4774
+ isFavoritedBy?: string[];
4651
4775
  created_by: {
4652
4776
  /**
4653
4777
  * example:
@@ -4717,6 +4841,10 @@ declare namespace Components {
4717
4841
  * true
4718
4842
  */
4719
4843
  shared?: boolean;
4844
+ /**
4845
+ * List of users (IDs) that have favorited the view
4846
+ */
4847
+ isFavoritedBy?: string[];
4720
4848
  created_by: {
4721
4849
  /**
4722
4850
  * example:
@@ -5155,10 +5283,6 @@ declare namespace Components {
5155
5283
  * The displayed title of the option
5156
5284
  */
5157
5285
  title?: string;
5158
- /**
5159
- * If true, the option will not be displayed in the UI
5160
- */
5161
- hidden?: boolean;
5162
5286
  })[];
5163
5287
  }
5164
5288
  /**
@@ -6078,6 +6202,7 @@ declare namespace Paths {
6078
6202
  export type Before = string; // date-time
6079
6203
  export type From = number;
6080
6204
  export type Id = Components.Schemas.EntityId /* uuid */;
6205
+ export type IncludeRelations = boolean;
6081
6206
  export type Size = number;
6082
6207
  export type Slug = /**
6083
6208
  * URL-friendly identifier for the entity schema
@@ -6105,6 +6230,7 @@ declare namespace Paths {
6105
6230
  * SyncActivity
6106
6231
  */
6107
6232
  Parameters.Type;
6233
+ include_relations?: Parameters.IncludeRelations;
6108
6234
  }
6109
6235
  namespace Responses {
6110
6236
  export interface $200 {
@@ -6285,6 +6411,13 @@ declare namespace Paths {
6285
6411
  }
6286
6412
  }
6287
6413
  }
6414
+ namespace ListFavoriteViewsForUser {
6415
+ namespace Responses {
6416
+ export interface $200 {
6417
+ results?: /* A saved entity view */ Components.Schemas.SavedViewItem[];
6418
+ }
6419
+ }
6420
+ }
6288
6421
  namespace ListSavedViews {
6289
6422
  namespace Responses {
6290
6423
  export interface $200 {
@@ -7392,6 +7525,16 @@ export interface OperationMethods {
7392
7525
  data?: any,
7393
7526
  config?: AxiosRequestConfig
7394
7527
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
7528
+ /**
7529
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
7530
+ *
7531
+ * Get the Favorite Saved Views for user based on the schema
7532
+ */
7533
+ 'listFavoriteViewsForUser'(
7534
+ parameters?: Parameters<UnknownParamsObject> | null,
7535
+ data?: any,
7536
+ config?: AxiosRequestConfig
7537
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
7395
7538
  /**
7396
7539
  * listTaxonomies - listTaxonomies
7397
7540
  *
@@ -8037,6 +8180,18 @@ export interface PathsDictionary {
8037
8180
  config?: AxiosRequestConfig
8038
8181
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
8039
8182
  }
8183
+ ['/v1/entity/views/favorites']: {
8184
+ /**
8185
+ * listFavoriteViewsForUser - listFavoriteViewsForUser
8186
+ *
8187
+ * Get the Favorite Saved Views for user based on the schema
8188
+ */
8189
+ 'get'(
8190
+ parameters?: Parameters<UnknownParamsObject> | null,
8191
+ data?: any,
8192
+ config?: AxiosRequestConfig
8193
+ ): OperationResponse<Paths.ListFavoriteViewsForUser.Responses.$200>
8194
+ }
8040
8195
  ['/v1/entity/listTaxonomies']: {
8041
8196
  /**
8042
8197
  * listTaxonomies - listTaxonomies
package/dist/openapi.json CHANGED
@@ -1151,11 +1151,20 @@
1151
1151
  {
1152
1152
  "in": "query",
1153
1153
  "name": "type",
1154
- "description": "Activity type",
1154
+ "description": "Filter by activity type",
1155
1155
  "schema": {
1156
1156
  "type": "string",
1157
1157
  "example": "SyncActivity"
1158
1158
  }
1159
+ },
1160
+ {
1161
+ "in": "query",
1162
+ "name": "include_relations",
1163
+ "description": "Include activities from related entities",
1164
+ "schema": {
1165
+ "type": "boolean",
1166
+ "default": false
1167
+ }
1159
1168
  }
1160
1169
  ],
1161
1170
  "responses": {
@@ -1863,6 +1872,36 @@
1863
1872
  }
1864
1873
  }
1865
1874
  },
1875
+ "/v1/entity/views/favorites": {
1876
+ "get": {
1877
+ "operationId": "listFavoriteViewsForUser",
1878
+ "summary": "listFavoriteViewsForUser",
1879
+ "description": "Get the Favorite Saved Views for user based on the schema",
1880
+ "tags": [
1881
+ "Saved Views"
1882
+ ],
1883
+ "responses": {
1884
+ "200": {
1885
+ "description": "Success",
1886
+ "content": {
1887
+ "application/json": {
1888
+ "schema": {
1889
+ "type": "object",
1890
+ "properties": {
1891
+ "results": {
1892
+ "type": "array",
1893
+ "items": {
1894
+ "$ref": "#/components/schemas/SavedViewItem"
1895
+ }
1896
+ }
1897
+ }
1898
+ }
1899
+ }
1900
+ }
1901
+ }
1902
+ }
1903
+ }
1904
+ },
1866
1905
  "/v1/entity/listTaxonomies": {
1867
1906
  "get": {
1868
1907
  "operationId": "listTaxonomies",
@@ -2558,6 +2597,9 @@
2558
2597
  },
2559
2598
  {
2560
2599
  "$ref": "#/components/schemas/PurposeAttribute"
2600
+ },
2601
+ {
2602
+ "$ref": "#/components/schemas/ParterOrganisationAttribute"
2561
2603
  }
2562
2604
  ]
2563
2605
  },
@@ -2947,11 +2989,6 @@
2947
2989
  "title": {
2948
2990
  "description": "The displayed title of the option",
2949
2991
  "type": "string"
2950
- },
2951
- "hidden": {
2952
- "description": "If true, the option will not be displayed in the UI",
2953
- "type": "boolean",
2954
- "default": false
2955
2992
  }
2956
2993
  },
2957
2994
  "required": [
@@ -3310,6 +3347,25 @@
3310
3347
  }
3311
3348
  ]
3312
3349
  },
3350
+ "ParterOrganisationAttribute": {
3351
+ "allOf": [
3352
+ {
3353
+ "$ref": "#/components/schemas/BaseAttribute"
3354
+ },
3355
+ {
3356
+ "type": "object",
3357
+ "description": "Shared Partner Organisations",
3358
+ "properties": {
3359
+ "type": {
3360
+ "type": "string",
3361
+ "enum": [
3362
+ "partner_organisation"
3363
+ ]
3364
+ }
3365
+ }
3366
+ }
3367
+ ]
3368
+ },
3313
3369
  "AddressRelationAttribute": {
3314
3370
  "allOf": [
3315
3371
  {
@@ -4735,6 +4791,14 @@
4735
4791
  "type": "boolean",
4736
4792
  "example": true
4737
4793
  },
4794
+ "isFavoritedBy": {
4795
+ "description": "List of users (IDs) that have favorited the view",
4796
+ "type": "array",
4797
+ "items": {
4798
+ "type": "string",
4799
+ "example": 11701
4800
+ }
4801
+ },
4738
4802
  "created_by": {
4739
4803
  "anyOf": [
4740
4804
  {
@@ -5498,6 +5562,9 @@
5498
5562
  }
5499
5563
  },
5500
5564
  "servers": [
5565
+ {
5566
+ "url": "https://entity.sls.epilot.io"
5567
+ },
5501
5568
  {
5502
5569
  "url": "https://entity.sls.epilot.io"
5503
5570
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.14.1",
3
+ "version": "4.14.2",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",