@epilot/entity-client 4.3.1 → 4.3.3
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/definition.js +1 -1
- package/dist/openapi.d.ts +245 -2
- package/dist/openapi.json +358 -3
- package/package.json +2 -2
- package/package-lock.json +0 -18853
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?: ClassificationId /* uuid */[];
|
|
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
|
|
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 |
|
|
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,45 @@ declare namespace Components {
|
|
|
3488
3511
|
options?: string[];
|
|
3489
3512
|
suggestions?: string[];
|
|
3490
3513
|
}
|
|
3514
|
+
export interface Taxonomy {
|
|
3515
|
+
slug: /**
|
|
3516
|
+
* URL-friendly name for taxonomy
|
|
3517
|
+
* example:
|
|
3518
|
+
* purpose
|
|
3519
|
+
*/
|
|
3520
|
+
TaxonomySlug;
|
|
3521
|
+
/**
|
|
3522
|
+
* A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag
|
|
3523
|
+
* example:
|
|
3524
|
+
* Purpose
|
|
3525
|
+
*/
|
|
3526
|
+
name: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags
|
|
3529
|
+
* example:
|
|
3530
|
+
* Purposes
|
|
3531
|
+
*/
|
|
3532
|
+
plural?: string;
|
|
3533
|
+
created_at?: string; // date-time
|
|
3534
|
+
updated_at?: string; // date-time
|
|
3535
|
+
}
|
|
3536
|
+
export interface TaxonomyClassification {
|
|
3537
|
+
id?: ClassificationId /* uuid */;
|
|
3538
|
+
/**
|
|
3539
|
+
* example:
|
|
3540
|
+
* Wallbox PV
|
|
3541
|
+
*/
|
|
3542
|
+
name: string;
|
|
3543
|
+
parents?: ClassificationId /* uuid */[];
|
|
3544
|
+
created_at?: string; // date-time
|
|
3545
|
+
updated_at?: string; // date-time
|
|
3546
|
+
}
|
|
3547
|
+
/**
|
|
3548
|
+
* URL-friendly name for taxonomy
|
|
3549
|
+
* example:
|
|
3550
|
+
* purpose
|
|
3551
|
+
*/
|
|
3552
|
+
export type TaxonomySlug = string;
|
|
3491
3553
|
/**
|
|
3492
3554
|
* Textarea or text input
|
|
3493
3555
|
*/
|
|
@@ -3896,10 +3958,12 @@ declare namespace Paths {
|
|
|
3896
3958
|
namespace Parameters {
|
|
3897
3959
|
export type IsTemplate = /* Pass 'true' to generate import template */ Components.Schemas.IsTemplate;
|
|
3898
3960
|
export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
|
|
3961
|
+
export type Language = /* Export headers translation Language */ Components.Schemas.Language;
|
|
3899
3962
|
}
|
|
3900
3963
|
export interface QueryParameters {
|
|
3901
3964
|
job_id?: Parameters.JobId;
|
|
3902
3965
|
is_template?: Parameters.IsTemplate;
|
|
3966
|
+
language?: Parameters.Language;
|
|
3903
3967
|
}
|
|
3904
3968
|
export type RequestBody = Components.Schemas.EntitySearchParams;
|
|
3905
3969
|
namespace Responses {
|
|
@@ -4097,6 +4161,37 @@ declare namespace Paths {
|
|
|
4097
4161
|
}
|
|
4098
4162
|
}
|
|
4099
4163
|
}
|
|
4164
|
+
namespace GetTaxonomy {
|
|
4165
|
+
namespace Parameters {
|
|
4166
|
+
export type TaxonomySlug = /**
|
|
4167
|
+
* URL-friendly name for taxonomy
|
|
4168
|
+
* example:
|
|
4169
|
+
* purpose
|
|
4170
|
+
*/
|
|
4171
|
+
Components.Schemas.TaxonomySlug;
|
|
4172
|
+
}
|
|
4173
|
+
export interface PathParameters {
|
|
4174
|
+
taxonomySlug: Parameters.TaxonomySlug;
|
|
4175
|
+
}
|
|
4176
|
+
namespace Responses {
|
|
4177
|
+
export type $200 = Components.Schemas.Taxonomy;
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
namespace GetTaxonomyClassifications {
|
|
4181
|
+
namespace Parameters {
|
|
4182
|
+
export type ClassificationIds = Components.Schemas.ClassificationId /* uuid */[];
|
|
4183
|
+
export type TaxonomySlug = string;
|
|
4184
|
+
}
|
|
4185
|
+
export interface PathParameters {
|
|
4186
|
+
taxonomySlug: Parameters.TaxonomySlug;
|
|
4187
|
+
}
|
|
4188
|
+
export interface QueryParameters {
|
|
4189
|
+
classificationIds?: Parameters.ClassificationIds;
|
|
4190
|
+
}
|
|
4191
|
+
namespace Responses {
|
|
4192
|
+
export type $200 = Components.Schemas.TaxonomyClassification;
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4100
4195
|
namespace ImportEntities {
|
|
4101
4196
|
namespace Parameters {
|
|
4102
4197
|
export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
|
|
@@ -4137,12 +4232,52 @@ declare namespace Paths {
|
|
|
4137
4232
|
}
|
|
4138
4233
|
}
|
|
4139
4234
|
}
|
|
4235
|
+
namespace ListTaxonomies {
|
|
4236
|
+
namespace Responses {
|
|
4237
|
+
export interface $200 {
|
|
4238
|
+
results?: Components.Schemas.Taxonomy[];
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4140
4242
|
namespace SearchEntities {
|
|
4141
4243
|
export type RequestBody = Components.Schemas.EntitySearchParams;
|
|
4142
4244
|
namespace Responses {
|
|
4143
4245
|
export type $200 = Components.Schemas.EntitySearchResults;
|
|
4144
4246
|
}
|
|
4145
4247
|
}
|
|
4248
|
+
namespace TaxonomiesAutocomplete {
|
|
4249
|
+
namespace Parameters {
|
|
4250
|
+
export type Query = string;
|
|
4251
|
+
export type Size = number;
|
|
4252
|
+
export type TaxonomySlug = string;
|
|
4253
|
+
}
|
|
4254
|
+
export interface PathParameters {
|
|
4255
|
+
taxonomySlug: Parameters.TaxonomySlug;
|
|
4256
|
+
}
|
|
4257
|
+
export interface QueryParameters {
|
|
4258
|
+
query?: Parameters.Query;
|
|
4259
|
+
size?: Parameters.Size;
|
|
4260
|
+
}
|
|
4261
|
+
namespace Responses {
|
|
4262
|
+
export interface $200 {
|
|
4263
|
+
results?: Components.Schemas.TaxonomyClassification[];
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
}
|
|
4267
|
+
namespace UpdateClassificationsForTaxonomy {
|
|
4268
|
+
namespace Parameters {
|
|
4269
|
+
export type TaxonomySlug = string;
|
|
4270
|
+
}
|
|
4271
|
+
export interface PathParameters {
|
|
4272
|
+
taxonomySlug: Parameters.TaxonomySlug;
|
|
4273
|
+
}
|
|
4274
|
+
export type RequestBody = Components.Schemas.ClassificationsUpdate;
|
|
4275
|
+
namespace Responses {
|
|
4276
|
+
export interface $200 {
|
|
4277
|
+
results?: Components.Schemas.Taxonomy[];
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
4146
4281
|
namespace UpdateEntity {
|
|
4147
4282
|
namespace Parameters {
|
|
4148
4283
|
export type ActivityId = /**
|
|
@@ -4776,6 +4911,56 @@ export interface OperationMethods {
|
|
|
4776
4911
|
data?: any,
|
|
4777
4912
|
config?: AxiosRequestConfig
|
|
4778
4913
|
): OperationResponse<Paths.DeleteSavedView.Responses.$200>
|
|
4914
|
+
/**
|
|
4915
|
+
* listTaxonomies - listTaxonomies
|
|
4916
|
+
*
|
|
4917
|
+
* List taxonomies in an organisation
|
|
4918
|
+
*/
|
|
4919
|
+
'listTaxonomies'(
|
|
4920
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
4921
|
+
data?: any,
|
|
4922
|
+
config?: AxiosRequestConfig
|
|
4923
|
+
): OperationResponse<Paths.ListTaxonomies.Responses.$200>
|
|
4924
|
+
/**
|
|
4925
|
+
* getTaxonomy - getTaxonomy
|
|
4926
|
+
*
|
|
4927
|
+
* Get taxonomy by slug
|
|
4928
|
+
*/
|
|
4929
|
+
'getTaxonomy'(
|
|
4930
|
+
parameters?: Parameters<Paths.GetTaxonomy.PathParameters> | null,
|
|
4931
|
+
data?: any,
|
|
4932
|
+
config?: AxiosRequestConfig
|
|
4933
|
+
): OperationResponse<Paths.GetTaxonomy.Responses.$200>
|
|
4934
|
+
/**
|
|
4935
|
+
* taxonomiesAutocomplete - taxonomiesAutocomplete
|
|
4936
|
+
*
|
|
4937
|
+
* Taxonomies autocomplete
|
|
4938
|
+
*/
|
|
4939
|
+
'taxonomiesAutocomplete'(
|
|
4940
|
+
parameters?: Parameters<Paths.TaxonomiesAutocomplete.PathParameters & Paths.TaxonomiesAutocomplete.QueryParameters> | null,
|
|
4941
|
+
data?: any,
|
|
4942
|
+
config?: AxiosRequestConfig
|
|
4943
|
+
): OperationResponse<Paths.TaxonomiesAutocomplete.Responses.$200>
|
|
4944
|
+
/**
|
|
4945
|
+
* getTaxonomyClassifications - getTaxonomyClassifications
|
|
4946
|
+
*
|
|
4947
|
+
* List taxonomy classifications in an organisation based on taxonomy slug
|
|
4948
|
+
*/
|
|
4949
|
+
'getTaxonomyClassifications'(
|
|
4950
|
+
parameters?: Parameters<Paths.GetTaxonomyClassifications.PathParameters & Paths.GetTaxonomyClassifications.QueryParameters> | null,
|
|
4951
|
+
data?: any,
|
|
4952
|
+
config?: AxiosRequestConfig
|
|
4953
|
+
): OperationResponse<Paths.GetTaxonomyClassifications.Responses.$200>
|
|
4954
|
+
/**
|
|
4955
|
+
* updateClassificationsForTaxonomy - updateClassificationsForTaxonomy
|
|
4956
|
+
*
|
|
4957
|
+
* Update taxonomies in an organisation based in taxonomy slug
|
|
4958
|
+
*/
|
|
4959
|
+
'updateClassificationsForTaxonomy'(
|
|
4960
|
+
parameters?: Parameters<Paths.UpdateClassificationsForTaxonomy.PathParameters> | null,
|
|
4961
|
+
data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
|
|
4962
|
+
config?: AxiosRequestConfig
|
|
4963
|
+
): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
|
|
4779
4964
|
}
|
|
4780
4965
|
|
|
4781
4966
|
export interface PathsDictionary {
|
|
@@ -5302,6 +5487,64 @@ export interface PathsDictionary {
|
|
|
5302
5487
|
config?: AxiosRequestConfig
|
|
5303
5488
|
): OperationResponse<Paths.DeleteSavedView.Responses.$200>
|
|
5304
5489
|
}
|
|
5490
|
+
['/v1/entity/listTaxonomies']: {
|
|
5491
|
+
/**
|
|
5492
|
+
* listTaxonomies - listTaxonomies
|
|
5493
|
+
*
|
|
5494
|
+
* List taxonomies in an organisation
|
|
5495
|
+
*/
|
|
5496
|
+
'get'(
|
|
5497
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
5498
|
+
data?: any,
|
|
5499
|
+
config?: AxiosRequestConfig
|
|
5500
|
+
): OperationResponse<Paths.ListTaxonomies.Responses.$200>
|
|
5501
|
+
}
|
|
5502
|
+
['/v1/entity/taxonomies/{taxonomySlug}']: {
|
|
5503
|
+
/**
|
|
5504
|
+
* getTaxonomy - getTaxonomy
|
|
5505
|
+
*
|
|
5506
|
+
* Get taxonomy by slug
|
|
5507
|
+
*/
|
|
5508
|
+
'get'(
|
|
5509
|
+
parameters?: Parameters<Paths.GetTaxonomy.PathParameters> | null,
|
|
5510
|
+
data?: any,
|
|
5511
|
+
config?: AxiosRequestConfig
|
|
5512
|
+
): OperationResponse<Paths.GetTaxonomy.Responses.$200>
|
|
5513
|
+
}
|
|
5514
|
+
['/v1/entity/taxonomies/{taxonomySlug}:autocomplete']: {
|
|
5515
|
+
/**
|
|
5516
|
+
* taxonomiesAutocomplete - taxonomiesAutocomplete
|
|
5517
|
+
*
|
|
5518
|
+
* Taxonomies autocomplete
|
|
5519
|
+
*/
|
|
5520
|
+
'get'(
|
|
5521
|
+
parameters?: Parameters<Paths.TaxonomiesAutocomplete.PathParameters & Paths.TaxonomiesAutocomplete.QueryParameters> | null,
|
|
5522
|
+
data?: any,
|
|
5523
|
+
config?: AxiosRequestConfig
|
|
5524
|
+
): OperationResponse<Paths.TaxonomiesAutocomplete.Responses.$200>
|
|
5525
|
+
}
|
|
5526
|
+
['/v1/entity/taxonomies/{taxonomySlug}/classifications']: {
|
|
5527
|
+
/**
|
|
5528
|
+
* getTaxonomyClassifications - getTaxonomyClassifications
|
|
5529
|
+
*
|
|
5530
|
+
* List taxonomy classifications in an organisation based on taxonomy slug
|
|
5531
|
+
*/
|
|
5532
|
+
'get'(
|
|
5533
|
+
parameters?: Parameters<Paths.GetTaxonomyClassifications.PathParameters & Paths.GetTaxonomyClassifications.QueryParameters> | null,
|
|
5534
|
+
data?: any,
|
|
5535
|
+
config?: AxiosRequestConfig
|
|
5536
|
+
): OperationResponse<Paths.GetTaxonomyClassifications.Responses.$200>
|
|
5537
|
+
/**
|
|
5538
|
+
* updateClassificationsForTaxonomy - updateClassificationsForTaxonomy
|
|
5539
|
+
*
|
|
5540
|
+
* Update taxonomies in an organisation based in taxonomy slug
|
|
5541
|
+
*/
|
|
5542
|
+
'post'(
|
|
5543
|
+
parameters?: Parameters<Paths.UpdateClassificationsForTaxonomy.PathParameters> | null,
|
|
5544
|
+
data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
|
|
5545
|
+
config?: AxiosRequestConfig
|
|
5546
|
+
): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
|
|
5547
|
+
}
|
|
5305
5548
|
}
|
|
5306
5549
|
|
|
5307
5550
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|