@epilot/entity-client 4.21.0-rc.3 → 4.22.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/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +132 -5
- package/dist/openapi.d.ts +618 -57
- package/dist/openapi.json +465 -33
- package/dist/schema-model.d.ts +0 -0
- package/dist/schema-model.js +0 -0
- package/package.json +2 -3
package/dist/openapi.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "Taxonomy",
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Taxonomies and Classifications"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "Elastic Cluster Assignment",
|
|
@@ -1651,6 +1651,46 @@
|
|
|
1651
1651
|
"schema": {
|
|
1652
1652
|
"$ref": "#/components/schemas/EntitySlug"
|
|
1653
1653
|
}
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"in": "query",
|
|
1657
|
+
"name": "sort",
|
|
1658
|
+
"description": "The sort key to use if present",
|
|
1659
|
+
"required": false,
|
|
1660
|
+
"schema": {
|
|
1661
|
+
"type": "string",
|
|
1662
|
+
"default": "name:asc"
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"in": "query",
|
|
1667
|
+
"name": "from",
|
|
1668
|
+
"required": false,
|
|
1669
|
+
"schema": {
|
|
1670
|
+
"type": "integer",
|
|
1671
|
+
"minimum": 0,
|
|
1672
|
+
"default": 0
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"in": "query",
|
|
1677
|
+
"name": "size",
|
|
1678
|
+
"description": "Number of saved views to return",
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"schema": {
|
|
1681
|
+
"type": "integer",
|
|
1682
|
+
"default": 80,
|
|
1683
|
+
"minimum": 1,
|
|
1684
|
+
"maximum": 250
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"in": "query",
|
|
1689
|
+
"name": "fields",
|
|
1690
|
+
"required": false,
|
|
1691
|
+
"schema": {
|
|
1692
|
+
"$ref": "#/components/schemas/FieldsParam"
|
|
1693
|
+
}
|
|
1654
1694
|
}
|
|
1655
1695
|
],
|
|
1656
1696
|
"responses": {
|
|
@@ -1659,15 +1699,7 @@
|
|
|
1659
1699
|
"content": {
|
|
1660
1700
|
"application/json": {
|
|
1661
1701
|
"schema": {
|
|
1662
|
-
"
|
|
1663
|
-
"properties": {
|
|
1664
|
-
"results": {
|
|
1665
|
-
"type": "array",
|
|
1666
|
-
"items": {
|
|
1667
|
-
"$ref": "#/components/schemas/SavedViewItem"
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1702
|
+
"$ref": "#/components/schemas/ListSavedViewsResults"
|
|
1671
1703
|
}
|
|
1672
1704
|
}
|
|
1673
1705
|
}
|
|
@@ -1725,12 +1757,7 @@
|
|
|
1725
1757
|
"content": {
|
|
1726
1758
|
"application/json": {
|
|
1727
1759
|
"schema": {
|
|
1728
|
-
"
|
|
1729
|
-
"properties": {
|
|
1730
|
-
"view": {
|
|
1731
|
-
"$ref": "#/components/schemas/SavedViewItem"
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1760
|
+
"$ref": "#/components/schemas/SavedViewItem"
|
|
1734
1761
|
}
|
|
1735
1762
|
}
|
|
1736
1763
|
}
|
|
@@ -1822,12 +1849,24 @@
|
|
|
1822
1849
|
},
|
|
1823
1850
|
"/v1/entity/listTaxonomies": {
|
|
1824
1851
|
"get": {
|
|
1852
|
+
"deprecated": true,
|
|
1825
1853
|
"operationId": "listTaxonomies",
|
|
1826
1854
|
"summary": "listTaxonomies",
|
|
1827
1855
|
"description": "List taxonomies in an organisation",
|
|
1828
1856
|
"tags": [
|
|
1829
1857
|
"Taxonomy"
|
|
1830
1858
|
],
|
|
1859
|
+
"parameters": [
|
|
1860
|
+
{
|
|
1861
|
+
"in": "query",
|
|
1862
|
+
"name": "include_disabled",
|
|
1863
|
+
"description": "Include disabled taxonomies",
|
|
1864
|
+
"schema": {
|
|
1865
|
+
"type": "boolean",
|
|
1866
|
+
"default": false
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
],
|
|
1831
1870
|
"responses": {
|
|
1832
1871
|
"200": {
|
|
1833
1872
|
"description": "Returns list of taxonomies in an organisation",
|
|
@@ -1850,6 +1889,115 @@
|
|
|
1850
1889
|
}
|
|
1851
1890
|
}
|
|
1852
1891
|
},
|
|
1892
|
+
"/v1/entity/taxonomies": {
|
|
1893
|
+
"get": {
|
|
1894
|
+
"operationId": "listTaxonomies",
|
|
1895
|
+
"summary": "listTaxonomies",
|
|
1896
|
+
"description": "List taxonomies in an organization",
|
|
1897
|
+
"parameters": [
|
|
1898
|
+
{
|
|
1899
|
+
"in": "query",
|
|
1900
|
+
"name": "include_disabled",
|
|
1901
|
+
"description": "Include disabled taxonomies",
|
|
1902
|
+
"schema": {
|
|
1903
|
+
"type": "boolean",
|
|
1904
|
+
"default": false
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
],
|
|
1908
|
+
"tags": [
|
|
1909
|
+
"Taxonomy"
|
|
1910
|
+
],
|
|
1911
|
+
"responses": {
|
|
1912
|
+
"200": {
|
|
1913
|
+
"description": "Returns list of taxonomies in an organization",
|
|
1914
|
+
"content": {
|
|
1915
|
+
"application/json": {
|
|
1916
|
+
"schema": {
|
|
1917
|
+
"type": "object",
|
|
1918
|
+
"properties": {
|
|
1919
|
+
"results": {
|
|
1920
|
+
"type": "array",
|
|
1921
|
+
"items": {
|
|
1922
|
+
"$ref": "#/components/schemas/Taxonomy"
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
"post": {
|
|
1933
|
+
"operationId": "createTaxonomy",
|
|
1934
|
+
"summary": "createTaxonomy",
|
|
1935
|
+
"description": "Create a new taxonomy",
|
|
1936
|
+
"tags": [
|
|
1937
|
+
"Taxonomy"
|
|
1938
|
+
],
|
|
1939
|
+
"requestBody": {
|
|
1940
|
+
"content": {
|
|
1941
|
+
"application/json": {
|
|
1942
|
+
"schema": {
|
|
1943
|
+
"type": "object",
|
|
1944
|
+
"properties": {
|
|
1945
|
+
"slug": {
|
|
1946
|
+
"$ref": "#/components/schemas/TaxonomySlug"
|
|
1947
|
+
},
|
|
1948
|
+
"name": {
|
|
1949
|
+
"type": "string",
|
|
1950
|
+
"description": "A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag",
|
|
1951
|
+
"example": "Purpose"
|
|
1952
|
+
},
|
|
1953
|
+
"plural": {
|
|
1954
|
+
"type": "string",
|
|
1955
|
+
"description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.",
|
|
1956
|
+
"example": "Purposes"
|
|
1957
|
+
},
|
|
1958
|
+
"icon": {
|
|
1959
|
+
"type": "string",
|
|
1960
|
+
"description": "Icon name for the taxonomy (from epilot360/icons icon set)",
|
|
1961
|
+
"example": "purpose"
|
|
1962
|
+
},
|
|
1963
|
+
"color": {
|
|
1964
|
+
"type": "string",
|
|
1965
|
+
"description": "HEX Color code for the taxonomy",
|
|
1966
|
+
"example": "#FF5733"
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
"required": [
|
|
1970
|
+
"slug",
|
|
1971
|
+
"name"
|
|
1972
|
+
],
|
|
1973
|
+
"example": {
|
|
1974
|
+
"slug": "product-category",
|
|
1975
|
+
"name": "Product Category",
|
|
1976
|
+
"plural": "Product Categories",
|
|
1977
|
+
"icon": "product-hub",
|
|
1978
|
+
"color": "#FF5733"
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
},
|
|
1984
|
+
"responses": {
|
|
1985
|
+
"201": {
|
|
1986
|
+
"description": "Taxonomy created",
|
|
1987
|
+
"content": {
|
|
1988
|
+
"application/json": {
|
|
1989
|
+
"schema": {
|
|
1990
|
+
"$ref": "#/components/schemas/Taxonomy"
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
},
|
|
1995
|
+
"409": {
|
|
1996
|
+
"description": "Taxonomy already exists"
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
1853
2001
|
"/v1/entity/taxonomies/{taxonomySlug}": {
|
|
1854
2002
|
"get": {
|
|
1855
2003
|
"operationId": "getTaxonomy",
|
|
@@ -1875,6 +2023,100 @@
|
|
|
1875
2023
|
}
|
|
1876
2024
|
}
|
|
1877
2025
|
}
|
|
2026
|
+
},
|
|
2027
|
+
"put": {
|
|
2028
|
+
"operationId": "updateTaxonomy",
|
|
2029
|
+
"summary": "updateTaxonomy",
|
|
2030
|
+
"description": "Update a taxonomy",
|
|
2031
|
+
"tags": [
|
|
2032
|
+
"Taxonomy"
|
|
2033
|
+
],
|
|
2034
|
+
"parameters": [
|
|
2035
|
+
{
|
|
2036
|
+
"$ref": "#/components/parameters/TaxonomySlugPathParam"
|
|
2037
|
+
}
|
|
2038
|
+
],
|
|
2039
|
+
"requestBody": {
|
|
2040
|
+
"content": {
|
|
2041
|
+
"application/json": {
|
|
2042
|
+
"schema": {
|
|
2043
|
+
"type": "object",
|
|
2044
|
+
"properties": {
|
|
2045
|
+
"name": {
|
|
2046
|
+
"type": "string",
|
|
2047
|
+
"description": "A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag",
|
|
2048
|
+
"example": "Purpose"
|
|
2049
|
+
},
|
|
2050
|
+
"plural": {
|
|
2051
|
+
"type": "string",
|
|
2052
|
+
"description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.",
|
|
2053
|
+
"example": "Purposes"
|
|
2054
|
+
},
|
|
2055
|
+
"icon": {
|
|
2056
|
+
"type": "string",
|
|
2057
|
+
"description": "Icon name for the taxonomy (from epilot360/icons icon set)",
|
|
2058
|
+
"example": "purpose"
|
|
2059
|
+
},
|
|
2060
|
+
"color": {
|
|
2061
|
+
"type": "string",
|
|
2062
|
+
"description": "HEX Color code for the taxonomy",
|
|
2063
|
+
"example": "#FF5733"
|
|
2064
|
+
},
|
|
2065
|
+
"enabled": {
|
|
2066
|
+
"type": "boolean",
|
|
2067
|
+
"description": "Whether the taxonomy is enabled or not",
|
|
2068
|
+
"example": true
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"example": {
|
|
2072
|
+
"name": "Product Category",
|
|
2073
|
+
"plural": "Product Categories",
|
|
2074
|
+
"icon": "product-hub",
|
|
2075
|
+
"color": "#FF5733",
|
|
2076
|
+
"enabled": true
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"responses": {
|
|
2083
|
+
"200": {
|
|
2084
|
+
"description": "Taxonomy updated",
|
|
2085
|
+
"content": {
|
|
2086
|
+
"application/json": {
|
|
2087
|
+
"schema": {
|
|
2088
|
+
"$ref": "#/components/schemas/Taxonomy"
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
"delete": {
|
|
2096
|
+
"operationId": "deleteTaxonomy",
|
|
2097
|
+
"summary": "deleteTaxonomy",
|
|
2098
|
+
"description": "Delete a taxonomy",
|
|
2099
|
+
"tags": [
|
|
2100
|
+
"Taxonomy"
|
|
2101
|
+
],
|
|
2102
|
+
"parameters": [
|
|
2103
|
+
{
|
|
2104
|
+
"$ref": "#/components/parameters/TaxonomySlugPathParam"
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"in": "query",
|
|
2108
|
+
"name": "permanent",
|
|
2109
|
+
"description": "If true, the taxonomy will be permanently deleted",
|
|
2110
|
+
"schema": {
|
|
2111
|
+
"type": "boolean"
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
],
|
|
2115
|
+
"responses": {
|
|
2116
|
+
"204": {
|
|
2117
|
+
"description": "Taxonomy deleted"
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
1878
2120
|
}
|
|
1879
2121
|
},
|
|
1880
2122
|
"/v1/entity/taxonomies/{taxonomySlug}:autocomplete": {
|
|
@@ -1932,13 +2174,22 @@
|
|
|
1932
2174
|
"post": {
|
|
1933
2175
|
"operationId": "taxonomiesClassificationsSearch",
|
|
1934
2176
|
"summary": "taxonomiesClassificationsSearch",
|
|
1935
|
-
"description": "List taxonomy classifications in an
|
|
2177
|
+
"description": "List taxonomy classifications in an organization based on taxonomy slug",
|
|
1936
2178
|
"tags": [
|
|
1937
2179
|
"Taxonomy"
|
|
1938
2180
|
],
|
|
1939
2181
|
"parameters": [
|
|
1940
2182
|
{
|
|
1941
|
-
"$ref": "#/components/parameters/
|
|
2183
|
+
"$ref": "#/components/parameters/TaxonomySlugQueryParamOptional"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"in": "query",
|
|
2187
|
+
"name": "query",
|
|
2188
|
+
"description": "Input to search",
|
|
2189
|
+
"schema": {
|
|
2190
|
+
"type": "string",
|
|
2191
|
+
"example": "sales"
|
|
2192
|
+
}
|
|
1942
2193
|
}
|
|
1943
2194
|
],
|
|
1944
2195
|
"requestBody": {
|
|
@@ -1960,7 +2211,7 @@
|
|
|
1960
2211
|
},
|
|
1961
2212
|
"responses": {
|
|
1962
2213
|
"200": {
|
|
1963
|
-
"description": "Returns
|
|
2214
|
+
"description": "Returns the classifications for the taxonomy slug provided",
|
|
1964
2215
|
"content": {
|
|
1965
2216
|
"application/json": {
|
|
1966
2217
|
"schema": {
|
|
@@ -1984,7 +2235,7 @@
|
|
|
1984
2235
|
"post": {
|
|
1985
2236
|
"operationId": "updateClassificationsForTaxonomy",
|
|
1986
2237
|
"summary": "updateClassificationsForTaxonomy",
|
|
1987
|
-
"description": "Update
|
|
2238
|
+
"description": "Update the classifications for a taxonomy",
|
|
1988
2239
|
"tags": [
|
|
1989
2240
|
"Taxonomy"
|
|
1990
2241
|
],
|
|
@@ -2035,6 +2286,116 @@
|
|
|
2035
2286
|
}
|
|
2036
2287
|
}
|
|
2037
2288
|
}
|
|
2289
|
+
},
|
|
2290
|
+
"/v2/entity/taxonomies/{taxonomySlug}/classifications": {
|
|
2291
|
+
"post": {
|
|
2292
|
+
"operationId": "createTaxonomyClassification",
|
|
2293
|
+
"summary": "createTaxonomyClassification",
|
|
2294
|
+
"description": "Create a new classification for a taxonomy",
|
|
2295
|
+
"tags": [
|
|
2296
|
+
"Taxonomy"
|
|
2297
|
+
],
|
|
2298
|
+
"parameters": [
|
|
2299
|
+
{
|
|
2300
|
+
"$ref": "#/components/parameters/TaxonomySlugPathParam"
|
|
2301
|
+
}
|
|
2302
|
+
],
|
|
2303
|
+
"requestBody": {
|
|
2304
|
+
"content": {
|
|
2305
|
+
"application/json": {
|
|
2306
|
+
"schema": {
|
|
2307
|
+
"$ref": "#/components/schemas/TaxonomyClassification"
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
"responses": {
|
|
2313
|
+
"201": {
|
|
2314
|
+
"description": "Taxonomy classification created",
|
|
2315
|
+
"content": {
|
|
2316
|
+
"application/json": {
|
|
2317
|
+
"schema": {
|
|
2318
|
+
"$ref": "#/components/schemas/TaxonomyClassification"
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
"409": {
|
|
2324
|
+
"description": "Taxonomy classification already exists\""
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
|
|
2330
|
+
"put": {
|
|
2331
|
+
"operationId": "updateTaxonomyClassification",
|
|
2332
|
+
"summary": "updateTaxonomyClassification",
|
|
2333
|
+
"description": "Update a classification for a taxonomy",
|
|
2334
|
+
"tags": [
|
|
2335
|
+
"Taxonomy"
|
|
2336
|
+
],
|
|
2337
|
+
"parameters": [
|
|
2338
|
+
{
|
|
2339
|
+
"$ref": "#/components/parameters/TaxonomySlugPathParam"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
|
|
2343
|
+
}
|
|
2344
|
+
],
|
|
2345
|
+
"requestBody": {
|
|
2346
|
+
"content": {
|
|
2347
|
+
"application/json": {
|
|
2348
|
+
"schema": {
|
|
2349
|
+
"$ref": "#/components/schemas/TaxonomyClassification"
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
"responses": {
|
|
2355
|
+
"200": {
|
|
2356
|
+
"description": "Taxonomy classification updated",
|
|
2357
|
+
"content": {
|
|
2358
|
+
"application/json": {
|
|
2359
|
+
"schema": {
|
|
2360
|
+
"$ref": "#/components/schemas/TaxonomyClassification"
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
"404": {
|
|
2366
|
+
"description": "Taxonomy classification not found"
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
"delete": {
|
|
2371
|
+
"operationId": "deleteTaxonomyClassification",
|
|
2372
|
+
"summary": "deleteTaxonomyClassification",
|
|
2373
|
+
"description": "Delete a classification for a taxonomy",
|
|
2374
|
+
"tags": [
|
|
2375
|
+
"Taxonomy"
|
|
2376
|
+
],
|
|
2377
|
+
"parameters": [
|
|
2378
|
+
{
|
|
2379
|
+
"$ref": "#/components/parameters/TaxonomySlugPathParam"
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"in": "query",
|
|
2386
|
+
"name": "permanent",
|
|
2387
|
+
"description": "If true, the classification will be permanently deleted",
|
|
2388
|
+
"schema": {
|
|
2389
|
+
"type": "boolean"
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
"responses": {
|
|
2394
|
+
"204": {
|
|
2395
|
+
"description": "Taxonomy classification deleted"
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2038
2399
|
}
|
|
2039
2400
|
},
|
|
2040
2401
|
"components": {
|
|
@@ -4710,6 +5071,21 @@
|
|
|
4710
5071
|
"type": "string",
|
|
4711
5072
|
"format": "uuid"
|
|
4712
5073
|
},
|
|
5074
|
+
"ListSavedViewsResults": {
|
|
5075
|
+
"type": "object",
|
|
5076
|
+
"properties": {
|
|
5077
|
+
"hits": {
|
|
5078
|
+
"type": "number",
|
|
5079
|
+
"example": 1
|
|
5080
|
+
},
|
|
5081
|
+
"results": {
|
|
5082
|
+
"type": "array",
|
|
5083
|
+
"items": {
|
|
5084
|
+
"$ref": "#/components/schemas/SavedViewItem"
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
},
|
|
4713
5089
|
"SavedViewId": {
|
|
4714
5090
|
"description": "Generated uuid for a saved view",
|
|
4715
5091
|
"type": "string",
|
|
@@ -4839,22 +5215,57 @@
|
|
|
4839
5215
|
},
|
|
4840
5216
|
"plural": {
|
|
4841
5217
|
"type": "string",
|
|
4842
|
-
"description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags",
|
|
5218
|
+
"description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.",
|
|
4843
5219
|
"example": "Purposes"
|
|
4844
5220
|
},
|
|
5221
|
+
"kind": {
|
|
5222
|
+
"readonly": true,
|
|
5223
|
+
"type": "string",
|
|
5224
|
+
"enum": [
|
|
5225
|
+
"system",
|
|
5226
|
+
"user_defined"
|
|
5227
|
+
],
|
|
5228
|
+
"description": "Kind of taxonomy e.g. system or user_defined. By default, it's empty, which means 'user_defined'",
|
|
5229
|
+
"example": "system"
|
|
5230
|
+
},
|
|
5231
|
+
"icon": {
|
|
5232
|
+
"type": "string",
|
|
5233
|
+
"description": "Icon name for the taxonomy (from epilot360/icons icon set)",
|
|
5234
|
+
"example": "purpose"
|
|
5235
|
+
},
|
|
5236
|
+
"color": {
|
|
5237
|
+
"type": "string",
|
|
5238
|
+
"description": "HEX Color code for the taxonomy",
|
|
5239
|
+
"example": "#FF5733"
|
|
5240
|
+
},
|
|
4845
5241
|
"created_at": {
|
|
5242
|
+
"readonly": true,
|
|
4846
5243
|
"type": "string",
|
|
4847
5244
|
"format": "date-time"
|
|
4848
5245
|
},
|
|
4849
5246
|
"updated_at": {
|
|
5247
|
+
"readonly": true,
|
|
4850
5248
|
"type": "string",
|
|
4851
5249
|
"format": "date-time"
|
|
5250
|
+
},
|
|
5251
|
+
"deleted_at": {
|
|
5252
|
+
"readonly": true,
|
|
5253
|
+
"type": "string",
|
|
5254
|
+
"format": "date-time",
|
|
5255
|
+
"description": "Date when the taxonomy was soft-deleted (enabled: false)"
|
|
5256
|
+
},
|
|
5257
|
+
"created_by": {
|
|
5258
|
+
"readonly": true,
|
|
5259
|
+
"type": "string",
|
|
5260
|
+
"description": "User ID of the creator",
|
|
5261
|
+
"example": "10598"
|
|
5262
|
+
},
|
|
5263
|
+
"enabled": {
|
|
5264
|
+
"type": "boolean",
|
|
5265
|
+
"description": "Whether the taxonomy is enabled or not",
|
|
5266
|
+
"example": true
|
|
4852
5267
|
}
|
|
4853
|
-
}
|
|
4854
|
-
"required": [
|
|
4855
|
-
"slug",
|
|
4856
|
-
"name"
|
|
4857
|
-
]
|
|
5268
|
+
}
|
|
4858
5269
|
},
|
|
4859
5270
|
"TaxonomyClassification": {
|
|
4860
5271
|
"type": "object",
|
|
@@ -4862,6 +5273,11 @@
|
|
|
4862
5273
|
"id": {
|
|
4863
5274
|
"$ref": "#/components/schemas/ClassificationId"
|
|
4864
5275
|
},
|
|
5276
|
+
"slug": {
|
|
5277
|
+
"type": "string",
|
|
5278
|
+
"description": "URL-friendly identifier for the classification",
|
|
5279
|
+
"example": "wallbox-pv"
|
|
5280
|
+
},
|
|
4865
5281
|
"name": {
|
|
4866
5282
|
"type": "string",
|
|
4867
5283
|
"example": "Wallbox PV"
|
|
@@ -4887,7 +5303,7 @@
|
|
|
4887
5303
|
},
|
|
4888
5304
|
"ClassificationId": {
|
|
4889
5305
|
"type": "string",
|
|
4890
|
-
"
|
|
5306
|
+
"example": "taxonomy-slug:classification-slug"
|
|
4891
5307
|
},
|
|
4892
5308
|
"TaxonomySlug": {
|
|
4893
5309
|
"type": "string",
|
|
@@ -4912,7 +5328,15 @@
|
|
|
4912
5328
|
"delete": {
|
|
4913
5329
|
"type": "array",
|
|
4914
5330
|
"items": {
|
|
4915
|
-
"
|
|
5331
|
+
"anyOf": [
|
|
5332
|
+
{
|
|
5333
|
+
"$ref": "#/components/schemas/ClassificationId"
|
|
5334
|
+
},
|
|
5335
|
+
{
|
|
5336
|
+
"type": "string",
|
|
5337
|
+
"example": "taxonomy-slug:classification-slug"
|
|
5338
|
+
}
|
|
5339
|
+
]
|
|
4916
5340
|
}
|
|
4917
5341
|
}
|
|
4918
5342
|
}
|
|
@@ -4964,18 +5388,26 @@
|
|
|
4964
5388
|
"example": "price"
|
|
4965
5389
|
}
|
|
4966
5390
|
},
|
|
4967
|
-
"
|
|
5391
|
+
"TaxonomySlugPathParam": {
|
|
4968
5392
|
"name": "taxonomySlug",
|
|
4969
5393
|
"description": "Taxonomy slug",
|
|
4970
|
-
"in": "
|
|
5394
|
+
"in": "path",
|
|
5395
|
+
"required": true,
|
|
4971
5396
|
"schema": {
|
|
4972
5397
|
"type": "string"
|
|
4973
|
-
}
|
|
4974
|
-
"required": true
|
|
5398
|
+
}
|
|
4975
5399
|
},
|
|
4976
|
-
"
|
|
5400
|
+
"TaxonomySlugQueryParamOptional": {
|
|
4977
5401
|
"name": "taxonomySlug",
|
|
4978
5402
|
"description": "Taxonomy slug",
|
|
5403
|
+
"in": "query",
|
|
5404
|
+
"schema": {
|
|
5405
|
+
"type": "string"
|
|
5406
|
+
}
|
|
5407
|
+
},
|
|
5408
|
+
"TaxonomyClassificationSlugPathParam": {
|
|
5409
|
+
"name": "classificationSlug",
|
|
5410
|
+
"description": "Taxonomy Classification slug",
|
|
4979
5411
|
"in": "path",
|
|
4980
5412
|
"required": true,
|
|
4981
5413
|
"schema": {
|
package/dist/schema-model.d.ts
CHANGED
|
File without changes
|
package/dist/schema-model.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/entity-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.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",
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"build": "tsc && npm run bundle-definition",
|
|
30
30
|
"build:watch": "npm run build && tsc -w",
|
|
31
31
|
"release-alpha": "npm version prerelease --preid alpha",
|
|
32
|
-
"lint": "../../node_modules/eslint/bin/eslint.js src"
|
|
33
|
-
"prepublishOnly": "npm run typegen && npm run build"
|
|
32
|
+
"lint": "../../node_modules/eslint/bin/eslint.js src"
|
|
34
33
|
},
|
|
35
34
|
"files": [
|
|
36
35
|
"*.js",
|