@epilot/entity-client 2.6.2 → 2.6.3-alpha.0
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 +160 -2
- package/dist/openapi.json +73 -3
- package/package.json +3 -2
- package/package-lock.json +0 -18779
package/dist/openapi.d.ts
CHANGED
|
@@ -197,6 +197,10 @@ declare namespace Components {
|
|
|
197
197
|
feature_flag?: string;
|
|
198
198
|
value_formatter?: string;
|
|
199
199
|
preview_value_formatter?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
202
|
+
*/
|
|
203
|
+
entity_builder_disable_edit?: boolean;
|
|
200
204
|
type?: "relation_address";
|
|
201
205
|
has_primary?: boolean;
|
|
202
206
|
}
|
|
@@ -267,6 +271,10 @@ declare namespace Components {
|
|
|
267
271
|
feature_flag?: string;
|
|
268
272
|
value_formatter?: string;
|
|
269
273
|
preview_value_formatter?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
276
|
+
*/
|
|
277
|
+
entity_builder_disable_edit?: boolean;
|
|
270
278
|
}
|
|
271
279
|
/**
|
|
272
280
|
* example:
|
|
@@ -366,6 +374,10 @@ declare namespace Components {
|
|
|
366
374
|
feature_flag?: string;
|
|
367
375
|
value_formatter?: string;
|
|
368
376
|
preview_value_formatter?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
379
|
+
*/
|
|
380
|
+
entity_builder_disable_edit?: boolean;
|
|
369
381
|
type?: "boolean";
|
|
370
382
|
}
|
|
371
383
|
/**
|
|
@@ -428,6 +440,10 @@ declare namespace Components {
|
|
|
428
440
|
feature_flag?: string;
|
|
429
441
|
value_formatter?: string;
|
|
430
442
|
preview_value_formatter?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
445
|
+
*/
|
|
446
|
+
entity_builder_disable_edit?: boolean;
|
|
431
447
|
type: "consent";
|
|
432
448
|
topic: string;
|
|
433
449
|
identifiers?: string[];
|
|
@@ -492,6 +508,10 @@ declare namespace Components {
|
|
|
492
508
|
feature_flag?: string;
|
|
493
509
|
value_formatter?: string;
|
|
494
510
|
preview_value_formatter?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
513
|
+
*/
|
|
514
|
+
entity_builder_disable_edit?: boolean;
|
|
495
515
|
type?: "country";
|
|
496
516
|
}
|
|
497
517
|
/**
|
|
@@ -554,6 +574,10 @@ declare namespace Components {
|
|
|
554
574
|
feature_flag?: string;
|
|
555
575
|
value_formatter?: string;
|
|
556
576
|
preview_value_formatter?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
579
|
+
*/
|
|
580
|
+
entity_builder_disable_edit?: boolean;
|
|
557
581
|
type: "currency";
|
|
558
582
|
/**
|
|
559
583
|
* An array of currency configurations with a country code (ISO-4217)
|
|
@@ -569,6 +593,7 @@ declare namespace Components {
|
|
|
569
593
|
* Custom input
|
|
570
594
|
*/
|
|
571
595
|
export interface CustomAttribute {
|
|
596
|
+
[name: string]: any;
|
|
572
597
|
name: string;
|
|
573
598
|
label: string;
|
|
574
599
|
placeholder?: string;
|
|
@@ -625,7 +650,22 @@ declare namespace Components {
|
|
|
625
650
|
feature_flag?: string;
|
|
626
651
|
value_formatter?: string;
|
|
627
652
|
preview_value_formatter?: string;
|
|
653
|
+
/**
|
|
654
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
655
|
+
*/
|
|
656
|
+
entity_builder_disable_edit?: boolean;
|
|
628
657
|
type?: "custom";
|
|
658
|
+
/**
|
|
659
|
+
* When present, lets the handlebars compiler of the value_formatter and preview_value_formatter access the:
|
|
660
|
+
* - entire entity
|
|
661
|
+
* - attribute definition
|
|
662
|
+
* - locale
|
|
663
|
+
* - optional value (matching the attribute name on the entity object)
|
|
664
|
+
*
|
|
665
|
+
* The handlebars helpers can then use this rich context to compute the output value for the attribute.
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
668
|
+
computed?: boolean;
|
|
629
669
|
}
|
|
630
670
|
/**
|
|
631
671
|
* Date or Datetime picker
|
|
@@ -687,6 +727,10 @@ declare namespace Components {
|
|
|
687
727
|
feature_flag?: string;
|
|
688
728
|
value_formatter?: string;
|
|
689
729
|
preview_value_formatter?: string;
|
|
730
|
+
/**
|
|
731
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
732
|
+
*/
|
|
733
|
+
entity_builder_disable_edit?: boolean;
|
|
690
734
|
type?: "date" | "datetime";
|
|
691
735
|
}
|
|
692
736
|
export interface Entity {
|
|
@@ -921,6 +965,7 @@ declare namespace Components {
|
|
|
921
965
|
* contact
|
|
922
966
|
*/
|
|
923
967
|
EntitySlug;
|
|
968
|
+
version?: number;
|
|
924
969
|
blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
|
|
925
970
|
/**
|
|
926
971
|
* This schema should only be active when the feature flag is enabled
|
|
@@ -971,7 +1016,11 @@ declare namespace Components {
|
|
|
971
1016
|
* "expanded": true
|
|
972
1017
|
* },
|
|
973
1018
|
* "Contact Details": {
|
|
974
|
-
* "expanded": false
|
|
1019
|
+
* "expanded": false,
|
|
1020
|
+
* "info_tooltip_title": {
|
|
1021
|
+
* "key": "partner.partner_information_group_tooltip",
|
|
1022
|
+
* "default": "These informations are provided by the partner company and cannot be edited."
|
|
1023
|
+
* }
|
|
975
1024
|
* }
|
|
976
1025
|
* }
|
|
977
1026
|
*/
|
|
@@ -982,6 +1031,10 @@ declare namespace Components {
|
|
|
982
1031
|
* Render order of the group
|
|
983
1032
|
*/
|
|
984
1033
|
order?: number;
|
|
1034
|
+
info_tooltip_title?: {
|
|
1035
|
+
key?: string;
|
|
1036
|
+
default?: string;
|
|
1037
|
+
};
|
|
985
1038
|
};
|
|
986
1039
|
};
|
|
987
1040
|
/**
|
|
@@ -1068,6 +1121,7 @@ declare namespace Components {
|
|
|
1068
1121
|
* contact
|
|
1069
1122
|
*/
|
|
1070
1123
|
EntitySlug;
|
|
1124
|
+
version?: number;
|
|
1071
1125
|
blueprint?: /* Reference to blueprint */ BlueprintEntityId /* uuid */;
|
|
1072
1126
|
/**
|
|
1073
1127
|
* This schema should only be active when the feature flag is enabled
|
|
@@ -1118,7 +1172,11 @@ declare namespace Components {
|
|
|
1118
1172
|
* "expanded": true
|
|
1119
1173
|
* },
|
|
1120
1174
|
* "Contact Details": {
|
|
1121
|
-
* "expanded": false
|
|
1175
|
+
* "expanded": false,
|
|
1176
|
+
* "info_tooltip_title": {
|
|
1177
|
+
* "key": "partner.partner_information_group_tooltip",
|
|
1178
|
+
* "default": "These informations are provided by the partner company and cannot be edited."
|
|
1179
|
+
* }
|
|
1122
1180
|
* }
|
|
1123
1181
|
* }
|
|
1124
1182
|
*/
|
|
@@ -1129,6 +1187,10 @@ declare namespace Components {
|
|
|
1129
1187
|
* Render order of the group
|
|
1130
1188
|
*/
|
|
1131
1189
|
order?: number;
|
|
1190
|
+
info_tooltip_title?: {
|
|
1191
|
+
key?: string;
|
|
1192
|
+
default?: string;
|
|
1193
|
+
};
|
|
1132
1194
|
};
|
|
1133
1195
|
};
|
|
1134
1196
|
/**
|
|
@@ -1339,6 +1401,10 @@ declare namespace Components {
|
|
|
1339
1401
|
feature_flag?: string;
|
|
1340
1402
|
value_formatter?: string;
|
|
1341
1403
|
preview_value_formatter?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1406
|
+
*/
|
|
1407
|
+
entity_builder_disable_edit?: boolean;
|
|
1342
1408
|
type: "image" | "file";
|
|
1343
1409
|
multiple?: boolean;
|
|
1344
1410
|
/**
|
|
@@ -1567,6 +1633,10 @@ declare namespace Components {
|
|
|
1567
1633
|
feature_flag?: string;
|
|
1568
1634
|
value_formatter?: string;
|
|
1569
1635
|
preview_value_formatter?: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1638
|
+
*/
|
|
1639
|
+
entity_builder_disable_edit?: boolean;
|
|
1570
1640
|
type?: "internal";
|
|
1571
1641
|
}
|
|
1572
1642
|
/**
|
|
@@ -1629,6 +1699,10 @@ declare namespace Components {
|
|
|
1629
1699
|
feature_flag?: string;
|
|
1630
1700
|
value_formatter?: string;
|
|
1631
1701
|
preview_value_formatter?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1704
|
+
*/
|
|
1705
|
+
entity_builder_disable_edit?: boolean;
|
|
1632
1706
|
type?: "link";
|
|
1633
1707
|
}
|
|
1634
1708
|
/**
|
|
@@ -1691,6 +1765,10 @@ declare namespace Components {
|
|
|
1691
1765
|
feature_flag?: string;
|
|
1692
1766
|
value_formatter?: string;
|
|
1693
1767
|
preview_value_formatter?: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1770
|
+
*/
|
|
1771
|
+
entity_builder_disable_edit?: boolean;
|
|
1694
1772
|
type?: "number";
|
|
1695
1773
|
format?: string;
|
|
1696
1774
|
}
|
|
@@ -1754,6 +1832,10 @@ declare namespace Components {
|
|
|
1754
1832
|
feature_flag?: string;
|
|
1755
1833
|
value_formatter?: string;
|
|
1756
1834
|
preview_value_formatter?: string;
|
|
1835
|
+
/**
|
|
1836
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1837
|
+
*/
|
|
1838
|
+
entity_builder_disable_edit?: boolean;
|
|
1757
1839
|
type?: "ordered_list";
|
|
1758
1840
|
}
|
|
1759
1841
|
/**
|
|
@@ -1816,6 +1898,10 @@ declare namespace Components {
|
|
|
1816
1898
|
feature_flag?: string;
|
|
1817
1899
|
value_formatter?: string;
|
|
1818
1900
|
preview_value_formatter?: string;
|
|
1901
|
+
/**
|
|
1902
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1903
|
+
*/
|
|
1904
|
+
entity_builder_disable_edit?: boolean;
|
|
1819
1905
|
type?: "partner_status";
|
|
1820
1906
|
}
|
|
1821
1907
|
/**
|
|
@@ -1893,6 +1979,10 @@ declare namespace Components {
|
|
|
1893
1979
|
feature_flag?: string;
|
|
1894
1980
|
value_formatter?: string;
|
|
1895
1981
|
preview_value_formatter?: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1984
|
+
*/
|
|
1985
|
+
entity_builder_disable_edit?: boolean;
|
|
1896
1986
|
type?: "relation";
|
|
1897
1987
|
relation_type?: "belongs_to" | "has_many";
|
|
1898
1988
|
delete_mode?: "cascade";
|
|
@@ -2016,6 +2106,10 @@ declare namespace Components {
|
|
|
2016
2106
|
feature_flag?: string;
|
|
2017
2107
|
value_formatter?: string;
|
|
2018
2108
|
preview_value_formatter?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2111
|
+
*/
|
|
2112
|
+
entity_builder_disable_edit?: boolean;
|
|
2019
2113
|
repeatable?: boolean;
|
|
2020
2114
|
has_primary?: boolean;
|
|
2021
2115
|
relation_affinity_mode?: "weak" | "strong";
|
|
@@ -2109,6 +2203,10 @@ declare namespace Components {
|
|
|
2109
2203
|
feature_flag?: string;
|
|
2110
2204
|
value_formatter?: string;
|
|
2111
2205
|
preview_value_formatter?: string;
|
|
2206
|
+
/**
|
|
2207
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2208
|
+
*/
|
|
2209
|
+
entity_builder_disable_edit?: boolean;
|
|
2112
2210
|
type?: "select" | "radio";
|
|
2113
2211
|
options?: (string | {
|
|
2114
2212
|
value: string;
|
|
@@ -2188,6 +2286,10 @@ declare namespace Components {
|
|
|
2188
2286
|
feature_flag?: string;
|
|
2189
2287
|
value_formatter?: string;
|
|
2190
2288
|
preview_value_formatter?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2291
|
+
*/
|
|
2292
|
+
entity_builder_disable_edit?: boolean;
|
|
2191
2293
|
type?: "tags";
|
|
2192
2294
|
options?: string[];
|
|
2193
2295
|
suggestions?: string[];
|
|
@@ -2252,6 +2354,10 @@ declare namespace Components {
|
|
|
2252
2354
|
feature_flag?: string;
|
|
2253
2355
|
value_formatter?: string;
|
|
2254
2356
|
preview_value_formatter?: string;
|
|
2357
|
+
/**
|
|
2358
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2359
|
+
*/
|
|
2360
|
+
entity_builder_disable_edit?: boolean;
|
|
2255
2361
|
type?: "string";
|
|
2256
2362
|
multiline?: boolean;
|
|
2257
2363
|
}
|
|
@@ -2315,6 +2421,10 @@ declare namespace Components {
|
|
|
2315
2421
|
feature_flag?: string;
|
|
2316
2422
|
value_formatter?: string;
|
|
2317
2423
|
preview_value_formatter?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2426
|
+
*/
|
|
2427
|
+
entity_builder_disable_edit?: boolean;
|
|
2318
2428
|
type?: "relation_user";
|
|
2319
2429
|
multiple?: boolean;
|
|
2320
2430
|
}
|
|
@@ -2677,6 +2787,24 @@ declare namespace Paths {
|
|
|
2677
2787
|
export type $200 = /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem;
|
|
2678
2788
|
}
|
|
2679
2789
|
}
|
|
2790
|
+
namespace GetSchemaVersions {
|
|
2791
|
+
namespace Parameters {
|
|
2792
|
+
export type Slug = /**
|
|
2793
|
+
* URL-friendly identifier for the entity schema
|
|
2794
|
+
* example:
|
|
2795
|
+
* contact
|
|
2796
|
+
*/
|
|
2797
|
+
Components.Schemas.EntitySlug;
|
|
2798
|
+
}
|
|
2799
|
+
export interface PathParameters {
|
|
2800
|
+
slug: Parameters.Slug;
|
|
2801
|
+
}
|
|
2802
|
+
namespace Responses {
|
|
2803
|
+
export interface $200 {
|
|
2804
|
+
results?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2680
2808
|
namespace ListSchemas {
|
|
2681
2809
|
namespace Responses {
|
|
2682
2810
|
export interface $200 {
|
|
@@ -2851,6 +2979,16 @@ export interface OperationMethods {
|
|
|
2851
2979
|
data?: any,
|
|
2852
2980
|
config?: AxiosRequestConfig
|
|
2853
2981
|
): OperationResponse<Paths.ListSchemas.Responses.$200>
|
|
2982
|
+
/**
|
|
2983
|
+
* getSchemaVersions - getSchemaVersions
|
|
2984
|
+
*
|
|
2985
|
+
* Get all versions of this schema
|
|
2986
|
+
*/
|
|
2987
|
+
'getSchemaVersions'(
|
|
2988
|
+
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
|
|
2989
|
+
data?: any,
|
|
2990
|
+
config?: AxiosRequestConfig
|
|
2991
|
+
): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
|
|
2854
2992
|
/**
|
|
2855
2993
|
* getSchema - getSchema
|
|
2856
2994
|
*/
|
|
@@ -2861,6 +2999,8 @@ export interface OperationMethods {
|
|
|
2861
2999
|
): OperationResponse<Paths.GetSchema.Responses.$200>
|
|
2862
3000
|
/**
|
|
2863
3001
|
* putSchema - putSchema
|
|
3002
|
+
*
|
|
3003
|
+
* Create new version of the schema
|
|
2864
3004
|
*/
|
|
2865
3005
|
'putSchema'(
|
|
2866
3006
|
parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
|
|
@@ -2880,6 +3020,8 @@ export interface OperationMethods {
|
|
|
2880
3020
|
*
|
|
2881
3021
|
* Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
|
|
2882
3022
|
*
|
|
3023
|
+
* Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
|
|
3024
|
+
*
|
|
2883
3025
|
* ## Relations
|
|
2884
3026
|
*
|
|
2885
3027
|
* When `hydrate=true`, relation attributes are replaced in-place with nested entity values.
|
|
@@ -3194,6 +3336,18 @@ export interface PathsDictionary {
|
|
|
3194
3336
|
config?: AxiosRequestConfig
|
|
3195
3337
|
): OperationResponse<Paths.ListSchemas.Responses.$200>
|
|
3196
3338
|
}
|
|
3339
|
+
['/v1/entity/schemas/{slug}/versions']: {
|
|
3340
|
+
/**
|
|
3341
|
+
* getSchemaVersions - getSchemaVersions
|
|
3342
|
+
*
|
|
3343
|
+
* Get all versions of this schema
|
|
3344
|
+
*/
|
|
3345
|
+
'get'(
|
|
3346
|
+
parameters?: Parameters<Paths.GetSchemaVersions.PathParameters> | null,
|
|
3347
|
+
data?: any,
|
|
3348
|
+
config?: AxiosRequestConfig
|
|
3349
|
+
): OperationResponse<Paths.GetSchemaVersions.Responses.$200>
|
|
3350
|
+
}
|
|
3197
3351
|
['/v1/entity/schemas/{slug}']: {
|
|
3198
3352
|
/**
|
|
3199
3353
|
* getSchema - getSchema
|
|
@@ -3205,6 +3359,8 @@ export interface PathsDictionary {
|
|
|
3205
3359
|
): OperationResponse<Paths.GetSchema.Responses.$200>
|
|
3206
3360
|
/**
|
|
3207
3361
|
* putSchema - putSchema
|
|
3362
|
+
*
|
|
3363
|
+
* Create new version of the schema
|
|
3208
3364
|
*/
|
|
3209
3365
|
'put'(
|
|
3210
3366
|
parameters?: Parameters<Paths.PutSchema.PathParameters> | null,
|
|
@@ -3226,6 +3382,8 @@ export interface PathsDictionary {
|
|
|
3226
3382
|
*
|
|
3227
3383
|
* Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.
|
|
3228
3384
|
*
|
|
3385
|
+
* Passing comma-separated `x-epilot-org-id` is supported for cross-org entity search.
|
|
3386
|
+
*
|
|
3229
3387
|
* ## Relations
|
|
3230
3388
|
*
|
|
3231
3389
|
* When `hydrate=true`, relation attributes are replaced in-place with nested entity values.
|
package/dist/openapi.json
CHANGED
|
@@ -57,6 +57,46 @@
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
"/v1/entity/schemas/{slug}/versions": {
|
|
61
|
+
"get": {
|
|
62
|
+
"operationId": "getSchemaVersions",
|
|
63
|
+
"summary": "getSchemaVersions",
|
|
64
|
+
"description": "Get all versions of this schema",
|
|
65
|
+
"tags": [
|
|
66
|
+
"Schemas"
|
|
67
|
+
],
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"in": "path",
|
|
71
|
+
"name": "slug",
|
|
72
|
+
"required": true,
|
|
73
|
+
"schema": {
|
|
74
|
+
"$ref": "#/components/schemas/EntitySlug"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"responses": {
|
|
79
|
+
"200": {
|
|
80
|
+
"description": "Success",
|
|
81
|
+
"content": {
|
|
82
|
+
"application/json": {
|
|
83
|
+
"schema": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"results": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"$ref": "#/components/schemas/EntitySchemaItem"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
60
100
|
"/v1/entity/schemas/{slug}": {
|
|
61
101
|
"get": {
|
|
62
102
|
"operationId": "getSchema",
|
|
@@ -90,6 +130,7 @@
|
|
|
90
130
|
"put": {
|
|
91
131
|
"operationId": "putSchema",
|
|
92
132
|
"summary": "putSchema",
|
|
133
|
+
"description": "Create new version of the schema",
|
|
93
134
|
"tags": [
|
|
94
135
|
"Schemas"
|
|
95
136
|
],
|
|
@@ -152,7 +193,7 @@
|
|
|
152
193
|
"post": {
|
|
153
194
|
"operationId": "searchEntities",
|
|
154
195
|
"summary": "searchEntities",
|
|
155
|
-
"description": "Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.\n\n## Relations\n\nWhen `hydrate=true`, relation attributes are replaced in-place with nested entity values.\n\nExample:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": {\n \"$relation\": [\n { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n ]\n }\n}\n```\n\nBecomes:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": [\n {\n \"$relation\": { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n \"_id\": \"456\",\n \"name\": \"child 1\",\n \"_tags\": [\"child\"]\n },\n {\n \"$relation\": { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n \"_id\": \"789\",\n \"name\": \"child 2\",\n \"_tags\": [\"child\"]\n }\n ]\n}\n```\n",
|
|
196
|
+
"description": "Search for entities. Supports ordering and pagination. Lucene query syntax supported for complex querying.\n\nPassing comma-separated `x-epilot-org-id` is supported for cross-org entity search.\n\n## Relations\n\nWhen `hydrate=true`, relation attributes are replaced in-place with nested entity values.\n\nExample:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": {\n \"$relation\": [\n { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n ]\n }\n}\n```\n\nBecomes:\n```json\n{\n \"_id\": \"123\",\n \"name\": \"parent\",\n \"_tags\": [\"parent\"],\n \"contacts\": [\n {\n \"$relation\": { \"entity_id\": \"456\", \"_tags\": [\"primary\"] },\n \"_id\": \"456\",\n \"name\": \"child 1\",\n \"_tags\": [\"child\"]\n },\n {\n \"$relation\": { \"entity_id\": \"789\", \"_tags\": [\"secondary\"] },\n \"_id\": \"789\",\n \"name\": \"child 2\",\n \"_tags\": [\"child\"]\n }\n ]\n}\n```\n",
|
|
156
197
|
"tags": [
|
|
157
198
|
"Entities"
|
|
158
199
|
],
|
|
@@ -1141,6 +1182,10 @@
|
|
|
1141
1182
|
"slug": {
|
|
1142
1183
|
"$ref": "#/components/schemas/EntitySlug"
|
|
1143
1184
|
},
|
|
1185
|
+
"version": {
|
|
1186
|
+
"type": "integer",
|
|
1187
|
+
"minimum": 1
|
|
1188
|
+
},
|
|
1144
1189
|
"blueprint": {
|
|
1145
1190
|
"$ref": "#/components/schemas/BlueprintEntityId"
|
|
1146
1191
|
},
|
|
@@ -1221,6 +1266,17 @@
|
|
|
1221
1266
|
"description": "Render order of the group",
|
|
1222
1267
|
"type": "integer",
|
|
1223
1268
|
"default": 0
|
|
1269
|
+
},
|
|
1270
|
+
"info_tooltip_title": {
|
|
1271
|
+
"type": "object",
|
|
1272
|
+
"properties": {
|
|
1273
|
+
"key": {
|
|
1274
|
+
"type": "string"
|
|
1275
|
+
},
|
|
1276
|
+
"default": {
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1224
1280
|
}
|
|
1225
1281
|
}
|
|
1226
1282
|
},
|
|
@@ -1229,7 +1285,11 @@
|
|
|
1229
1285
|
"expanded": true
|
|
1230
1286
|
},
|
|
1231
1287
|
"Contact Details": {
|
|
1232
|
-
"expanded": false
|
|
1288
|
+
"expanded": false,
|
|
1289
|
+
"info_tooltip_title": {
|
|
1290
|
+
"key": "partner.partner_information_group_tooltip",
|
|
1291
|
+
"default": "These informations are provided by the partner company and cannot be edited."
|
|
1292
|
+
}
|
|
1233
1293
|
}
|
|
1234
1294
|
}
|
|
1235
1295
|
},
|
|
@@ -1482,6 +1542,11 @@
|
|
|
1482
1542
|
},
|
|
1483
1543
|
"preview_value_formatter": {
|
|
1484
1544
|
"type": "string"
|
|
1545
|
+
},
|
|
1546
|
+
"entity_builder_disable_edit": {
|
|
1547
|
+
"description": "Setting to `true` disables editing the attribute on the entity builder UI",
|
|
1548
|
+
"type": "boolean",
|
|
1549
|
+
"default": false
|
|
1485
1550
|
}
|
|
1486
1551
|
},
|
|
1487
1552
|
"required": [
|
|
@@ -2060,8 +2125,13 @@
|
|
|
2060
2125
|
"enum": [
|
|
2061
2126
|
"custom"
|
|
2062
2127
|
]
|
|
2128
|
+
},
|
|
2129
|
+
"computed": {
|
|
2130
|
+
"description": "When present, lets the handlebars compiler of the value_formatter and preview_value_formatter access the:\n - entire entity\n - attribute definition\n - locale\n - optional value (matching the attribute name on the entity object)\n\nThe handlebars helpers can then use this rich context to compute the output value for the attribute.\n",
|
|
2131
|
+
"type": "boolean"
|
|
2063
2132
|
}
|
|
2064
|
-
}
|
|
2133
|
+
},
|
|
2134
|
+
"additionalProperties": true
|
|
2065
2135
|
}
|
|
2066
2136
|
]
|
|
2067
2137
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/entity-client",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3-alpha.0",
|
|
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",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ../lambda/ApiHandlerFunction/openapi.yml >> src/openapi.d.ts",
|
|
13
13
|
"build": "npm run openapi && npm run typegen && npm run typescript && npm run bundle-definition",
|
|
14
14
|
"eslint": "../node_modules/.bin/eslint -c ../.eslintrc.yml",
|
|
15
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"release-alpha": "npm version prerelease --preid alpha"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"*.js",
|