@epilot/entity-client 3.1.0 → 3.1.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/README.md +15 -33
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +364 -24
- package/dist/openapi.json +165 -2
- package/package.json +24 -10
package/dist/openapi.d.ts
CHANGED
|
@@ -217,7 +217,77 @@ declare namespace Components {
|
|
|
217
217
|
download_url: string;
|
|
218
218
|
alt_text?: string;
|
|
219
219
|
}
|
|
220
|
-
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 | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* 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;
|
|
220
|
+
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 | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Currency input */ CurrencyAttribute | /* Repeatable (add N number of fields) */ RepeatableAttribute | /* Tags */ TagsAttribute | /* 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 | /* An attribute that holds a set of price components, used for dynamic pricing */ PriceComponentsAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute;
|
|
221
|
+
/**
|
|
222
|
+
* Automation entity
|
|
223
|
+
*/
|
|
224
|
+
export interface AutomationAttribute {
|
|
225
|
+
name: string;
|
|
226
|
+
label: string;
|
|
227
|
+
placeholder?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Do not render attribute in entity views
|
|
230
|
+
*/
|
|
231
|
+
hidden?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Render as a column in table views. When defined, overrides `hidden`
|
|
234
|
+
*/
|
|
235
|
+
show_in_table?: boolean;
|
|
236
|
+
required?: boolean;
|
|
237
|
+
readonly?: boolean;
|
|
238
|
+
deprecated?: boolean;
|
|
239
|
+
default_value?: string | {
|
|
240
|
+
[name: string]: any;
|
|
241
|
+
} | number | number | boolean | any[];
|
|
242
|
+
group?: string;
|
|
243
|
+
layout?: string;
|
|
244
|
+
/**
|
|
245
|
+
* When set to true, will hide the label of the field.
|
|
246
|
+
*/
|
|
247
|
+
hide_label?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Code name of the icon to used to represent this attribute.
|
|
250
|
+
* The value must be a valid @epilot/base-elements Icon name
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
icon?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Defines the conditional rendering expression for showing this field.
|
|
256
|
+
* When a valid expression is parsed, their evaluation defines the visibility of this attribute.
|
|
257
|
+
* Note: Empty or invalid expression have no effect on the field visibility.
|
|
258
|
+
*
|
|
259
|
+
*/
|
|
260
|
+
render_condition?: string;
|
|
261
|
+
/**
|
|
262
|
+
* A set of constraints applicable to the attribute.
|
|
263
|
+
* These constraints should and will be enforced by the attribute renderer.
|
|
264
|
+
*
|
|
265
|
+
* example:
|
|
266
|
+
* {
|
|
267
|
+
* "disablePast": true
|
|
268
|
+
* }
|
|
269
|
+
*/
|
|
270
|
+
constraints?: {
|
|
271
|
+
[key: string]: any;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* This attribute should only be active when the feature flag is enabled
|
|
275
|
+
* example:
|
|
276
|
+
* FF_MY_FEATURE_FLAG
|
|
277
|
+
*/
|
|
278
|
+
feature_flag?: string;
|
|
279
|
+
value_formatter?: string;
|
|
280
|
+
preview_value_formatter?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
283
|
+
*/
|
|
284
|
+
entity_builder_disable_edit?: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* Setting to `true` prevents the attribute from being modified / deleted
|
|
287
|
+
*/
|
|
288
|
+
protected?: boolean;
|
|
289
|
+
type?: "automation";
|
|
290
|
+
}
|
|
221
291
|
export interface BaseAttribute {
|
|
222
292
|
name: string;
|
|
223
293
|
label: string;
|
|
@@ -673,6 +743,7 @@ declare namespace Components {
|
|
|
673
743
|
*/
|
|
674
744
|
protected?: boolean;
|
|
675
745
|
type: "currency";
|
|
746
|
+
currency_selector_only?: boolean;
|
|
676
747
|
/**
|
|
677
748
|
* An array of currency configurations with a country code (ISO-4217)
|
|
678
749
|
*/
|
|
@@ -781,6 +852,11 @@ declare namespace Components {
|
|
|
781
852
|
* EntityDetailsV2:Tab
|
|
782
853
|
*/
|
|
783
854
|
hook: string;
|
|
855
|
+
/**
|
|
856
|
+
* example:
|
|
857
|
+
* composite_price = "false"
|
|
858
|
+
*/
|
|
859
|
+
render_condition?: string;
|
|
784
860
|
/**
|
|
785
861
|
* render order (ascending)
|
|
786
862
|
* example:
|
|
@@ -914,8 +990,8 @@ declare namespace Components {
|
|
|
914
990
|
* "example",
|
|
915
991
|
* "mock"
|
|
916
992
|
* ],
|
|
917
|
-
* "_created_at":
|
|
918
|
-
* "_updated_at":
|
|
993
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
994
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
919
995
|
* }
|
|
920
996
|
*/
|
|
921
997
|
export interface EntityItem {
|
|
@@ -974,6 +1050,11 @@ declare namespace Components {
|
|
|
974
1050
|
payload?: {
|
|
975
1051
|
[name: string]: any;
|
|
976
1052
|
};
|
|
1053
|
+
diff?: {
|
|
1054
|
+
added?: Entity;
|
|
1055
|
+
updated?: Entity;
|
|
1056
|
+
deleted?: Entity;
|
|
1057
|
+
};
|
|
977
1058
|
}
|
|
978
1059
|
/**
|
|
979
1060
|
* example:
|
|
@@ -1051,6 +1132,14 @@ declare namespace Components {
|
|
|
1051
1132
|
list_item?: {
|
|
1052
1133
|
summary_attributes?: string[];
|
|
1053
1134
|
};
|
|
1135
|
+
sharing?: {
|
|
1136
|
+
/**
|
|
1137
|
+
* Show the sharing button in entity detail view
|
|
1138
|
+
* example:
|
|
1139
|
+
* true
|
|
1140
|
+
*/
|
|
1141
|
+
show_sharing_button?: boolean;
|
|
1142
|
+
};
|
|
1054
1143
|
};
|
|
1055
1144
|
capabilities?: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
1056
1145
|
/**
|
|
@@ -1073,10 +1162,21 @@ declare namespace Components {
|
|
|
1073
1162
|
label: string;
|
|
1074
1163
|
id: string;
|
|
1075
1164
|
expanded?: boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* example:
|
|
1167
|
+
* composite_price = "false"
|
|
1168
|
+
*/
|
|
1169
|
+
render_condition?: string;
|
|
1076
1170
|
/**
|
|
1077
1171
|
* Render order of the group
|
|
1078
1172
|
*/
|
|
1079
1173
|
order?: number;
|
|
1174
|
+
/**
|
|
1175
|
+
* This schema should only be active when the feature flag is enabled
|
|
1176
|
+
* example:
|
|
1177
|
+
* FF_MY_FEATURE_FLAG
|
|
1178
|
+
*/
|
|
1179
|
+
feature_flag?: string;
|
|
1080
1180
|
info_tooltip_title?: {
|
|
1081
1181
|
key?: string;
|
|
1082
1182
|
default?: string;
|
|
@@ -1162,6 +1262,11 @@ declare namespace Components {
|
|
|
1162
1262
|
id?: /* Generated uuid for schema */ SchemaId /* uuid */;
|
|
1163
1263
|
created_at?: string;
|
|
1164
1264
|
updated_at?: string;
|
|
1265
|
+
comment?: string;
|
|
1266
|
+
source?: {
|
|
1267
|
+
id?: string;
|
|
1268
|
+
type?: string;
|
|
1269
|
+
};
|
|
1165
1270
|
slug: /**
|
|
1166
1271
|
* URL-friendly identifier for the entity schema
|
|
1167
1272
|
* example:
|
|
@@ -1219,6 +1324,14 @@ declare namespace Components {
|
|
|
1219
1324
|
list_item?: {
|
|
1220
1325
|
summary_attributes?: string[];
|
|
1221
1326
|
};
|
|
1327
|
+
sharing?: {
|
|
1328
|
+
/**
|
|
1329
|
+
* Show the sharing button in entity detail view
|
|
1330
|
+
* example:
|
|
1331
|
+
* true
|
|
1332
|
+
*/
|
|
1333
|
+
show_sharing_button?: boolean;
|
|
1334
|
+
};
|
|
1222
1335
|
};
|
|
1223
1336
|
capabilities?: /* Capabilities the Entity has. Turn features on/off for entities. */ EntityCapability[];
|
|
1224
1337
|
/**
|
|
@@ -1241,10 +1354,21 @@ declare namespace Components {
|
|
|
1241
1354
|
label: string;
|
|
1242
1355
|
id: string;
|
|
1243
1356
|
expanded?: boolean;
|
|
1357
|
+
/**
|
|
1358
|
+
* example:
|
|
1359
|
+
* composite_price = "false"
|
|
1360
|
+
*/
|
|
1361
|
+
render_condition?: string;
|
|
1244
1362
|
/**
|
|
1245
1363
|
* Render order of the group
|
|
1246
1364
|
*/
|
|
1247
1365
|
order?: number;
|
|
1366
|
+
/**
|
|
1367
|
+
* This schema should only be active when the feature flag is enabled
|
|
1368
|
+
* example:
|
|
1369
|
+
* FF_MY_FEATURE_FLAG
|
|
1370
|
+
*/
|
|
1371
|
+
feature_flag?: string;
|
|
1248
1372
|
info_tooltip_title?: {
|
|
1249
1373
|
key?: string;
|
|
1250
1374
|
default?: string;
|
|
@@ -1378,8 +1502,8 @@ declare namespace Components {
|
|
|
1378
1502
|
* "example",
|
|
1379
1503
|
* "mock"
|
|
1380
1504
|
* ],
|
|
1381
|
-
* "_created_at":
|
|
1382
|
-
* "_updated_at":
|
|
1505
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
1506
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
1383
1507
|
* }
|
|
1384
1508
|
*/
|
|
1385
1509
|
EntityItem[];
|
|
@@ -1494,8 +1618,8 @@ declare namespace Components {
|
|
|
1494
1618
|
* "example",
|
|
1495
1619
|
* "mock"
|
|
1496
1620
|
* ],
|
|
1497
|
-
* "_created_at":
|
|
1498
|
-
* "_updated_at":
|
|
1621
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
1622
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
1499
1623
|
* }
|
|
1500
1624
|
*/
|
|
1501
1625
|
RelationEntity)[];
|
|
@@ -1569,8 +1693,8 @@ declare namespace Components {
|
|
|
1569
1693
|
* "example",
|
|
1570
1694
|
* "mock"
|
|
1571
1695
|
* ],
|
|
1572
|
-
* "_created_at":
|
|
1573
|
-
* "_updated_at":
|
|
1696
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
1697
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z",
|
|
1574
1698
|
* "status": "active",
|
|
1575
1699
|
* "customer_number": "abc123",
|
|
1576
1700
|
* "email": [
|
|
@@ -1714,6 +1838,146 @@ declare namespace Components {
|
|
|
1714
1838
|
protected?: boolean;
|
|
1715
1839
|
type?: "internal";
|
|
1716
1840
|
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Epilot internal user info
|
|
1843
|
+
*/
|
|
1844
|
+
export interface InternalUserAttribute {
|
|
1845
|
+
name: string;
|
|
1846
|
+
label: string;
|
|
1847
|
+
placeholder?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Do not render attribute in entity views
|
|
1850
|
+
*/
|
|
1851
|
+
hidden?: boolean;
|
|
1852
|
+
/**
|
|
1853
|
+
* Render as a column in table views. When defined, overrides `hidden`
|
|
1854
|
+
*/
|
|
1855
|
+
show_in_table?: boolean;
|
|
1856
|
+
required?: boolean;
|
|
1857
|
+
readonly?: boolean;
|
|
1858
|
+
deprecated?: boolean;
|
|
1859
|
+
default_value?: string | {
|
|
1860
|
+
[name: string]: any;
|
|
1861
|
+
} | number | number | boolean | any[];
|
|
1862
|
+
group?: string;
|
|
1863
|
+
layout?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* When set to true, will hide the label of the field.
|
|
1866
|
+
*/
|
|
1867
|
+
hide_label?: boolean;
|
|
1868
|
+
/**
|
|
1869
|
+
* Code name of the icon to used to represent this attribute.
|
|
1870
|
+
* The value must be a valid @epilot/base-elements Icon name
|
|
1871
|
+
*
|
|
1872
|
+
*/
|
|
1873
|
+
icon?: string;
|
|
1874
|
+
/**
|
|
1875
|
+
* Defines the conditional rendering expression for showing this field.
|
|
1876
|
+
* When a valid expression is parsed, their evaluation defines the visibility of this attribute.
|
|
1877
|
+
* Note: Empty or invalid expression have no effect on the field visibility.
|
|
1878
|
+
*
|
|
1879
|
+
*/
|
|
1880
|
+
render_condition?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* A set of constraints applicable to the attribute.
|
|
1883
|
+
* These constraints should and will be enforced by the attribute renderer.
|
|
1884
|
+
*
|
|
1885
|
+
* example:
|
|
1886
|
+
* {
|
|
1887
|
+
* "disablePast": true
|
|
1888
|
+
* }
|
|
1889
|
+
*/
|
|
1890
|
+
constraints?: {
|
|
1891
|
+
[key: string]: any;
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* This attribute should only be active when the feature flag is enabled
|
|
1895
|
+
* example:
|
|
1896
|
+
* FF_MY_FEATURE_FLAG
|
|
1897
|
+
*/
|
|
1898
|
+
feature_flag?: string;
|
|
1899
|
+
value_formatter?: string;
|
|
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;
|
|
1905
|
+
/**
|
|
1906
|
+
* Setting to `true` prevents the attribute from being modified / deleted
|
|
1907
|
+
*/
|
|
1908
|
+
protected?: boolean;
|
|
1909
|
+
type?: "internal_user";
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Email address for send invitation
|
|
1913
|
+
*/
|
|
1914
|
+
export interface InvitationEmailAttribute {
|
|
1915
|
+
name: string;
|
|
1916
|
+
label: string;
|
|
1917
|
+
placeholder?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* Do not render attribute in entity views
|
|
1920
|
+
*/
|
|
1921
|
+
hidden?: boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* Render as a column in table views. When defined, overrides `hidden`
|
|
1924
|
+
*/
|
|
1925
|
+
show_in_table?: boolean;
|
|
1926
|
+
required?: boolean;
|
|
1927
|
+
readonly?: boolean;
|
|
1928
|
+
deprecated?: boolean;
|
|
1929
|
+
default_value?: string | {
|
|
1930
|
+
[name: string]: any;
|
|
1931
|
+
} | number | number | boolean | any[];
|
|
1932
|
+
group?: string;
|
|
1933
|
+
layout?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
* When set to true, will hide the label of the field.
|
|
1936
|
+
*/
|
|
1937
|
+
hide_label?: boolean;
|
|
1938
|
+
/**
|
|
1939
|
+
* Code name of the icon to used to represent this attribute.
|
|
1940
|
+
* The value must be a valid @epilot/base-elements Icon name
|
|
1941
|
+
*
|
|
1942
|
+
*/
|
|
1943
|
+
icon?: string;
|
|
1944
|
+
/**
|
|
1945
|
+
* Defines the conditional rendering expression for showing this field.
|
|
1946
|
+
* When a valid expression is parsed, their evaluation defines the visibility of this attribute.
|
|
1947
|
+
* Note: Empty or invalid expression have no effect on the field visibility.
|
|
1948
|
+
*
|
|
1949
|
+
*/
|
|
1950
|
+
render_condition?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* A set of constraints applicable to the attribute.
|
|
1953
|
+
* These constraints should and will be enforced by the attribute renderer.
|
|
1954
|
+
*
|
|
1955
|
+
* example:
|
|
1956
|
+
* {
|
|
1957
|
+
* "disablePast": true
|
|
1958
|
+
* }
|
|
1959
|
+
*/
|
|
1960
|
+
constraints?: {
|
|
1961
|
+
[key: string]: any;
|
|
1962
|
+
};
|
|
1963
|
+
/**
|
|
1964
|
+
* This attribute should only be active when the feature flag is enabled
|
|
1965
|
+
* example:
|
|
1966
|
+
* FF_MY_FEATURE_FLAG
|
|
1967
|
+
*/
|
|
1968
|
+
feature_flag?: string;
|
|
1969
|
+
value_formatter?: string;
|
|
1970
|
+
preview_value_formatter?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
1973
|
+
*/
|
|
1974
|
+
entity_builder_disable_edit?: boolean;
|
|
1975
|
+
/**
|
|
1976
|
+
* Setting to `true` prevents the attribute from being modified / deleted
|
|
1977
|
+
*/
|
|
1978
|
+
protected?: boolean;
|
|
1979
|
+
type?: "invitation_email";
|
|
1980
|
+
}
|
|
1717
1981
|
/**
|
|
1718
1982
|
* Link with title and href
|
|
1719
1983
|
*/
|
|
@@ -1995,6 +2259,76 @@ declare namespace Components {
|
|
|
1995
2259
|
protected?: boolean;
|
|
1996
2260
|
type?: "partner_status";
|
|
1997
2261
|
}
|
|
2262
|
+
/**
|
|
2263
|
+
* An attribute that holds a set of price components, used for dynamic pricing
|
|
2264
|
+
*/
|
|
2265
|
+
export interface PriceComponentsAttribute {
|
|
2266
|
+
name: string;
|
|
2267
|
+
label: string;
|
|
2268
|
+
placeholder?: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* Do not render attribute in entity views
|
|
2271
|
+
*/
|
|
2272
|
+
hidden?: boolean;
|
|
2273
|
+
/**
|
|
2274
|
+
* Render as a column in table views. When defined, overrides `hidden`
|
|
2275
|
+
*/
|
|
2276
|
+
show_in_table?: boolean;
|
|
2277
|
+
required?: boolean;
|
|
2278
|
+
readonly?: boolean;
|
|
2279
|
+
deprecated?: boolean;
|
|
2280
|
+
default_value?: string | {
|
|
2281
|
+
[name: string]: any;
|
|
2282
|
+
} | number | number | boolean | any[];
|
|
2283
|
+
group?: string;
|
|
2284
|
+
layout?: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* When set to true, will hide the label of the field.
|
|
2287
|
+
*/
|
|
2288
|
+
hide_label?: boolean;
|
|
2289
|
+
/**
|
|
2290
|
+
* Code name of the icon to used to represent this attribute.
|
|
2291
|
+
* The value must be a valid @epilot/base-elements Icon name
|
|
2292
|
+
*
|
|
2293
|
+
*/
|
|
2294
|
+
icon?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
* Defines the conditional rendering expression for showing this field.
|
|
2297
|
+
* When a valid expression is parsed, their evaluation defines the visibility of this attribute.
|
|
2298
|
+
* Note: Empty or invalid expression have no effect on the field visibility.
|
|
2299
|
+
*
|
|
2300
|
+
*/
|
|
2301
|
+
render_condition?: string;
|
|
2302
|
+
/**
|
|
2303
|
+
* A set of constraints applicable to the attribute.
|
|
2304
|
+
* These constraints should and will be enforced by the attribute renderer.
|
|
2305
|
+
*
|
|
2306
|
+
* example:
|
|
2307
|
+
* {
|
|
2308
|
+
* "disablePast": true
|
|
2309
|
+
* }
|
|
2310
|
+
*/
|
|
2311
|
+
constraints?: {
|
|
2312
|
+
[key: string]: any;
|
|
2313
|
+
};
|
|
2314
|
+
/**
|
|
2315
|
+
* This attribute should only be active when the feature flag is enabled
|
|
2316
|
+
* example:
|
|
2317
|
+
* FF_MY_FEATURE_FLAG
|
|
2318
|
+
*/
|
|
2319
|
+
feature_flag?: string;
|
|
2320
|
+
value_formatter?: string;
|
|
2321
|
+
preview_value_formatter?: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* Setting to `true` disables editing the attribute on the entity builder UI
|
|
2324
|
+
*/
|
|
2325
|
+
entity_builder_disable_edit?: boolean;
|
|
2326
|
+
/**
|
|
2327
|
+
* Setting to `true` prevents the attribute from being modified / deleted
|
|
2328
|
+
*/
|
|
2329
|
+
protected?: boolean;
|
|
2330
|
+
type?: "price_components";
|
|
2331
|
+
}
|
|
1998
2332
|
/**
|
|
1999
2333
|
* example:
|
|
2000
2334
|
* {
|
|
@@ -2111,8 +2445,8 @@ declare namespace Components {
|
|
|
2111
2445
|
* "example",
|
|
2112
2446
|
* "mock"
|
|
2113
2447
|
* ],
|
|
2114
|
-
* "_created_at":
|
|
2115
|
-
* "_updated_at":
|
|
2448
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
2449
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
2116
2450
|
* }
|
|
2117
2451
|
*/
|
|
2118
2452
|
export interface RelationEntity {
|
|
@@ -2212,7 +2546,7 @@ declare namespace Components {
|
|
|
2212
2546
|
repeatable?: boolean;
|
|
2213
2547
|
has_primary?: boolean;
|
|
2214
2548
|
relation_affinity_mode?: "weak" | "strong";
|
|
2215
|
-
type?: "string" | "phone" | "email" | "address" | "relation" | "payment";
|
|
2549
|
+
type?: "string" | "phone" | "email" | "address" | "relation" | "payment" | "price_component";
|
|
2216
2550
|
/**
|
|
2217
2551
|
* when enable_relation_picker is set to true the user will be able to pick existing relations as values. Otherwise, the user will need to create new relation to link.
|
|
2218
2552
|
*/
|
|
@@ -2315,6 +2649,10 @@ declare namespace Components {
|
|
|
2315
2649
|
value: string;
|
|
2316
2650
|
title?: string;
|
|
2317
2651
|
})[];
|
|
2652
|
+
/**
|
|
2653
|
+
* Allow arbitrary input values in addition to provided options
|
|
2654
|
+
*/
|
|
2655
|
+
allow_any?: boolean;
|
|
2318
2656
|
}
|
|
2319
2657
|
/**
|
|
2320
2658
|
* Summary Fields are displayed inside list view as a resume of the relation entity.
|
|
@@ -2675,8 +3013,8 @@ declare namespace Paths {
|
|
|
2675
3013
|
* "example",
|
|
2676
3014
|
* "mock"
|
|
2677
3015
|
* ],
|
|
2678
|
-
* "_created_at":
|
|
2679
|
-
* "_updated_at":
|
|
3016
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3017
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
2680
3018
|
* }
|
|
2681
3019
|
*/
|
|
2682
3020
|
Components.Schemas.EntityItem;
|
|
@@ -2821,8 +3159,8 @@ declare namespace Paths {
|
|
|
2821
3159
|
* "example",
|
|
2822
3160
|
* "mock"
|
|
2823
3161
|
* ],
|
|
2824
|
-
* "_created_at":
|
|
2825
|
-
* "_updated_at":
|
|
3162
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3163
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
2826
3164
|
* }
|
|
2827
3165
|
*/
|
|
2828
3166
|
Components.Schemas.EntityItem;
|
|
@@ -2836,8 +3174,8 @@ declare namespace Paths {
|
|
|
2836
3174
|
* "example",
|
|
2837
3175
|
* "mock"
|
|
2838
3176
|
* ],
|
|
2839
|
-
* "_created_at":
|
|
2840
|
-
* "_updated_at":
|
|
3177
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3178
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
2841
3179
|
* }
|
|
2842
3180
|
*/
|
|
2843
3181
|
Components.Schemas.EntityItem[];
|
|
@@ -3011,8 +3349,8 @@ declare namespace Paths {
|
|
|
3011
3349
|
* "example",
|
|
3012
3350
|
* "mock"
|
|
3013
3351
|
* ],
|
|
3014
|
-
* "_created_at":
|
|
3015
|
-
* "_updated_at":
|
|
3352
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3353
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
3016
3354
|
* }
|
|
3017
3355
|
*/
|
|
3018
3356
|
Components.Schemas.EntityItem;
|
|
@@ -3051,6 +3389,7 @@ declare namespace Paths {
|
|
|
3051
3389
|
* 01F130Q52Q6MWSNS8N2AVXV4JN
|
|
3052
3390
|
*/
|
|
3053
3391
|
Components.Schemas.ActivityId /* ulid */;
|
|
3392
|
+
export type DryRun = boolean;
|
|
3054
3393
|
export type Slug = /**
|
|
3055
3394
|
* URL-friendly identifier for the entity schema
|
|
3056
3395
|
* example:
|
|
@@ -3063,6 +3402,7 @@ declare namespace Paths {
|
|
|
3063
3402
|
}
|
|
3064
3403
|
export interface QueryParameters {
|
|
3065
3404
|
activity_id?: Parameters.ActivityId;
|
|
3405
|
+
dry_run?: Parameters.DryRun;
|
|
3066
3406
|
}
|
|
3067
3407
|
export interface RequestBody {
|
|
3068
3408
|
/**
|
|
@@ -3085,8 +3425,8 @@ declare namespace Paths {
|
|
|
3085
3425
|
* "example",
|
|
3086
3426
|
* "mock"
|
|
3087
3427
|
* ],
|
|
3088
|
-
* "_created_at":
|
|
3089
|
-
* "_updated_at":
|
|
3428
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3429
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
3090
3430
|
* }
|
|
3091
3431
|
*/
|
|
3092
3432
|
Components.Schemas.EntityItem;
|
|
@@ -3100,8 +3440,8 @@ declare namespace Paths {
|
|
|
3100
3440
|
* "example",
|
|
3101
3441
|
* "mock"
|
|
3102
3442
|
* ],
|
|
3103
|
-
* "_created_at":
|
|
3104
|
-
* "_updated_at":
|
|
3443
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
3444
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
3105
3445
|
* }
|
|
3106
3446
|
*/
|
|
3107
3447
|
Components.Schemas.EntityItem;
|