@epilot/entity-client 4.25.0 → 4.25.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
@@ -224,6 +224,12 @@ declare namespace Components {
224
224
  * Reference to an address attribute of another entity
225
225
  */
226
226
  export interface AddressRelationAttribute {
227
+ /**
228
+ * ID for the entity attribute
229
+ * example:
230
+ * d5839b94-ba20-4225-a78e-76951d352bd6
231
+ */
232
+ id: string;
227
233
  name: string;
228
234
  label: string;
229
235
  placeholder?: string;
@@ -362,6 +368,12 @@ declare namespace Components {
362
368
  * Automation entity
363
369
  */
364
370
  export interface AutomationAttribute {
371
+ /**
372
+ * ID for the entity attribute
373
+ * example:
374
+ * d5839b94-ba20-4225-a78e-76951d352bd6
375
+ */
376
+ id: string;
365
377
  name: string;
366
378
  label: string;
367
379
  placeholder?: string;
@@ -524,6 +536,12 @@ declare namespace Components {
524
536
  caller?: ActivityCallerContext;
525
537
  }
526
538
  export interface BaseAttribute {
539
+ /**
540
+ * ID for the entity attribute
541
+ * example:
542
+ * d5839b94-ba20-4225-a78e-76951d352bd6
543
+ */
544
+ id: string;
527
545
  name: string;
528
546
  label: string;
529
547
  placeholder?: string;
@@ -714,6 +732,12 @@ declare namespace Components {
714
732
  * Yes / No Toggle
715
733
  */
716
734
  export interface BooleanAttribute {
735
+ /**
736
+ * ID for the entity attribute
737
+ * example:
738
+ * d5839b94-ba20-4225-a78e-76951d352bd6
739
+ */
740
+ id: string;
717
741
  name: string;
718
742
  label: string;
719
743
  placeholder?: string;
@@ -854,6 +878,12 @@ declare namespace Components {
854
878
  * 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)
855
879
  */
856
880
  export interface ComputedAttribute {
881
+ /**
882
+ * ID for the entity attribute
883
+ * example:
884
+ * d5839b94-ba20-4225-a78e-76951d352bd6
885
+ */
886
+ id: string;
857
887
  name: string;
858
888
  label: string;
859
889
  placeholder?: string;
@@ -980,6 +1010,12 @@ declare namespace Components {
980
1010
  * Consent Management
981
1011
  */
982
1012
  export interface ConsentAttribute {
1013
+ /**
1014
+ * ID for the entity attribute
1015
+ * example:
1016
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1017
+ */
1018
+ id: string;
983
1019
  name: string;
984
1020
  label: string;
985
1021
  placeholder?: string;
@@ -1108,6 +1144,12 @@ declare namespace Components {
1108
1144
  * Country picker
1109
1145
  */
1110
1146
  export interface CountryAttribute {
1147
+ /**
1148
+ * ID for the entity attribute
1149
+ * example:
1150
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1151
+ */
1152
+ id: string;
1111
1153
  name: string;
1112
1154
  label: string;
1113
1155
  placeholder?: string;
@@ -1234,6 +1276,12 @@ declare namespace Components {
1234
1276
  * Currency input
1235
1277
  */
1236
1278
  export interface CurrencyAttribute {
1279
+ /**
1280
+ * ID for the entity attribute
1281
+ * example:
1282
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1283
+ */
1284
+ id: string;
1237
1285
  name: string;
1238
1286
  label: string;
1239
1287
  placeholder?: string;
@@ -1370,6 +1418,12 @@ declare namespace Components {
1370
1418
  * Date or Datetime picker
1371
1419
  */
1372
1420
  export interface DateAttribute {
1421
+ /**
1422
+ * ID for the entity attribute
1423
+ * example:
1424
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1425
+ */
1426
+ id: string;
1373
1427
  name: string;
1374
1428
  label: string;
1375
1429
  placeholder?: string;
@@ -1595,6 +1649,12 @@ declare namespace Components {
1595
1649
  * Capabilities the Entity has. Turn features on/off for entities.
1596
1650
  */
1597
1651
  export interface EntityCapability {
1652
+ /**
1653
+ * ID for the entity capability
1654
+ * example:
1655
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1656
+ */
1657
+ id: string;
1598
1658
  /**
1599
1659
  * Unique name for the capability
1600
1660
  * example:
@@ -1704,6 +1764,12 @@ declare namespace Components {
1704
1764
  * a readonly computed ID for the entity capability including schema slug and the capability ID
1705
1765
  */
1706
1766
  export interface EntityCapabilityWithCompositeID {
1767
+ /**
1768
+ * ID for the entity capability
1769
+ * example:
1770
+ * d5839b94-ba20-4225-a78e-76951d352bd6
1771
+ */
1772
+ id: string;
1707
1773
  /**
1708
1774
  * Unique name for the capability
1709
1775
  * example:
@@ -3010,6 +3076,12 @@ declare namespace Components {
3010
3076
  * File or Image Attachment
3011
3077
  */
3012
3078
  export interface FileAttribute {
3079
+ /**
3080
+ * ID for the entity attribute
3081
+ * example:
3082
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3083
+ */
3084
+ id: string;
3013
3085
  name: string;
3014
3086
  label: string;
3015
3087
  placeholder?: string;
@@ -3267,6 +3339,12 @@ declare namespace Components {
3267
3339
  * No UI representation
3268
3340
  */
3269
3341
  export interface InternalAttribute {
3342
+ /**
3343
+ * ID for the entity attribute
3344
+ * example:
3345
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3346
+ */
3347
+ id: string;
3270
3348
  name: string;
3271
3349
  label: string;
3272
3350
  placeholder?: string;
@@ -3393,6 +3471,12 @@ declare namespace Components {
3393
3471
  * Epilot internal user info
3394
3472
  */
3395
3473
  export interface InternalUserAttribute {
3474
+ /**
3475
+ * ID for the entity attribute
3476
+ * example:
3477
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3478
+ */
3479
+ id: string;
3396
3480
  name: string;
3397
3481
  label: string;
3398
3482
  placeholder?: string;
@@ -3519,6 +3603,12 @@ declare namespace Components {
3519
3603
  * Email address for send invitation
3520
3604
  */
3521
3605
  export interface InvitationEmailAttribute {
3606
+ /**
3607
+ * ID for the entity attribute
3608
+ * example:
3609
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3610
+ */
3611
+ id: string;
3522
3612
  name: string;
3523
3613
  label: string;
3524
3614
  placeholder?: string;
@@ -3653,6 +3743,12 @@ declare namespace Components {
3653
3743
  * Link with title and href
3654
3744
  */
3655
3745
  export interface LinkAttribute {
3746
+ /**
3747
+ * ID for the entity attribute
3748
+ * example:
3749
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3750
+ */
3751
+ id: string;
3656
3752
  name: string;
3657
3753
  label: string;
3658
3754
  placeholder?: string;
@@ -3787,6 +3883,12 @@ declare namespace Components {
3787
3883
  * Multi Choice Selection
3788
3884
  */
3789
3885
  export interface MultiSelectAttribute {
3886
+ /**
3887
+ * ID for the entity attribute
3888
+ * example:
3889
+ * d5839b94-ba20-4225-a78e-76951d352bd6
3890
+ */
3891
+ id: string;
3790
3892
  name: string;
3791
3893
  label: string;
3792
3894
  placeholder?: string;
@@ -3929,6 +4031,12 @@ declare namespace Components {
3929
4031
  * Numeric input
3930
4032
  */
3931
4033
  export interface NumberAttribute {
4034
+ /**
4035
+ * ID for the entity attribute
4036
+ * example:
4037
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4038
+ */
4039
+ id: string;
3932
4040
  name: string;
3933
4041
  label: string;
3934
4042
  placeholder?: string;
@@ -4060,6 +4168,12 @@ declare namespace Components {
4060
4168
  * Type of attribute to render N number of ordered fields
4061
4169
  */
4062
4170
  export interface OrderedListAttribute {
4171
+ /**
4172
+ * ID for the entity attribute
4173
+ * example:
4174
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4175
+ */
4176
+ id: string;
4063
4177
  name: string;
4064
4178
  label: string;
4065
4179
  placeholder?: string;
@@ -4186,6 +4300,12 @@ declare namespace Components {
4186
4300
  * Shared Partner Organisations
4187
4301
  */
4188
4302
  export interface PartnerOrganisationAttribute {
4303
+ /**
4304
+ * ID for the entity attribute
4305
+ * example:
4306
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4307
+ */
4308
+ id: string;
4189
4309
  name: string;
4190
4310
  label: string;
4191
4311
  placeholder?: string;
@@ -4312,6 +4432,12 @@ declare namespace Components {
4312
4432
  * Partner Status
4313
4433
  */
4314
4434
  export interface PartnerStatusAttribute {
4435
+ /**
4436
+ * ID for the entity attribute
4437
+ * example:
4438
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4439
+ */
4440
+ id: string;
4315
4441
  name: string;
4316
4442
  label: string;
4317
4443
  placeholder?: string;
@@ -4438,6 +4564,12 @@ declare namespace Components {
4438
4564
  * Reference to a payment method attribute of another entity
4439
4565
  */
4440
4566
  export interface PaymentMethodRelationAttribute {
4567
+ /**
4568
+ * ID for the entity attribute
4569
+ * example:
4570
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4571
+ */
4572
+ id: string;
4441
4573
  name: string;
4442
4574
  label: string;
4443
4575
  placeholder?: string;
@@ -4565,6 +4697,16 @@ declare namespace Components {
4565
4697
  * Entity Taxonomy
4566
4698
  */
4567
4699
  export interface PurposeAttribute {
4700
+ /**
4701
+ * ID for the entity attribute
4702
+ * example:
4703
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4704
+ */
4705
+ id: /**
4706
+ * example:
4707
+ * taxonomy-slug:classification-slug
4708
+ */
4709
+ ClassificationId;
4568
4710
  /**
4569
4711
  * example:
4570
4712
  * Wallbox PV
@@ -4689,11 +4831,6 @@ declare namespace Components {
4689
4831
  */
4690
4832
  hint_tooltip_placement?: string;
4691
4833
  };
4692
- id?: /**
4693
- * example:
4694
- * taxonomy-slug:classification-slug
4695
- */
4696
- ClassificationId;
4697
4834
  /**
4698
4835
  * URL-friendly identifier for the classification
4699
4836
  * example:
@@ -4728,6 +4865,12 @@ declare namespace Components {
4728
4865
  * Entity Relationship
4729
4866
  */
4730
4867
  export interface RelationAttribute {
4868
+ /**
4869
+ * ID for the entity attribute
4870
+ * example:
4871
+ * d5839b94-ba20-4225-a78e-76951d352bd6
4872
+ */
4873
+ id: string;
4731
4874
  name: string;
4732
4875
  label: string;
4733
4876
  placeholder?: string;
@@ -5091,6 +5234,12 @@ declare namespace Components {
5091
5234
  * Repeatable (add N number of fields)
5092
5235
  */
5093
5236
  export interface RepeatableAttribute {
5237
+ /**
5238
+ * ID for the entity attribute
5239
+ * example:
5240
+ * d5839b94-ba20-4225-a78e-76951d352bd6
5241
+ */
5242
+ id: string;
5094
5243
  name: string;
5095
5244
  label: string;
5096
5245
  placeholder?: string;
@@ -5550,6 +5699,12 @@ declare namespace Components {
5550
5699
  * Dropdown select
5551
5700
  */
5552
5701
  export interface SelectAttribute {
5702
+ /**
5703
+ * ID for the entity attribute
5704
+ * example:
5705
+ * d5839b94-ba20-4225-a78e-76951d352bd6
5706
+ */
5707
+ id: string;
5553
5708
  name: string;
5554
5709
  label: string;
5555
5710
  placeholder?: string;
@@ -5684,6 +5839,12 @@ declare namespace Components {
5684
5839
  * Sequence of unique identifiers
5685
5840
  */
5686
5841
  export interface SequenceAttribute {
5842
+ /**
5843
+ * ID for the entity attribute
5844
+ * example:
5845
+ * d5839b94-ba20-4225-a78e-76951d352bd6
5846
+ */
5847
+ id: string;
5687
5848
  name: string;
5688
5849
  label: string;
5689
5850
  placeholder?: string;
@@ -5827,6 +5988,12 @@ declare namespace Components {
5827
5988
  * Status select
5828
5989
  */
5829
5990
  export interface StatusAttribute {
5991
+ /**
5992
+ * ID for the entity attribute
5993
+ * example:
5994
+ * d5839b94-ba20-4225-a78e-76951d352bd6
5995
+ */
5996
+ id: string;
5830
5997
  name: string;
5831
5998
  label: string;
5832
5999
  placeholder?: string;
@@ -6023,6 +6190,12 @@ declare namespace Components {
6023
6190
  * Tags
6024
6191
  */
6025
6192
  export interface TagsAttribute {
6193
+ /**
6194
+ * ID for the entity attribute
6195
+ * example:
6196
+ * d5839b94-ba20-4225-a78e-76951d352bd6
6197
+ */
6198
+ id: string;
6026
6199
  name: string;
6027
6200
  label: string;
6028
6201
  placeholder?: string;
@@ -6202,6 +6375,16 @@ declare namespace Components {
6202
6375
  * true
6203
6376
  */
6204
6377
  enabled?: boolean;
6378
+ /**
6379
+ * Position of the taxonomy
6380
+ * example:
6381
+ * 10
6382
+ */
6383
+ order?: number;
6384
+ /**
6385
+ * List of locations where the taxonomy is enabled to be used. If empty, it's enabled for all locations.
6386
+ */
6387
+ enabled_locations?: ("email-templates" | "emails" | "contacts" | "orders" | "contracts" | "meters" | "accounts" | "products" | "prices" | "opportunities" | "all_entities")[];
6205
6388
  }
6206
6389
  export interface TaxonomyClassification {
6207
6390
  id?: /**
@@ -6238,6 +6421,12 @@ declare namespace Components {
6238
6421
  * Textarea or text input
6239
6422
  */
6240
6423
  export interface TextAttribute {
6424
+ /**
6425
+ * ID for the entity attribute
6426
+ * example:
6427
+ * d5839b94-ba20-4225-a78e-76951d352bd6
6428
+ */
6429
+ id: string;
6241
6430
  name: string;
6242
6431
  label: string;
6243
6432
  placeholder?: string;
@@ -6365,6 +6554,12 @@ declare namespace Components {
6365
6554
  * User Relationship
6366
6555
  */
6367
6556
  export interface UserRelationAttribute {
6557
+ /**
6558
+ * ID for the entity attribute
6559
+ * example:
6560
+ * d5839b94-ba20-4225-a78e-76951d352bd6
6561
+ */
6562
+ id: string;
6368
6563
  name: string;
6369
6564
  label: string;
6370
6565
  placeholder?: string;
@@ -6706,6 +6901,46 @@ declare namespace Paths {
6706
6901
  export type $201 = /* A saved entity view */ Components.Schemas.SavedViewItem;
6707
6902
  }
6708
6903
  }
6904
+ namespace CreateSchemaAttribute {
6905
+ namespace Parameters {
6906
+ /**
6907
+ * example:
6908
+ * contact
6909
+ */
6910
+ export type Slug = string;
6911
+ }
6912
+ export interface PathParameters {
6913
+ slug: /**
6914
+ * example:
6915
+ * contact
6916
+ */
6917
+ Parameters.Slug;
6918
+ }
6919
+ export type RequestBody = Components.Schemas.Attribute;
6920
+ namespace Responses {
6921
+ export type $200 = /* a readonly computed ID for the attribute including schema slug and the attribute ID */ Components.Schemas.AttributeWithCompositeID;
6922
+ }
6923
+ }
6924
+ namespace CreateSchemaCapability {
6925
+ namespace Parameters {
6926
+ /**
6927
+ * example:
6928
+ * contact
6929
+ */
6930
+ export type Slug = string;
6931
+ }
6932
+ export interface PathParameters {
6933
+ slug: /**
6934
+ * example:
6935
+ * contact
6936
+ */
6937
+ Parameters.Slug;
6938
+ }
6939
+ export type RequestBody = /* Capabilities the Entity has. Turn features on/off for entities. */ Components.Schemas.EntityCapability;
6940
+ namespace Responses {
6941
+ export type $200 = /* a readonly computed ID for the entity capability including schema slug and the capability ID */ Components.Schemas.EntityCapabilityWithCompositeID;
6942
+ }
6943
+ }
6709
6944
  namespace CreateTaxonomy {
6710
6945
  /**
6711
6946
  * example:
@@ -9067,7 +9302,7 @@ export interface OperationMethods {
9067
9302
  /**
9068
9303
  * putSchemaAttribute - putSchemaAttribute
9069
9304
  *
9070
- * Adds or updates an attribute in the schema
9305
+ * Updates an attribute in the schema
9071
9306
  */
9072
9307
  'putSchemaAttribute'(
9073
9308
  parameters?: Parameters<Paths.PutSchemaAttribute.PathParameters> | null,
@@ -9084,6 +9319,16 @@ export interface OperationMethods {
9084
9319
  data?: any,
9085
9320
  config?: AxiosRequestConfig
9086
9321
  ): OperationResponse<Paths.DeleteSchemaAttribute.Responses.$200>
9322
+ /**
9323
+ * createSchemaAttribute - createSchemaAttribute
9324
+ *
9325
+ * Adds an attribute to the schema
9326
+ */
9327
+ 'createSchemaAttribute'(
9328
+ parameters?: Parameters<Paths.CreateSchemaAttribute.PathParameters> | null,
9329
+ data?: Paths.CreateSchemaAttribute.RequestBody,
9330
+ config?: AxiosRequestConfig
9331
+ ): OperationResponse<Paths.CreateSchemaAttribute.Responses.$200>
9087
9332
  /**
9088
9333
  * getSchemaCapability - getSchemaCapability
9089
9334
  *
@@ -9114,6 +9359,16 @@ export interface OperationMethods {
9114
9359
  data?: any,
9115
9360
  config?: AxiosRequestConfig
9116
9361
  ): OperationResponse<Paths.DeleteSchemaCapability.Responses.$200>
9362
+ /**
9363
+ * createSchemaCapability - createSchemaCapability
9364
+ *
9365
+ * Adds a capability to the schema
9366
+ */
9367
+ 'createSchemaCapability'(
9368
+ parameters?: Parameters<Paths.CreateSchemaCapability.PathParameters> | null,
9369
+ data?: Paths.CreateSchemaCapability.RequestBody,
9370
+ config?: AxiosRequestConfig
9371
+ ): OperationResponse<Paths.CreateSchemaCapability.Responses.$200>
9117
9372
  }
9118
9373
 
9119
9374
  export interface PathsDictionary {
@@ -9943,7 +10198,7 @@ export interface PathsDictionary {
9943
10198
  /**
9944
10199
  * putSchemaAttribute - putSchemaAttribute
9945
10200
  *
9946
- * Adds or updates an attribute in the schema
10201
+ * Updates an attribute in the schema
9947
10202
  */
9948
10203
  'put'(
9949
10204
  parameters?: Parameters<Paths.PutSchemaAttribute.PathParameters> | null,
@@ -9961,6 +10216,18 @@ export interface PathsDictionary {
9961
10216
  config?: AxiosRequestConfig
9962
10217
  ): OperationResponse<Paths.DeleteSchemaAttribute.Responses.$200>
9963
10218
  }
10219
+ ['/v1/entity/schemas/attribute/{slug}']: {
10220
+ /**
10221
+ * createSchemaAttribute - createSchemaAttribute
10222
+ *
10223
+ * Adds an attribute to the schema
10224
+ */
10225
+ 'post'(
10226
+ parameters?: Parameters<Paths.CreateSchemaAttribute.PathParameters> | null,
10227
+ data?: Paths.CreateSchemaAttribute.RequestBody,
10228
+ config?: AxiosRequestConfig
10229
+ ): OperationResponse<Paths.CreateSchemaAttribute.Responses.$200>
10230
+ }
9964
10231
  ['/v1/entity/schemas/capabilities/{composite_id}']: {
9965
10232
  /**
9966
10233
  * getSchemaCapability - getSchemaCapability
@@ -9993,6 +10260,18 @@ export interface PathsDictionary {
9993
10260
  config?: AxiosRequestConfig
9994
10261
  ): OperationResponse<Paths.DeleteSchemaCapability.Responses.$200>
9995
10262
  }
10263
+ ['/v1/entity/schemas/capability/{slug}']: {
10264
+ /**
10265
+ * createSchemaCapability - createSchemaCapability
10266
+ *
10267
+ * Adds a capability to the schema
10268
+ */
10269
+ 'post'(
10270
+ parameters?: Parameters<Paths.CreateSchemaCapability.PathParameters> | null,
10271
+ data?: Paths.CreateSchemaCapability.RequestBody,
10272
+ config?: AxiosRequestConfig
10273
+ ): OperationResponse<Paths.CreateSchemaCapability.Responses.$200>
10274
+ }
9996
10275
  }
9997
10276
 
9998
10277
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>