@epilot/entity-client 6.8.0 → 6.8.1

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
@@ -31,19 +31,19 @@ declare namespace Components {
31
31
  * example:
32
32
  * contact
33
33
  */
34
- Schemas.EntitySlug;
34
+ Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
35
35
  /**
36
36
  * URL-friendly identifier for the entity schema
37
37
  * example:
38
38
  * price
39
39
  */
40
- export type EntitySlugPathPriceParam = string;
40
+ export type EntitySlugPathPriceParam = string; // ^[a-zA-Z0-9_-]+$
41
41
  export type ExcludeSchemasQueryParam = /**
42
42
  * URL-friendly identifier for the entity schema
43
43
  * example:
44
44
  * contact
45
45
  */
46
- Schemas.EntitySlug[];
46
+ Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
47
47
  export type FillActivityQueryParam = boolean;
48
48
  export type FromPageQueryParam = number;
49
49
  export type HydrateEntitiesQueryParam = boolean;
@@ -54,7 +54,7 @@ declare namespace Components {
54
54
  * example:
55
55
  * contact
56
56
  */
57
- Schemas.EntitySlug[];
57
+ Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
58
58
  export type SavedViewIdPathParam = /* Generated uuid for a saved view */ Schemas.SavedViewId /* uuid */;
59
59
  export type TaxonomyClassificationSlugPathParam = string;
60
60
  export type TaxonomySlugPathParam = string;
@@ -70,7 +70,7 @@ declare namespace Components {
70
70
  * example:
71
71
  * price
72
72
  */
73
- Parameters.EntitySlugPathPriceParam;
73
+ Parameters.EntitySlugPathPriceParam /* ^[a-zA-Z0-9_-]+$ */;
74
74
  TaxonomySlugPathParam?: Parameters.TaxonomySlugPathParam;
75
75
  TaxonomyClassificationSlugPathParam?: Parameters.TaxonomyClassificationSlugPathParam;
76
76
  SavedViewIdPathParam?: Parameters.SavedViewIdPathParam;
@@ -615,7 +615,7 @@ declare namespace Components {
615
615
  */
616
616
  DefaultAddressFields;
617
617
  }
618
- 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 | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* 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 | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
618
+ 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 | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* 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 | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
619
619
  /**
620
620
  * a readonly computed ID for the attribute including schema slug and the attribute ID
621
621
  */
@@ -631,7 +631,7 @@ declare namespace Components {
631
631
  * contact
632
632
  */
633
633
  schema?: string;
634
- } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* 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 | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* 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 | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
634
+ } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* 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 | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* 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 | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
635
635
  /**
636
636
  * Automation entity
637
637
  */
@@ -1009,7 +1009,7 @@ declare namespace Components {
1009
1009
  * example:
1010
1010
  * contact
1011
1011
  */
1012
- EntitySlug;
1012
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
1013
1013
  /**
1014
1014
  * Title of entity
1015
1015
  */
@@ -2164,7 +2164,7 @@ declare namespace Components {
2164
2164
  * example:
2165
2165
  * contact
2166
2166
  */
2167
- EntitySlug;
2167
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
2168
2168
  /**
2169
2169
  * Title of entity
2170
2170
  */
@@ -2631,7 +2631,7 @@ declare namespace Components {
2631
2631
  * example:
2632
2632
  * contact
2633
2633
  */
2634
- EntitySlug;
2634
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
2635
2635
  /**
2636
2636
  * Title of entity
2637
2637
  */
@@ -2803,7 +2803,7 @@ declare namespace Components {
2803
2803
  * example:
2804
2804
  * contact
2805
2805
  */
2806
- EntitySlug;
2806
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
2807
2807
  };
2808
2808
  /**
2809
2809
  * example:
@@ -2860,7 +2860,7 @@ declare namespace Components {
2860
2860
  * example:
2861
2861
  * contact
2862
2862
  */
2863
- EntitySlug;
2863
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
2864
2864
  /**
2865
2865
  * Title of entity
2866
2866
  */
@@ -3022,7 +3022,7 @@ declare namespace Components {
3022
3022
  * example:
3023
3023
  * contact
3024
3024
  */
3025
- EntitySlug;
3025
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
3026
3026
  version?: number;
3027
3027
  blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
3028
3028
  /**
@@ -3402,7 +3402,7 @@ declare namespace Components {
3402
3402
  * example:
3403
3403
  * contact
3404
3404
  */
3405
- EntitySlug;
3405
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
3406
3406
  version?: number;
3407
3407
  blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
3408
3408
  /**
@@ -3930,7 +3930,7 @@ declare namespace Components {
3930
3930
  * example:
3931
3931
  * contact
3932
3932
  */
3933
- export type EntitySlug = string;
3933
+ export type EntitySlug = string; // ^[a-zA-Z0-9_-]+$
3934
3934
  export interface EntityTableFilterOption {
3935
3935
  /**
3936
3936
  * The type of filter option
@@ -4603,7 +4603,7 @@ declare namespace Components {
4603
4603
  * example:
4604
4604
  * contact
4605
4605
  */
4606
- EntitySlug;
4606
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
4607
4607
  /**
4608
4608
  * Title of entity
4609
4609
  */
@@ -6503,6 +6503,147 @@ declare namespace Components {
6503
6503
  has_primary?: boolean;
6504
6504
  type: "phone";
6505
6505
  }
6506
+ /**
6507
+ * Portal access configuration
6508
+ */
6509
+ export interface PortalAccessAttribute {
6510
+ /**
6511
+ * ID for the entity attribute
6512
+ * example:
6513
+ * d5839b94-ba20-4225-a78e-76951d352bd6
6514
+ */
6515
+ id?: string;
6516
+ name: string;
6517
+ label: string;
6518
+ placeholder?: string;
6519
+ /**
6520
+ * Do not render attribute in entity views
6521
+ */
6522
+ hidden?: boolean;
6523
+ /**
6524
+ * Render as a column in table views. When defined, overrides `hidden`
6525
+ */
6526
+ show_in_table?: boolean;
6527
+ /**
6528
+ * Allow sorting by this attribute in table views if `show_in_table` is true
6529
+ */
6530
+ sortable?: boolean;
6531
+ required?: boolean;
6532
+ readonly?: boolean;
6533
+ deprecated?: boolean;
6534
+ default_value?: any;
6535
+ /**
6536
+ * Which group the attribute should appear in. Accepts group ID or group name
6537
+ */
6538
+ group?: string;
6539
+ /**
6540
+ * Attribute sort order (ascending) in group
6541
+ * example:
6542
+ * 0
6543
+ */
6544
+ order?: number;
6545
+ /**
6546
+ * example:
6547
+ * full_width
6548
+ */
6549
+ layout?: string;
6550
+ /**
6551
+ * When set to true, will hide the label of the field.
6552
+ */
6553
+ hide_label?: boolean;
6554
+ /**
6555
+ * Code name of the icon to used to represent this attribute.
6556
+ * The value must be a valid @epilot/base-elements Icon name
6557
+ *
6558
+ */
6559
+ icon?: string;
6560
+ /**
6561
+ * Defines the conditional rendering expression for showing this field.
6562
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
6563
+ * Note: Empty or invalid expression have no effect on the field visibility.
6564
+ *
6565
+ */
6566
+ render_condition?: string;
6567
+ _purpose?: /**
6568
+ * example:
6569
+ * taxonomy-slug:classification-slug
6570
+ */
6571
+ ClassificationId[];
6572
+ /**
6573
+ * Manifest ID used to create/update the schema attribute
6574
+ */
6575
+ _manifest?: string /* uuid */[] | null;
6576
+ /**
6577
+ * A set of constraints applicable to the attribute.
6578
+ * These constraints should and will be enforced by the attribute renderer.
6579
+ *
6580
+ * example:
6581
+ * {
6582
+ * "disablePast": true
6583
+ * }
6584
+ */
6585
+ constraints?: {
6586
+ [key: string]: any;
6587
+ };
6588
+ /**
6589
+ * This attribute should only be active when the feature flag is enabled
6590
+ * example:
6591
+ * FF_MY_FEATURE_FLAG
6592
+ */
6593
+ feature_flag?: string;
6594
+ /**
6595
+ * This attribute should only be active when one of the provided settings have the correct value
6596
+ */
6597
+ settings_flag?: SettingFlag[];
6598
+ value_formatter?: string;
6599
+ preview_value_formatter?: string;
6600
+ /**
6601
+ * Setting to `true` disables editing the attribute on the entity builder UI
6602
+ */
6603
+ entity_builder_disable_edit?: boolean;
6604
+ /**
6605
+ * Setting to `true` prevents the attribute from being modified / deleted
6606
+ */
6607
+ protected?: boolean;
6608
+ /**
6609
+ * A set of configurations meant to document and assist the user in filling the attribute.
6610
+ */
6611
+ info_helpers?: {
6612
+ /**
6613
+ * The text to be displayed in the attribute hint helper.
6614
+ * When specified it overrides the `hint_text_key` configuration.
6615
+ *
6616
+ */
6617
+ hint_text?: string;
6618
+ /**
6619
+ * The key of the hint text to be displayed in the attribute hint helper.
6620
+ * The key should be a valid i18n key.
6621
+ *
6622
+ */
6623
+ hint_text_key?: string;
6624
+ /**
6625
+ * The name of the custom component to be used as the hint helper.
6626
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
6627
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
6628
+ *
6629
+ */
6630
+ hint_custom_component?: string;
6631
+ /**
6632
+ * The placement of the hint tooltip.
6633
+ * The value should be a valid `@mui/core` tooltip placement.
6634
+ *
6635
+ * example:
6636
+ * top
6637
+ */
6638
+ hint_tooltip_placement?: string;
6639
+ };
6640
+ /**
6641
+ * The attribute is a repeatable
6642
+ */
6643
+ repeatable?: boolean;
6644
+ has_primary?: boolean;
6645
+ type: "portal_access";
6646
+ }
6506
6647
  /**
6507
6648
  * Price component
6508
6649
  */
@@ -7039,7 +7180,7 @@ declare namespace Components {
7039
7180
  * example:
7040
7181
  * contact
7041
7182
  */
7042
- EntitySlug[];
7183
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
7043
7184
  /**
7044
7185
  * When enable_relation_tags is set to true the user will be able to set tags(labels) in each relation item.
7045
7186
  */
@@ -7107,7 +7248,7 @@ declare namespace Components {
7107
7248
  * example:
7108
7249
  * contact
7109
7250
  */
7110
- EntitySlug;
7251
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
7111
7252
  /**
7112
7253
  * Title of entity
7113
7254
  */
@@ -7297,7 +7438,7 @@ declare namespace Components {
7297
7438
  * example:
7298
7439
  * contact
7299
7440
  */
7300
- EntitySlug[];
7441
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
7301
7442
  /**
7302
7443
  * User-friendly identifier for the saved view
7303
7444
  * example:
@@ -7374,7 +7515,7 @@ declare namespace Components {
7374
7515
  * example:
7375
7516
  * contact
7376
7517
  */
7377
- EntitySlug[];
7518
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
7378
7519
  /**
7379
7520
  * User-friendly identifier for the saved view
7380
7521
  * example:
@@ -7444,7 +7585,7 @@ declare namespace Components {
7444
7585
  * example:
7445
7586
  * contact
7446
7587
  */
7447
- EntitySlug[];
7588
+ EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
7448
7589
  /**
7449
7590
  * User-friendly identifier for the saved view
7450
7591
  * example:
@@ -8870,7 +9011,7 @@ declare namespace Paths {
8870
9011
  * example:
8871
9012
  * contact
8872
9013
  */
8873
- Components.Schemas.EntitySlug;
9014
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
8874
9015
  }
8875
9016
  export interface PathParameters {
8876
9017
  slug: Parameters.Slug;
@@ -8946,7 +9087,7 @@ declare namespace Paths {
8946
9087
  * example:
8947
9088
  * contact
8948
9089
  */
8949
- Components.Schemas.EntitySlug;
9090
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
8950
9091
  }
8951
9092
  export interface QueryParameters {
8952
9093
  input?: Parameters.Input;
@@ -9146,7 +9287,7 @@ declare namespace Paths {
9146
9287
  * example:
9147
9288
  * contact
9148
9289
  */
9149
- Components.Schemas.EntitySlug;
9290
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9150
9291
  export type Validate = boolean;
9151
9292
  }
9152
9293
  export interface PathParameters {
@@ -9350,6 +9491,8 @@ declare namespace Paths {
9350
9491
  export type RequestBody = Components.Schemas.TaxonomyClassification;
9351
9492
  namespace Responses {
9352
9493
  export type $201 = Components.Schemas.TaxonomyClassification;
9494
+ export interface $409 {
9495
+ }
9353
9496
  export type $429 = /**
9354
9497
  * A generic error returned by the API
9355
9498
  * example:
@@ -9376,7 +9519,7 @@ declare namespace Paths {
9376
9519
  * example:
9377
9520
  * contact
9378
9521
  */
9379
- Components.Schemas.EntitySlug;
9522
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9380
9523
  }
9381
9524
  export interface PathParameters {
9382
9525
  slug: Parameters.Slug;
@@ -9417,7 +9560,7 @@ declare namespace Paths {
9417
9560
  * example:
9418
9561
  * contact
9419
9562
  */
9420
- Components.Schemas.EntitySlug;
9563
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9421
9564
  }
9422
9565
  export interface PathParameters {
9423
9566
  slug: Parameters.Slug;
@@ -9480,7 +9623,7 @@ declare namespace Paths {
9480
9623
  * example:
9481
9624
  * contact
9482
9625
  */
9483
- Components.Schemas.EntitySlug;
9626
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9484
9627
  }
9485
9628
  export interface PathParameters {
9486
9629
  slug: Parameters.Slug;
@@ -9729,7 +9872,7 @@ declare namespace Paths {
9729
9872
  * example:
9730
9873
  * contact
9731
9874
  */
9732
- Components.Schemas.EntitySlug;
9875
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9733
9876
  }
9734
9877
  export interface PathParameters {
9735
9878
  id: Parameters.Id;
@@ -9870,7 +10013,7 @@ declare namespace Paths {
9870
10013
  * example:
9871
10014
  * contact
9872
10015
  */
9873
- Components.Schemas.EntitySlug;
10016
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9874
10017
  export type StartDate = string; // date-time
9875
10018
  /**
9876
10019
  * example:
@@ -9953,7 +10096,7 @@ declare namespace Paths {
9953
10096
  * example:
9954
10097
  * contact
9955
10098
  */
9956
- Components.Schemas.EntitySlug;
10099
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
9957
10100
  }
9958
10101
  export interface PathParameters {
9959
10102
  id: Parameters.Id;
@@ -10030,7 +10173,7 @@ declare namespace Paths {
10030
10173
  * example:
10031
10174
  * contact
10032
10175
  */
10033
- Components.Schemas.EntitySlug;
10176
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10034
10177
  }
10035
10178
  export interface PathParameters {
10036
10179
  slug: Parameters.Slug;
@@ -10349,14 +10492,14 @@ declare namespace Paths {
10349
10492
  * example:
10350
10493
  * contact
10351
10494
  */
10352
- Components.Schemas.EntitySlug[];
10495
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
10353
10496
  export type Id = Components.Schemas.EntityId /* uuid */;
10354
10497
  export type Slug = /**
10355
10498
  * URL-friendly identifier for the entity schema
10356
10499
  * example:
10357
10500
  * contact
10358
10501
  */
10359
- Components.Schemas.EntitySlug;
10502
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10360
10503
  }
10361
10504
  export interface PathParameters {
10362
10505
  slug: Parameters.Slug;
@@ -10385,7 +10528,7 @@ declare namespace Paths {
10385
10528
  * example:
10386
10529
  * contact
10387
10530
  */
10388
- Components.Schemas.EntitySlug[];
10531
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
10389
10532
  export type From = number;
10390
10533
  export type Hydrate = boolean;
10391
10534
  export type Id = Components.Schemas.EntityId /* uuid */;
@@ -10395,14 +10538,14 @@ declare namespace Paths {
10395
10538
  * example:
10396
10539
  * contact
10397
10540
  */
10398
- Components.Schemas.EntitySlug[];
10541
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
10399
10542
  export type Size = number;
10400
10543
  export type Slug = /**
10401
10544
  * URL-friendly identifier for the entity schema
10402
10545
  * example:
10403
10546
  * contact
10404
10547
  */
10405
- Components.Schemas.EntitySlug;
10548
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10406
10549
  }
10407
10550
  export interface PathParameters {
10408
10551
  slug: Parameters.Slug;
@@ -10460,7 +10603,7 @@ declare namespace Paths {
10460
10603
  * example:
10461
10604
  * contact
10462
10605
  */
10463
- Components.Schemas.EntitySlug;
10606
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10464
10607
  }
10465
10608
  export interface PathParameters {
10466
10609
  slug: Parameters.Slug;
@@ -10494,7 +10637,7 @@ declare namespace Paths {
10494
10637
  * example:
10495
10638
  * contact
10496
10639
  */
10497
- Components.Schemas.EntitySlug[];
10640
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
10498
10641
  export type Fields = /**
10499
10642
  * List of entity fields to include or exclude in the response
10500
10643
  *
@@ -10522,7 +10665,7 @@ declare namespace Paths {
10522
10665
  * example:
10523
10666
  * contact
10524
10667
  */
10525
- Components.Schemas.EntitySlug[];
10668
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
10526
10669
  export type Mode = "direct" | "reverse" | "both";
10527
10670
  export type Size = number;
10528
10671
  export type Slug = /**
@@ -10530,7 +10673,7 @@ declare namespace Paths {
10530
10673
  * example:
10531
10674
  * contact
10532
10675
  */
10533
- Components.Schemas.EntitySlug;
10676
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10534
10677
  }
10535
10678
  export interface PathParameters {
10536
10679
  slug: Parameters.Slug;
@@ -10587,7 +10730,7 @@ declare namespace Paths {
10587
10730
  * example:
10588
10731
  * contact
10589
10732
  */
10590
- Components.Schemas.EntitySlug;
10733
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10591
10734
  }
10592
10735
  export interface PathParameters {
10593
10736
  slug: Parameters.Slug;
@@ -10671,7 +10814,7 @@ declare namespace Paths {
10671
10814
  * example:
10672
10815
  * contact
10673
10816
  */
10674
- Components.Schemas.EntitySlug;
10817
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10675
10818
  }
10676
10819
  export interface PathParameters {
10677
10820
  slug: Parameters.Slug;
@@ -10764,7 +10907,7 @@ declare namespace Paths {
10764
10907
  * example:
10765
10908
  * contact
10766
10909
  */
10767
- Components.Schemas.EntitySlug;
10910
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10768
10911
  export type VersionsFrom = number;
10769
10912
  export type VersionsSize = number;
10770
10913
  }
@@ -10951,7 +11094,7 @@ declare namespace Paths {
10951
11094
  * example:
10952
11095
  * contact
10953
11096
  */
10954
- Components.Schemas.EntitySlug;
11097
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
10955
11098
  }
10956
11099
  export interface PathParameters {
10957
11100
  slug: Parameters.Slug;
@@ -11011,7 +11154,7 @@ declare namespace Paths {
11011
11154
  * example:
11012
11155
  * contact
11013
11156
  */
11014
- Components.Schemas.EntitySlug;
11157
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11015
11158
  export type Sort = string;
11016
11159
  }
11017
11160
  export interface QueryParameters {
@@ -11069,7 +11212,7 @@ declare namespace Paths {
11069
11212
  * example:
11070
11213
  * contact
11071
11214
  */
11072
- Components.Schemas.EntitySlug;
11215
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11073
11216
  export type TaxonomySlug = string;
11074
11217
  }
11075
11218
  export interface PathParameters {
@@ -11103,7 +11246,7 @@ declare namespace Paths {
11103
11246
  * example:
11104
11247
  * contact
11105
11248
  */
11106
- Components.Schemas.EntitySlug;
11249
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11107
11250
  export type Validate = boolean;
11108
11251
  }
11109
11252
  export interface PathParameters {
@@ -11226,7 +11369,7 @@ declare namespace Paths {
11226
11369
  * example:
11227
11370
  * contact
11228
11371
  */
11229
- Components.Schemas.EntitySlug;
11372
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11230
11373
  }
11231
11374
  export interface PathParameters {
11232
11375
  slug: Parameters.Slug;
@@ -11336,7 +11479,7 @@ declare namespace Paths {
11336
11479
  * example:
11337
11480
  * contact
11338
11481
  */
11339
- Components.Schemas.EntitySlug;
11482
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11340
11483
  }
11341
11484
  export interface PathParameters {
11342
11485
  id: Parameters.Id;
@@ -11425,7 +11568,7 @@ declare namespace Paths {
11425
11568
  * example:
11426
11569
  * contact
11427
11570
  */
11428
- Components.Schemas.EntitySlug;
11571
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11429
11572
  }
11430
11573
  export interface PathParameters {
11431
11574
  slug: Parameters.Slug;
@@ -11473,7 +11616,7 @@ declare namespace Paths {
11473
11616
  * example:
11474
11617
  * contact
11475
11618
  */
11476
- Components.Schemas.EntitySlug;
11619
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11477
11620
  }
11478
11621
  export interface PathParameters {
11479
11622
  id: Parameters.Id;
@@ -11701,7 +11844,7 @@ declare namespace Paths {
11701
11844
  * example:
11702
11845
  * contact
11703
11846
  */
11704
- Components.Schemas.EntitySlug;
11847
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11705
11848
  export type Validate = boolean;
11706
11849
  }
11707
11850
  export interface PathParameters {
@@ -11818,7 +11961,7 @@ declare namespace Paths {
11818
11961
  * example:
11819
11962
  * contact
11820
11963
  */
11821
- Components.Schemas.EntitySlug;
11964
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11822
11965
  }
11823
11966
  export interface PathParameters {
11824
11967
  slug: Parameters.Slug;
@@ -11900,7 +12043,7 @@ declare namespace Paths {
11900
12043
  * example:
11901
12044
  * contact
11902
12045
  */
11903
- Components.Schemas.EntitySlug;
12046
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
11904
12047
  export type Strict = boolean;
11905
12048
  export type Validate = boolean;
11906
12049
  }
@@ -12078,7 +12221,7 @@ declare namespace Paths {
12078
12221
  * example:
12079
12222
  * price
12080
12223
  */
12081
- export type Slug = string;
12224
+ export type Slug = string; // ^[a-zA-Z0-9_-]+$
12082
12225
  }
12083
12226
  export interface PathParameters {
12084
12227
  slug: /**
@@ -12086,7 +12229,7 @@ declare namespace Paths {
12086
12229
  * example:
12087
12230
  * price
12088
12231
  */
12089
- Parameters.Slug;
12232
+ Parameters.Slug /* ^[a-zA-Z0-9_-]+$ */;
12090
12233
  }
12091
12234
  export type RequestBody = /**
12092
12235
  * example:
@@ -12145,7 +12288,7 @@ declare namespace Paths {
12145
12288
  * example:
12146
12289
  * price
12147
12290
  */
12148
- export type Slug = string;
12291
+ export type Slug = string; // ^[a-zA-Z0-9_-]+$
12149
12292
  }
12150
12293
  export interface PathParameters {
12151
12294
  slug: /**
@@ -12153,7 +12296,7 @@ declare namespace Paths {
12153
12296
  * example:
12154
12297
  * price
12155
12298
  */
12156
- Parameters.Slug;
12299
+ Parameters.Slug /* ^[a-zA-Z0-9_-]+$ */;
12157
12300
  }
12158
12301
  export type RequestBody = /**
12159
12302
  * example:
@@ -12212,7 +12355,7 @@ declare namespace Paths {
12212
12355
  * example:
12213
12356
  * contact
12214
12357
  */
12215
- Components.Schemas.EntitySlug[];
12358
+ Components.Schemas.EntitySlug /* ^[a-zA-Z0-9_-]+$ */[];
12216
12359
  }
12217
12360
  namespace Responses {
12218
12361
  export interface $201 {
@@ -14595,6 +14738,7 @@ export type PartnerStatusAttribute = Components.Schemas.PartnerStatusAttribute;
14595
14738
  export type PaymentAttribute = Components.Schemas.PaymentAttribute;
14596
14739
  export type PaymentMethodRelationAttribute = Components.Schemas.PaymentMethodRelationAttribute;
14597
14740
  export type PhoneAttribute = Components.Schemas.PhoneAttribute;
14741
+ export type PortalAccessAttribute = Components.Schemas.PortalAccessAttribute;
14598
14742
  export type PriceComponentAttribute = Components.Schemas.PriceComponentAttribute;
14599
14743
  export type PurposeAttribute = Components.Schemas.PurposeAttribute;
14600
14744
  export type RedirectEntityView = Components.Schemas.RedirectEntityView;
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.2",
3
3
  "info": {
4
4
  "title": "Entity API",
5
- "version": "1.0.0",
5
+ "version": "1.3.0",
6
6
  "description": "Flexible data layer for epilot Entities.\n\nUse this API configure and access your business objects like Contacts, Opportunities and Products.\n\n[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)\n"
7
7
  },
8
8
  "tags": [
@@ -3051,6 +3051,9 @@
3051
3051
  }
3052
3052
  }
3053
3053
  },
3054
+ "409": {
3055
+ "description": "Taxonomy classification already exists"
3056
+ },
3054
3057
  "429": {
3055
3058
  "$ref": "#/components/responses/TooManyRequestsError"
3056
3059
  }
@@ -4964,6 +4967,9 @@
4964
4967
  {
4965
4968
  "$ref": "#/components/schemas/PartnerOrganisationAttribute"
4966
4969
  },
4970
+ {
4971
+ "$ref": "#/components/schemas/PortalAccessAttribute"
4972
+ },
4967
4973
  {
4968
4974
  "$ref": "#/components/schemas/PhoneAttribute"
4969
4975
  },
@@ -5864,6 +5870,25 @@
5864
5870
  }
5865
5871
  ]
5866
5872
  },
5873
+ "PortalAccessAttribute": {
5874
+ "allOf": [
5875
+ {
5876
+ "$ref": "#/components/schemas/BaseAttribute"
5877
+ },
5878
+ {
5879
+ "type": "object",
5880
+ "description": "Portal access configuration",
5881
+ "properties": {
5882
+ "type": {
5883
+ "type": "string",
5884
+ "enum": [
5885
+ "portal_access"
5886
+ ]
5887
+ }
5888
+ }
5889
+ }
5890
+ ]
5891
+ },
5867
5892
  "DefaultAddressFields": {
5868
5893
  "type": "array",
5869
5894
  "nullable": true,
@@ -6481,6 +6506,7 @@
6481
6506
  "EntitySlug": {
6482
6507
  "description": "URL-friendly identifier for the entity schema",
6483
6508
  "type": "string",
6509
+ "pattern": "^[a-zA-Z0-9_-]+$",
6484
6510
  "example": "contact"
6485
6511
  },
6486
6512
  "EntityCapability": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "6.8.0",
3
+ "version": "6.8.1",
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",