@epilot/entity-client 4.3.1 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -486,6 +486,12 @@ declare namespace Components {
486
486
  protected?: boolean;
487
487
  type?: "boolean";
488
488
  }
489
+ export type ClassificationId = string; // uuid
490
+ export interface ClassificationsUpdate {
491
+ create?: TaxonomyClassification[];
492
+ update?: TaxonomyClassification[];
493
+ delete?: TaxonomyClassification[];
494
+ }
489
495
  /**
490
496
  * 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)
491
497
  */
@@ -1011,7 +1017,7 @@ declare namespace Components {
1011
1017
  label?: string;
1012
1018
  };
1013
1019
  }
1014
- export interface EntityDefaultOverview {
1020
+ export interface EntityDefaultTable {
1015
1021
  view_type?: "default";
1016
1022
  dropdown_items?: ({
1017
1023
  type?: "entity";
@@ -1051,6 +1057,19 @@ declare namespace Components {
1051
1057
  legacy?: boolean;
1052
1058
  })[];
1053
1059
  row_actions?: string[];
1060
+ navbar_actions?: {
1061
+ type: string;
1062
+ options?: {
1063
+ label: string;
1064
+ params?: {
1065
+ [key: string]: any;
1066
+ };
1067
+ }[];
1068
+ }[];
1069
+ /**
1070
+ * Enable the thumbnail column
1071
+ */
1072
+ enable_thumbnails?: boolean;
1054
1073
  classic_view?: string; // uri
1055
1074
  }
1056
1075
  export type EntityId = string; // uuid
@@ -1652,7 +1671,7 @@ declare namespace Components {
1652
1671
  * contact
1653
1672
  */
1654
1673
  export type EntitySlug = string;
1655
- export type EntityViewConfig = EntityDefaultCreate | EntityDefaultEdit | EntityDefaultOverview | /**
1674
+ export type EntityViewConfig = EntityDefaultCreate | EntityDefaultEdit | EntityDefaultTable | /**
1656
1675
  * example:
1657
1676
  * {
1658
1677
  * "type": "redirect",
@@ -2158,6 +2177,10 @@ declare namespace Components {
2158
2177
  * Pass 'true' to generate import template
2159
2178
  */
2160
2179
  export type IsTemplate = boolean;
2180
+ /**
2181
+ * Export headers translation Language
2182
+ */
2183
+ export type Language = string;
2161
2184
  /**
2162
2185
  * Link with title and href
2163
2186
  */
@@ -3488,6 +3511,46 @@ declare namespace Components {
3488
3511
  options?: string[];
3489
3512
  suggestions?: string[];
3490
3513
  }
3514
+ export interface Taxonomy {
3515
+ slug: /**
3516
+ * Taxonomy slug e.g. purpose, folder etc
3517
+ * example:
3518
+ * purpose
3519
+ */
3520
+ TaxonomySlug;
3521
+ /**
3522
+ * A simple name of a taxonomy could be any string e.g. Purpos, Folder, Product Category
3523
+ * example:
3524
+ * Purpose
3525
+ */
3526
+ name: string;
3527
+ /**
3528
+ * An optional parameter to add a plural name e.g. Purposes, Folders, Product Categories
3529
+ * example:
3530
+ * Purposes
3531
+ */
3532
+ plural?: string;
3533
+ values?: TaxonomyClassification[];
3534
+ created_at?: string; // date-time
3535
+ updated_at?: string; // date-time
3536
+ }
3537
+ export interface TaxonomyClassification {
3538
+ id?: ClassificationId /* uuid */;
3539
+ /**
3540
+ * example:
3541
+ * Wallbox PV
3542
+ */
3543
+ name?: string;
3544
+ parents?: ClassificationId /* uuid */[];
3545
+ created_at?: string; // date-time
3546
+ updated_at?: string; // date-time
3547
+ }
3548
+ /**
3549
+ * Taxonomy slug e.g. purpose, folder etc
3550
+ * example:
3551
+ * purpose
3552
+ */
3553
+ export type TaxonomySlug = string;
3491
3554
  /**
3492
3555
  * Textarea or text input
3493
3556
  */
@@ -3896,10 +3959,12 @@ declare namespace Paths {
3896
3959
  namespace Parameters {
3897
3960
  export type IsTemplate = /* Pass 'true' to generate import template */ Components.Schemas.IsTemplate;
3898
3961
  export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
3962
+ export type Language = /* Export headers translation Language */ Components.Schemas.Language;
3899
3963
  }
3900
3964
  export interface QueryParameters {
3901
3965
  job_id?: Parameters.JobId;
3902
3966
  is_template?: Parameters.IsTemplate;
3967
+ language?: Parameters.Language;
3903
3968
  }
3904
3969
  export type RequestBody = Components.Schemas.EntitySearchParams;
3905
3970
  namespace Responses {
@@ -4097,6 +4162,33 @@ declare namespace Paths {
4097
4162
  }
4098
4163
  }
4099
4164
  }
4165
+ namespace GetTaxonomy {
4166
+ namespace Parameters {
4167
+ export type TaxonomySlug = /**
4168
+ * Taxonomy slug e.g. purpose, folder etc
4169
+ * example:
4170
+ * purpose
4171
+ */
4172
+ Components.Schemas.TaxonomySlug;
4173
+ }
4174
+ export interface PathParameters {
4175
+ taxonomySlug: Parameters.TaxonomySlug;
4176
+ }
4177
+ namespace Responses {
4178
+ export type $200 = Components.Schemas.Taxonomy;
4179
+ }
4180
+ }
4181
+ namespace GetTaxonomyClassifications {
4182
+ namespace Parameters {
4183
+ export type TaxonomySlug = string;
4184
+ }
4185
+ export interface PathParameters {
4186
+ taxonomySlug: Parameters.TaxonomySlug;
4187
+ }
4188
+ namespace Responses {
4189
+ export type $200 = Components.Schemas.Taxonomy;
4190
+ }
4191
+ }
4100
4192
  namespace ImportEntities {
4101
4193
  namespace Parameters {
4102
4194
  export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
@@ -4137,12 +4229,50 @@ declare namespace Paths {
4137
4229
  }
4138
4230
  }
4139
4231
  }
4232
+ namespace ListTaxonomies {
4233
+ namespace Responses {
4234
+ export interface $200 {
4235
+ results?: Components.Schemas.Taxonomy[];
4236
+ }
4237
+ }
4238
+ }
4140
4239
  namespace SearchEntities {
4141
4240
  export type RequestBody = Components.Schemas.EntitySearchParams;
4142
4241
  namespace Responses {
4143
4242
  export type $200 = Components.Schemas.EntitySearchResults;
4144
4243
  }
4145
4244
  }
4245
+ namespace TaxonomiesAutocomplete {
4246
+ namespace Parameters {
4247
+ export type Query = string;
4248
+ export type Size = number;
4249
+ export type TaxonomySlug = string;
4250
+ }
4251
+ export interface QueryParameters {
4252
+ query?: Parameters.Query;
4253
+ taxonomySlug: Parameters.TaxonomySlug;
4254
+ size?: Parameters.Size;
4255
+ }
4256
+ namespace Responses {
4257
+ export interface $200 {
4258
+ results?: Components.Schemas.Taxonomy[];
4259
+ }
4260
+ }
4261
+ }
4262
+ namespace UpdateClassificationsForTaxonomy {
4263
+ namespace Parameters {
4264
+ export type TaxonomySlug = string;
4265
+ }
4266
+ export interface PathParameters {
4267
+ taxonomySlug: Parameters.TaxonomySlug;
4268
+ }
4269
+ export type RequestBody = Components.Schemas.ClassificationsUpdate;
4270
+ namespace Responses {
4271
+ export interface $200 {
4272
+ results?: Components.Schemas.Taxonomy[];
4273
+ }
4274
+ }
4275
+ }
4146
4276
  namespace UpdateEntity {
4147
4277
  namespace Parameters {
4148
4278
  export type ActivityId = /**
@@ -4776,6 +4906,56 @@ export interface OperationMethods {
4776
4906
  data?: any,
4777
4907
  config?: AxiosRequestConfig
4778
4908
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
4909
+ /**
4910
+ * listTaxonomies - listTaxonomies
4911
+ *
4912
+ * List taxonomies in an organisation
4913
+ */
4914
+ 'listTaxonomies'(
4915
+ parameters?: Parameters<UnknownParamsObject> | null,
4916
+ data?: any,
4917
+ config?: AxiosRequestConfig
4918
+ ): OperationResponse<Paths.ListTaxonomies.Responses.$200>
4919
+ /**
4920
+ * getTaxonomy - getTaxonomy
4921
+ *
4922
+ * Get taxonomy by slug
4923
+ */
4924
+ 'getTaxonomy'(
4925
+ parameters?: Parameters<Paths.GetTaxonomy.PathParameters> | null,
4926
+ data?: any,
4927
+ config?: AxiosRequestConfig
4928
+ ): OperationResponse<Paths.GetTaxonomy.Responses.$200>
4929
+ /**
4930
+ * taxonomiesAutocomplete - taxonomiesAutocomplete
4931
+ *
4932
+ * Taxonomies auocomplete
4933
+ */
4934
+ 'taxonomiesAutocomplete'(
4935
+ parameters?: Parameters<Paths.TaxonomiesAutocomplete.QueryParameters> | null,
4936
+ data?: any,
4937
+ config?: AxiosRequestConfig
4938
+ ): OperationResponse<Paths.TaxonomiesAutocomplete.Responses.$200>
4939
+ /**
4940
+ * getTaxonomyClassifications - getTaxonomyClassifications
4941
+ *
4942
+ * List taxomies in an organisation based on taxonomy slug
4943
+ */
4944
+ 'getTaxonomyClassifications'(
4945
+ parameters?: Parameters<Paths.GetTaxonomyClassifications.PathParameters> | null,
4946
+ data?: any,
4947
+ config?: AxiosRequestConfig
4948
+ ): OperationResponse<Paths.GetTaxonomyClassifications.Responses.$200>
4949
+ /**
4950
+ * updateClassificationsForTaxonomy - updateClassificationsForTaxonomy
4951
+ *
4952
+ * Update taxonomies in an organisation based in taxonomy slug
4953
+ */
4954
+ 'updateClassificationsForTaxonomy'(
4955
+ parameters?: Parameters<Paths.UpdateClassificationsForTaxonomy.PathParameters> | null,
4956
+ data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
4957
+ config?: AxiosRequestConfig
4958
+ ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
4779
4959
  }
4780
4960
 
4781
4961
  export interface PathsDictionary {
@@ -5302,6 +5482,64 @@ export interface PathsDictionary {
5302
5482
  config?: AxiosRequestConfig
5303
5483
  ): OperationResponse<Paths.DeleteSavedView.Responses.$200>
5304
5484
  }
5485
+ ['/v1/entity/listTaxonomies']: {
5486
+ /**
5487
+ * listTaxonomies - listTaxonomies
5488
+ *
5489
+ * List taxonomies in an organisation
5490
+ */
5491
+ 'get'(
5492
+ parameters?: Parameters<UnknownParamsObject> | null,
5493
+ data?: any,
5494
+ config?: AxiosRequestConfig
5495
+ ): OperationResponse<Paths.ListTaxonomies.Responses.$200>
5496
+ }
5497
+ ['/v1/entity/taxonomies/{taxonomySlug}']: {
5498
+ /**
5499
+ * getTaxonomy - getTaxonomy
5500
+ *
5501
+ * Get taxonomy by slug
5502
+ */
5503
+ 'get'(
5504
+ parameters?: Parameters<Paths.GetTaxonomy.PathParameters> | null,
5505
+ data?: any,
5506
+ config?: AxiosRequestConfig
5507
+ ): OperationResponse<Paths.GetTaxonomy.Responses.$200>
5508
+ }
5509
+ ['/v1/entity/taxonomies:autocomplete']: {
5510
+ /**
5511
+ * taxonomiesAutocomplete - taxonomiesAutocomplete
5512
+ *
5513
+ * Taxonomies auocomplete
5514
+ */
5515
+ 'get'(
5516
+ parameters?: Parameters<Paths.TaxonomiesAutocomplete.QueryParameters> | null,
5517
+ data?: any,
5518
+ config?: AxiosRequestConfig
5519
+ ): OperationResponse<Paths.TaxonomiesAutocomplete.Responses.$200>
5520
+ }
5521
+ ['/v1/entity/taxonomies/{taxonomySlug}/classifications']: {
5522
+ /**
5523
+ * getTaxonomyClassifications - getTaxonomyClassifications
5524
+ *
5525
+ * List taxomies in an organisation based on taxonomy slug
5526
+ */
5527
+ 'get'(
5528
+ parameters?: Parameters<Paths.GetTaxonomyClassifications.PathParameters> | null,
5529
+ data?: any,
5530
+ config?: AxiosRequestConfig
5531
+ ): OperationResponse<Paths.GetTaxonomyClassifications.Responses.$200>
5532
+ /**
5533
+ * updateClassificationsForTaxonomy - updateClassificationsForTaxonomy
5534
+ *
5535
+ * Update taxonomies in an organisation based in taxonomy slug
5536
+ */
5537
+ 'post'(
5538
+ parameters?: Parameters<Paths.UpdateClassificationsForTaxonomy.PathParameters> | null,
5539
+ data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
5540
+ config?: AxiosRequestConfig
5541
+ ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
5542
+ }
5305
5543
  }
5306
5544
 
5307
5545
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>